Lines 1-3
Link Here
|
|
|
1 |
[% USE Branches %] |
2 |
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
3 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Serials › Claims</title> |
4 |
<title>Koha › Serials › Claims</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
Lines 83-98
Link Here
|
83 |
} |
85 |
} |
84 |
} |
86 |
} |
85 |
|
87 |
|
86 |
// Filter by branch |
88 |
// Filter by branch |
87 |
function filterByBranch() { |
89 |
function filterByBranch() { |
88 |
selectedBranch = $("#branchfilter").val(); |
90 |
selectedBranch = $("#branchfilter").val(); |
89 |
if (selectedBranch == "all") { |
91 |
if (selectedBranch == "all") { |
90 |
clearFilters(); |
92 |
clearFilters(); |
91 |
} else { |
93 |
} else { |
92 |
$("table#claimst tbody tr").hide(); |
94 |
$("table#claimst tbody tr").hide(); |
93 |
$("table#claimst tbody tr:contains(" + selectedBranch + ")").show(); |
95 |
$("table#claimst tbody tr").each( function() { |
94 |
} |
96 |
if ( $(this).find("span.branch-" + selectedBranch).size() > 0 ) { |
95 |
} |
97 |
$(this).show(); |
|
|
98 |
} |
99 |
}); |
100 |
} |
101 |
} |
102 |
|
96 |
// Filter by date |
103 |
// Filter by date |
97 |
function filterByDate() { |
104 |
function filterByDate() { |
98 |
var beginDate = Date_from_syspref($("#from").val()).getTime(); |
105 |
var beginDate = Date_from_syspref($("#from").val()).getTime(); |
Lines 220-231
Link Here
|
220 |
<li> |
227 |
<li> |
221 |
<label for="branchfilter">Library: </label> |
228 |
<label for="branchfilter">Library: </label> |
222 |
<select id="branchfilter" onchange="filterByBranch();"> |
229 |
<select id="branchfilter" onchange="filterByBranch();"> |
|
|
230 |
<option value="all" selected="selected">(All)</option> |
223 |
[% FOREACH branchloo IN branchloop %] |
231 |
[% FOREACH branchloo IN branchloop %] |
224 |
[% IF ( branchloo.selected ) %] |
|
|
225 |
<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option> |
226 |
[% ELSE %] |
227 |
<option value="[% branchloo.value %]">[% branchloo.branchname %]</option> |
232 |
<option value="[% branchloo.value %]">[% branchloo.branchname %]</option> |
228 |
[% END %] |
|
|
229 |
[% END %] |
233 |
[% END %] |
230 |
</select> |
234 |
</select> |
231 |
</li> |
235 |
</li> |
Lines 273-279
Link Here
|
273 |
[% missingissue.name %] |
277 |
[% missingissue.name %] |
274 |
</td> |
278 |
</td> |
275 |
<td> |
279 |
<td> |
276 |
[% missingissue.branchcode %] |
280 |
<span class="branch-[% missingissue.branchcode %]">[% Branches.GetName( missingissue.branchcode ) %]</span> |
277 |
</td> |
281 |
</td> |
278 |
<td> |
282 |
<td> |
279 |
<a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% missingissue.subscriptionid %]">[% missingissue.title |html %]</a> |
283 |
<a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% missingissue.subscriptionid %]">[% missingissue.title |html %]</a> |