c88d7d8318
* "Callnumber" => "Call number" * "Expire before" => "Expires before" Signed-off-by: Galen Charlton <gmc@esilibrary.com>
388 lines
18 KiB
Text
388 lines
18 KiB
Text
[% USE Branches %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
[% USE KohaDates %]
|
|
[% USE AuthorisedValues %]
|
|
<title>Koha › Serials [% biblionumber %]</title>
|
|
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% INCLUDE 'calendar.inc' %]
|
|
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
|
|
[% INCLUDE 'datatables-strings.inc' %]
|
|
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
$(document).ready(function() {
|
|
[% IF (dateformat == 'metric') %]
|
|
dt_add_type_uk_date();
|
|
[% END %]
|
|
var osrlt = $("#osrlt").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
|
|
"aoColumnDefs": [
|
|
{ "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
|
|
],
|
|
"sPaginationType": "four_button"
|
|
} ) );
|
|
|
|
var csrlt = $("#csrlt").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"aoColumnDefs": [
|
|
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
|
|
],
|
|
"sPaginationType": "four_button"
|
|
} ) );
|
|
|
|
osrlt.fnAddFilters("filter", 750);
|
|
csrlt.fnAddFilters("filter", 750);
|
|
|
|
$('#serialstabs').tabs();
|
|
$("#reopensub").click(function(){
|
|
return confirm(_("Are you sure you want to reopen this subscription?"));
|
|
});
|
|
});
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body id="ser_serials-home" class="ser">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'serials-search.inc' %]
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › [% IF ( done_searched ) %]<a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › Search results[% ELSE %]Serials [% END %] </div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
[% INCLUDE 'serials-toolbar.inc' %]
|
|
|
|
<h2>Serials subscriptions ([% total %] found)</h2>
|
|
[% UNLESS ( done_searched ) %]
|
|
<div id="advsearch" style="padding-bottom:3em;">
|
|
<form action="/cgi-bin/koha/serials/serials-search.pl" method="get">
|
|
<fieldset class="rows">
|
|
<legend>Search subscriptions</legend>
|
|
<ol>
|
|
<li>
|
|
<label for="issn">ISSN:</label>
|
|
<input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter %]" />
|
|
</li>
|
|
<li>
|
|
<label for="title">Title:</label>
|
|
<input type="text" id="title" name="title_filter" value="[% title_filter %]" />
|
|
</li>
|
|
[% IF ( marcflavour == "UNIMARC" ) %]
|
|
<li>
|
|
<label for="ean">EAN:</label>
|
|
<input type="text" id="ean" name="EAN_filter" value="[% EAN_filter %]" />
|
|
</li>
|
|
[% END %]
|
|
<li>
|
|
<label for="callnumber">Call number:</label>
|
|
<input type="text" id="callnumber" name="callnumber_filter" value="[% callnumber_filter %]" />
|
|
</li>
|
|
<li>
|
|
<label for="publisher">Publisher:</label>
|
|
<input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter %]" />
|
|
</li>
|
|
<li>
|
|
<label for="bookseller">Vendor:</label>
|
|
<input type="text" id="bookseller" name="bookseller_filter" value="[% bookseller_filter %]" />
|
|
</li>
|
|
<li>
|
|
<label for="branch">Library:</label>
|
|
<select id="branch" name="branch_filter">
|
|
<option value="">All</option>
|
|
[% FOREACH branch IN branches_loop %]
|
|
[% IF ( branch.selected ) %]
|
|
<option selected="selected" value="[% branch.branchcode %]">[% branch.branchname %]</option>
|
|
[% ELSE %]
|
|
<option value="[% branch.branchcode %]">[% branch.branchname %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
[% IF locations %]
|
|
<li>
|
|
<label for="location">Location:</label>
|
|
<select name="location_filter">
|
|
<option value="">All</option>
|
|
[% FOR loc IN locations %]
|
|
[% IF loc.selected %]
|
|
<option value="[% loc.authorised_value %]" selected="selected">[% loc.lib %]</option>
|
|
[% ELSE %]
|
|
<option value="[% loc.authorised_value %]">[% loc.lib %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
[% END %]
|
|
<li>
|
|
<label for="to">Expires before:</label>
|
|
<input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="datepickerto" />
|
|
</li>
|
|
</ol>
|
|
<input type="hidden" name="searched" value="1" />
|
|
<fieldset class="action">
|
|
<input type="submit" value="Search" />
|
|
</fieldset>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
[% END %]
|
|
[% IF ( done_searched ) %]
|
|
[% IF ( total ) %]
|
|
<div id="serialstabs" class="toptabs" style="clear:both;">
|
|
<ul class="ui-tabs-nav">
|
|
<li><a href="#opened">Open ([% openedsubscriptions.size || 0 %])</a></li>
|
|
<li><a href="#closed">Closed ([% closedsubscriptions.size || 0 %])</a></li>
|
|
</ul>
|
|
<div id="opened">
|
|
[% IF openedsubscriptions %]
|
|
<table id="osrlt">
|
|
<thead>
|
|
<tr>
|
|
<th>ISSN</th>
|
|
<th>Title</th>
|
|
<th> Notes </th>
|
|
<th>Library</th>
|
|
<th>Location</th>
|
|
<th>Call number</th>
|
|
<th>Expiration date</th>
|
|
[% IF ( routing && CAN_user_serials_routing ) %]
|
|
<th>Routing list</th>
|
|
[% END %]
|
|
<th> </th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<tr>
|
|
<td><input type="text" class="filter" data-column_num="0" placeholder="Search ISSN" /></td>
|
|
<td><input type="text" class="filter" data-column_num="1" placeholder="Search title" /></td>
|
|
<td><input type="text" class="filter" data-column_num="2" placeholder="Search notes" /></td>
|
|
<td><input type="text" class="filter" data-column_num="3" placeholder="Search library" /></td>
|
|
<td><input type="text" class="filter" data-column_num="4" placeholder="Search location" /></td>
|
|
<td><input type="text" class="filter" data-column_num="5" placeholder="Search callnumber" /></td>
|
|
<td><input type="text" class="filter" data-column_num="6" placeholder="Search expiration date" /></td>
|
|
[% IF ( routing && CAN_user_serials_routing ) %]<td></td>[% END %]
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
</tfoot>
|
|
<tbody>
|
|
[% FOREACH subscription IN openedsubscriptions %]
|
|
[% UNLESS subscription.cannotdisplay %]
|
|
<tr>
|
|
<td>
|
|
[% IF ( subscription.issn ) %][% subscription.issn %]
|
|
[% END %]
|
|
</td>
|
|
<td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="subscription detail">[% subscription.title |html %]</a>
|
|
</td>
|
|
<td>[% IF ( subscription.publicnotes ) %][% subscription.publicnotes %][% END %]
|
|
[% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %]
|
|
</td>
|
|
<td>
|
|
[% IF ( subscription.branchcode ) %][% Branches.GetName( subscription.branchcode ) %][% END %]
|
|
</td>
|
|
<td>
|
|
[% IF ( subscription.location ) %][% AuthorisedValues.GetByCode( 'LOC', subscription.location ) %][% END %]
|
|
</td>
|
|
<td>
|
|
[% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %]
|
|
</td>
|
|
<td>
|
|
[% IF ( subscription.enddate ) %][% subscription.enddate | $KohaDates %][% END %]
|
|
</td>
|
|
[% IF ( routing && CAN_user_serials_routing ) %]
|
|
<td>
|
|
[% IF ( subscription.cannotedit ) %]
|
|
|
|
[% ELSE %]
|
|
[% IF ( subscription.routingedit ) %]
|
|
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]">Edit</a>
|
|
([% subscription.routingedit %])
|
|
[% ELSE %]
|
|
<a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]&op=new">New</a>
|
|
[% END %]
|
|
[% END %]
|
|
</td>
|
|
[% END %]
|
|
<td><a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]">Issue history</a>
|
|
</td>
|
|
<td>
|
|
[% IF ( CAN_user_serials_receive_serials ) %]
|
|
<a href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid %]&serstatus=1,3,7">Serial receive</a>
|
|
[% END %]
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% ELSE %]
|
|
<div class="dialog message">
|
|
<p>Your search returned no open subscriptions.</p>
|
|
</div>
|
|
[% END %]
|
|
</div>
|
|
<div id="closed">
|
|
[% IF closedsubscriptions %]
|
|
<table id="csrlt">
|
|
<thead>
|
|
<tr>
|
|
<th>ISSN</th>
|
|
<th>Title</th>
|
|
<th> Notes </th>
|
|
<th>Library</th>
|
|
<th>Location</th>
|
|
<th>Call number</th>
|
|
<th> </th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<tr>
|
|
<td><input type="text" class="filter" data-column_num="0" placeholder="Search ISSN" /></td>
|
|
<td><input type="text" class="filter" data-column_num="1" placeholder="Search title" /></td>
|
|
<td><input type="text" class="filter" data-column_num="2" placeholder="Search notes" /></td>
|
|
<td><input type="text" class="filter" data-column_num="3" placeholder="Search library" /></td>
|
|
<td><input type="text" class="filter" data-column_num="4" placeholder="Search location" /></td>
|
|
<td><input type="text" class="filter" data-column_num="5" placeholder="Search callnumber" /></td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
</tfoot>
|
|
<tbody>
|
|
[% FOREACH subscription IN closedsubscriptions %]
|
|
[% UNLESS subscription.cannotdisplay %]
|
|
<tr>
|
|
<td>
|
|
[% IF ( subscription.issn ) %]
|
|
[% subscription.issn %]
|
|
[% END %]
|
|
</td>
|
|
<td>
|
|
<a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="subscription detail">[% subscription.title |html %]</a>
|
|
</td>
|
|
<td>
|
|
[% IF ( subscription.notes ) %][% subscription.notes %][% END %]
|
|
[% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %]
|
|
</td>
|
|
<td>
|
|
[% IF ( subscription.branchcode ) %][% Branches.GetName( subscription.branchcode ) %][% END %]
|
|
</td>
|
|
<td>
|
|
[% IF ( subscription.location ) %][% AuthorisedValues.GetByCode( 'LOC', subscription.location ) %][% END %]
|
|
</td>
|
|
<td>
|
|
[% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %]
|
|
</td>
|
|
<td>
|
|
[% UNLESS subscription.cannotedit %]
|
|
<a href="/cgi-bin/koha/serials/serials-search.pl?subscriptionid=[% subscription.subscriptionid %]&op=reopen&routing=[% subscription.routing %]&searched=1&title_filter=[% title_filter %]&ISSN_filter=[% ISSN_filter %]&EAN_filter=[% EAN_filter %]&published_filter=[% publisher_filter %]&bookseller_filter=[% bookseller_filter %]&branch_filter=[% branch_filter %]" id="reopensub">Reopen</a>
|
|
[% ELSE %]
|
|
Cannot edit
|
|
[% END %]
|
|
</td>
|
|
<td>
|
|
<a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]">Issue history</a>
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% ELSE %]
|
|
<div class="dialog message">
|
|
<p>Your search returned no closed subscriptions.</p>
|
|
</div>
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
[% ELSE %]
|
|
<div class="dialog message">
|
|
<p>Your search returned no results.</p>
|
|
</div>
|
|
[% END %]
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
|
|
<div class="yui-b">
|
|
[% INCLUDE 'serials-menu.inc' %]
|
|
[% IF ( done_searched ) %]
|
|
<div id="advsearch">
|
|
<form action="/cgi-bin/koha/serials/serials-search.pl" method="get">
|
|
<fieldset class="brief">
|
|
<h4>Search subscriptions</h4>
|
|
<ol>
|
|
<li>
|
|
<label for="issn">ISSN:</label>
|
|
<input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter %]" />
|
|
</li>
|
|
<li>
|
|
<label for="title">Title:</label>
|
|
<input type="text" id="title" name="title_filter" value="[% title_filter %]" />
|
|
</li>
|
|
[% IF ( marcflavour == "UNIMARC" ) %]
|
|
<li>
|
|
<label for="ean">EAN:</label>
|
|
<input type="text" id="ean" name="EAN_filter" value="[% EAN_filter %]" />
|
|
</li>
|
|
[% END %]
|
|
<li>
|
|
<label for="callnumber">Call number:</label>
|
|
<input type="text" id="callnumber" name="callnumber_filter" value="[% callnumber_filter %]" />
|
|
</li>
|
|
<li>
|
|
<label for="publisher">Publisher:</label>
|
|
<input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter %]" />
|
|
</li>
|
|
<li>
|
|
<label for="bookseller">Vendor:</label>
|
|
<input type="text" id="bookseller" name="bookseller_filter" value="[% bookseller_filter %]" />
|
|
</li>
|
|
<li>
|
|
<label for="branch">Library:</label>
|
|
<select id="branch" name="branch_filter">
|
|
<option value="">All</option>
|
|
[% FOREACH branch IN branches_loop %]
|
|
[% IF ( branch.selected ) %]
|
|
<option selected="selected" value="[% branch.branchcode %]">[% branch.branchname %]</option>
|
|
[% ELSE %]
|
|
<option value="[% branch.branchcode %]">[% branch.branchname %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
[% IF locations %]
|
|
<li>
|
|
<label for="location">Location:</label>
|
|
<select name="location_filter">
|
|
<option value="">All</option>
|
|
[% FOR loc IN locations %]
|
|
[% IF loc.selected %]
|
|
<option value="[% loc.authorised_value %]" selected="selected">[% loc.lib %]</option>
|
|
[% ELSE %]
|
|
<option value="[% loc.authorised_value %]">[% loc.lib %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
[% END %]
|
|
<li>
|
|
<label for="to">Expires before:</label>
|
|
<input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="datepickerto" />
|
|
</li>
|
|
|
|
</ol>
|
|
<input type="hidden" name="searched" value="1" />
|
|
<fieldset class="action">
|
|
<input type="submit" value="Search" />
|
|
</fieldset>
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|