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

Return to bug 10430