|
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 80-95
Link Here
|
| 80 |
} |
82 |
} |
| 81 |
} |
83 |
} |
| 82 |
|
84 |
|
| 83 |
// Filter by branch |
85 |
// Filter by branch |
| 84 |
function filterByBranch() { |
86 |
function filterByBranch() { |
| 85 |
selectedBranch = $("#branchfilter").val(); |
87 |
selectedBranch = $("#branchfilter").val(); |
| 86 |
if (selectedBranch == "all") { |
88 |
if (selectedBranch == "all") { |
| 87 |
clearFilters(); |
89 |
clearFilters(); |
| 88 |
} else { |
90 |
} else { |
| 89 |
$("table#claimst tbody tr").hide(); |
91 |
$("table#claimst tbody tr").hide(); |
| 90 |
$("table#claimst tbody tr:contains(" + selectedBranch + ")").show(); |
92 |
$("table#claimst tbody tr").each( function() { |
| 91 |
} |
93 |
if ( $(this).find("span.branch-" + selectedBranch).size() > 0 ) { |
| 92 |
} |
94 |
$(this).show(); |
|
|
95 |
} |
| 96 |
}); |
| 97 |
} |
| 98 |
} |
| 99 |
|
| 93 |
// Filter by date |
100 |
// Filter by date |
| 94 |
function filterByDate() { |
101 |
function filterByDate() { |
| 95 |
var beginDate = Date_from_syspref($("#from").val()).getTime(); |
102 |
var beginDate = Date_from_syspref($("#from").val()).getTime(); |
|
Lines 219-230
Link Here
|
| 219 |
<li> |
226 |
<li> |
| 220 |
<label for="branchfilter">Library: </label> |
227 |
<label for="branchfilter">Library: </label> |
| 221 |
<select id="branchfilter" onchange="filterByBranch();"> |
228 |
<select id="branchfilter" onchange="filterByBranch();"> |
|
|
229 |
<option value="all" selected="selected">(All)</option> |
| 222 |
[% FOREACH branchloo IN branchloop %] |
230 |
[% FOREACH branchloo IN branchloop %] |
| 223 |
[% IF ( branchloo.selected ) %] |
|
|
| 224 |
<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option> |
| 225 |
[% ELSE %] |
| 226 |
<option value="[% branchloo.value %]">[% branchloo.branchname %]</option> |
231 |
<option value="[% branchloo.value %]">[% branchloo.branchname %]</option> |
| 227 |
[% END %] |
|
|
| 228 |
[% END %] |
232 |
[% END %] |
| 229 |
</select> |
233 |
</select> |
| 230 |
</li> |
234 |
</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> |