View | Details | Raw Unified | Return to bug 10430
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt (-24 / +27 lines)
Lines 69-84 Link Here
69
	    }
69
	    }
70
	}
70
	}
71
71
72
	// Filter by status
72
    // Filter by status
73
	function filterByStatus() {
73
    function filterByStatus() {
74
	    selectedStatus = $("#statusfilter").val();
74
        selectedStatus = $("#statusfilter").val();
75
	    if (selectedStatus == "all") {
75
        if (selectedStatus == "all") {
76
		clearFilters();
76
            clearFilters();
77
	    } else {
77
        } else {
78
		$("table#claimst tbody tr").hide();
78
            $("table#claimst tbody tr").hide();
79
		$("table#claimst tbody tr:contains(" + selectedStatus + ")").show();
79
            $("table#claimst tbody tr").each( function() {
80
	    }
80
                if ( $(this).find("span.status-" + selectedStatus).size() > 0 ) {
81
	}
81
                    $(this).show();
82
                }
83
            });
84
        }
85
    }
82
86
83
	// Filter by branch
87
	// Filter by branch
84
	function filterByBranch() {
88
	function filterByBranch() {
Lines 202-214 Link Here
202
	<li>
206
	<li>
203
	    <label for="statusfilter">Status : </label>
207
	    <label for="statusfilter">Status : </label>
204
	    <select id="statusfilter" onchange="filterByStatus();">
208
	    <select id="statusfilter" onchange="filterByStatus();">
205
		<option value="all" selected="selected">(All)</option>
209
            <option value="all" selected="selected">(All)</option>
206
		<option>Expected</option>
210
            <option value="expected">Expected</option>
207
		<option>Arrived</option>
211
            <option value="arrived">Arrived</option>
208
		<option>Late</option>
212
            <option value="late">Late</option>
209
		<option>Missing</option>
213
            <option value="missing">Missing</option>
210
		<option>Claimed</option>
214
            <option value="claimed">Claimed</option>
211
        <option>Stopped</option>
215
            <option value="stopped">Stopped</option>
212
	    </select>
216
	    </select>
213
	</li>
217
	</li>
214
	
218
	
Lines 282-293 Link Here
282
                        [% missingissue.serialseq %]
286
                        [% missingissue.serialseq %]
283
                        </td>
287
                        </td>
284
                        <td>
288
                        <td>
285
                            [% IF ( missingissue.status1 ) %]Expected[% END %]
289
                            [% IF ( missingissue.status1 ) %]<span class="status-expected">Expected</span>[% END %]
286
                            [% IF ( missingissue.status2 ) %]Arrived[% END %]
290
                            [% IF ( missingissue.status2 ) %]<span class="status-arrived">Arrived</span>[% END %]
287
                            [% IF ( missingissue.status3 ) %]Late[% END %]
291
                            [% IF ( missingissue.status3 ) %]<span class="status-late">Late</span>[% END %]
288
                            [% IF ( missingissue.status4 ) %]Missing[% END %]
292
                            [% IF ( missingissue.status4 ) %]<span class="status-missing">Missing</span>[% END %]
289
                            [% IF ( missingissue.status7 ) %]Claimed[% END %]
293
                            [% IF ( missingissue.status7 ) %]<span class="status-claimed">Claimed</span>[% END %]
290
                            [% IF ( missingissue.status8 ) %]Stopped[% END %]
294
                            [% IF ( missingissue.status8 ) %]<span class="status-stopped">Stopped</span>[% END %]
291
                        </td>
295
                        </td>
292
                        <td class="planneddate">
296
                        <td class="planneddate">
293
                        [% missingissue.planneddate %]
297
                        [% missingissue.planneddate %]
294
- 

Return to bug 10430