2 [% INCLUDE 'doc-head-open.inc' %]
4 [% USE AuthorisedValues %]
5 <title>Koha › Serials [% biblionumber %]</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% INCLUDE 'calendar.inc' %]
8 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
9 [% INCLUDE 'datatables.inc' %]
10 <script type="text/javascript">
12 $(document).ready(function() {
13 var osrlt = $("#osrlt").dataTable($.extend(true, {}, dataTablesDefaults, {
14 "sPaginationType": "four_button",
16 { 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
17 { "sType": "title-string", "aTargets" : [ "title-string" ] },
18 { 'sType': "anti-the", 'aTargets' : [ 'anti-the'] }
22 var csrlt = $("#csrlt").dataTable($.extend(true, {}, dataTablesDefaults, {
23 // FIXME sort function of additional_fields!
24 "sPaginationType": "four_button",
26 { 'bSortable': false, 'aTargets': [ 'NoSort' ] },
27 { 'sType': "anti-the", 'aTargets' : [ 'anti-the'] }
31 osrlt.fnAddFilters("dt-filter", 750);
32 csrlt.fnAddFilters("dt-filter", 750);
34 $('#serialstabs').tabs();
35 $("#reopensub").click(function(){
36 return confirm(_("Are you sure you want to reopen this subscription?"));
41 <style type="text/css">input.dt-filter { width : 100%; font-size : 85%; }</style>
43 <body id="ser_serials-home" class="ser">
44 [% INCLUDE 'header.inc' %]
45 [% INCLUDE 'serials-search.inc' %]
47 <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>
49 <div id="doc3" class="yui-t2">
53 [% INCLUDE 'serials-toolbar.inc' %]
55 [% IF ( done_searched ) %]
56 <h2>Serials subscriptions ([% total %] found)</h2>
58 <h2>Serials subscriptions search</h2>
61 [% UNLESS ( done_searched ) %]
62 <div id="advsearch" style="padding-bottom:3em;">
63 <form action="/cgi-bin/koha/serials/serials-search.pl" method="get">
64 <fieldset class="rows">
65 <legend>Search subscriptions</legend>
68 <label for="issn">ISSN:</label>
69 <input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter | html %]" />
72 <label for="title">Title:</label>
73 <input type="text" id="title" name="title_filter" value="[% title_filter | html %]" />
75 [% IF ( marcflavour == "UNIMARC" ) %]
77 <label for="ean">EAN:</label>
78 <input type="text" id="ean" name="EAN_filter" value="[% EAN_filter | html %]" />
82 <label for="callnumber">Call number:</label>
83 <input type="text" id="callnumber" name="callnumber_filter" value="[% callnumber_filter | html %]" />
86 <label for="publisher">Publisher:</label>
87 <input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter | html %]" />
90 <label for="bookseller">Vendor:</label>
91 <input type="text" id="bookseller" name="bookseller_filter" value="[% bookseller_filter | html %]" />
94 <label for="branch">Library:</label>
95 <select id="branch" name="branch_filter">
96 <option value="">All</option>
97 [%# FIXME Should not we filter the libraries? %]
98 [% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %]
102 <label for="location">Location:</label>
103 [% PROCESS 'av-build-dropbox.inc' name="location_filter", category="LOC", default=location_filter, all=1 %]
106 <label for="to">Expires before:</label>
107 <input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="datepickerto" />
109 [% FOR field IN additional_fields_for_subscription %]
111 <label for="additional_field_[% field.id %]"> [% field.name %]: </label>
112 [% IF field.authorised_value_choices %]
113 <select id="additional_field_[% field.id %]" name="additional_field_[% field.id %]_filter">
114 <option value="">All</option>
115 [% FOREACH av IN field.authorised_value_choices %]
116 <option value="[% av.authorised_value %]">[% av.lib %]</option>
120 <input id="additional_field_[% field.id %]" type="text" value="[% additional_fields.${field.name} %]" name="additional_field_[% field.id %]_filter" />
125 <input type="hidden" name="searched" value="1" />
126 <fieldset class="action">
127 <input type="submit" value="Search" />
133 [% IF ( done_searched ) %]
135 <div id="serialstabs" class="toptabs" style="clear:both;">
136 <ul class="ui-tabs-nav">
137 <li><a href="#opened">Open ([% openedsubscriptions.size || 0 %])</a></li>
138 <li><a href="#closed">Closed ([% closedsubscriptions.size || 0 %])</a></li>
141 [% IF openedsubscriptions %]
146 <th class="anti-the">Title</th>
151 <th class="title-string">Expiration date</th>
152 [% FOR field IN additional_fields_for_subscription %]
153 <th>[% field.name %]</th>
155 <th class="NoSort">Actions</th>
160 <td><input type="text" class="dt-filter" data-column_num="0" placeholder="Search ISSN" /></td>
161 <td><input type="text" class="dt-filter" data-column_num="1" placeholder="Search title" /></td>
162 <td><input type="text" class="dt-filter" data-column_num="2" placeholder="Search notes" /></td>
163 <td><input type="text" class="dt-filter" data-column_num="3" placeholder="Search library" /></td>
164 <td><input type="text" class="dt-filter" data-column_num="4" placeholder="Search location" /></td>
165 <td><input type="text" class="dt-filter" data-column_num="5" placeholder="Search callnumber" /></td>
166 <td><input type="text" class="dt-filter" data-column_num="6" placeholder="Search expiration date" /></td>
167 [% FOR field IN additional_fields_for_subscription %]
168 <td><input type="text" class="dt-filter" data-column_num="[% loop.count + 6 %]" placeholder="Search [% field.name %]" /></td>
174 [% FOREACH subscription IN openedsubscriptions %]
175 [% UNLESS subscription.cannotdisplay %]
178 [% IF ( subscription.issn ) %][% subscription.issn %]
181 <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="subscription detail">[% subscription.title |html %]</a>
183 <td>[% IF ( subscription.publicnotes ) %][% subscription.publicnotes %][% END %]
184 [% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %]
187 [% IF ( subscription.branchcode ) %][% Branches.GetName( subscription.branchcode ) %][% END %]
190 [% IF ( subscription.location ) %][% AuthorisedValues.GetByCode( 'LOC', subscription.location ) %][% END %]
193 [% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %]
196 [% IF ( subscription.enddate ) %]
197 <span title="[% subscription.enddate %]">[% subscription.enddate | $KohaDates %]</span>
199 <span title="0000-00-00"></span>
203 [% FOR field IN additional_fields_for_subscription %]
204 [% IF field.authorised_value_category %]
205 <td>[% AuthorisedValues.GetByCode( field.authorised_value_category, subscription.additional_fields.${field.name} ) %]</td>
207 <td>[% subscription.additional_fields.${field.name} %]</td>
212 <div class="dropdown">
213 <div class="btn-group">
214 [% IF ( CAN_user_serials_receive_serials ) %]
215 [%# There should be no space between these two buttons, it would render badly %]
216 <a class="btn btn-default btn-xs" role="button"
217 href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid %]&serstatus=1,3,7"><i
218 class="fa fa-inbox"></i> Serial receive</a><a
219 class="btn btn-default btn-xs dropdown-toggle" id="subactions[% subscription.subscriptionid %]" role="button"
220 data-toggle="dropdown" href="#"><b class="caret"></b></a>
222 <a class="btn btn-default btn-xs dropdown-toggle" id="subactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#">Actions <b class="caret"></b></a>
224 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="subactions[% subscription.subscriptionid %]">
226 [% IF ( routing && CAN_user_serials_routing ) %]
227 [% IF ( subscription.cannotedit ) %]
229 [% IF ( subscription.routingedit ) %]
231 <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-pencil"></i> Edit routing list ([% subscription.routingedit %])</a>
235 <a href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% subscription.subscriptionid %]&op=new"> <i class="fa fa-plus"></i> New routing list</a>
239 [% END # IF ( routing && CAN_user_serials_routing ) %]
242 <a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-list-alt"></i> Issue history</a>
255 <div class="dialog message">
256 <p>Your search returned no open subscriptions.</p>
261 [% IF closedsubscriptions %]
263 <!-- FIXME add additional_fields for closed subs -->
267 <th class="anti-the">Title</th>
272 [% FOR field IN additional_fields_for_subscription %]
273 <th>[% field.name %]</th>
275 <th class="NoSort">Actions</th>
280 <td><input type="text" class="dt-filter" data-column_num="0" placeholder="Search ISSN" /></td>
281 <td><input type="text" class="dt-filter" data-column_num="1" placeholder="Search title" /></td>
282 <td><input type="text" class="dt-filter" data-column_num="2" placeholder="Search notes" /></td>
283 <td><input type="text" class="dt-filter" data-column_num="3" placeholder="Search library" /></td>
284 <td><input type="text" class="dt-filter" data-column_num="4" placeholder="Search location" /></td>
285 <td><input type="text" class="dt-filter" data-column_num="5" placeholder="Search callnumber" /></td>
286 [% FOR field IN additional_fields_for_subscription %]
287 <td><input type="text" class="dt-filter" data-column_num="[% loop.count + 5 %]" placeholder="Search [% field.name %]" /></td>
293 [% FOREACH subscription IN closedsubscriptions %]
294 [% UNLESS subscription.cannotdisplay %]
297 [% IF ( subscription.issn ) %]
298 [% subscription.issn %]
302 <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid %]" class="button" title="subscription detail">[% subscription.title |html %]</a>
305 [% IF ( subscription.notes ) %][% subscription.notes %][% END %]
306 [% IF ( subscription.internalnotes ) %]([% subscription.internalnotes %])[% END %]
309 [% IF ( subscription.branchcode ) %][% Branches.GetName( subscription.branchcode ) %][% END %]
312 [% IF ( subscription.location ) %][% AuthorisedValues.GetByCode( 'LOC', subscription.location ) %][% END %]
315 [% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %]
317 [% FOR field IN additional_fields_for_subscription %]
318 [% IF field.authorised_value_category %]
319 <td>[% AuthorisedValues.GetByCode( field.authorised_value_category, subscription.additional_fields.${field.name} ) %]</td>
321 <td>[% subscription.additional_fields.${field.name} %]</td>
325 <div class="dropdown">
326 <a class="btn btn-default btn-xs dropdown-toggle" id="closedsubactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#">
327 Actions <b class="caret"></b>
329 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="closedsubactions[% subscription.subscriptionid %]">
331 [% IF ( routing && CAN_user_serials_routing ) %]
332 [% UNLESS ( subscription.cannotedit ) %]
334 <a href="/cgi-bin/koha/serials/serials-search.pl?subscriptionid=[% subscription.subscriptionid %]&op=reopen&routing=[% subscription.routing %]&searched=1&title_filter=[% title_filter | uri %]&ISSN_filter=[% ISSN_filter | uri %]&EAN_filter=[% EAN_filter | uri %]&published_filter=[% publisher_filter | uri %]&bookseller_filter=[% bookseller_filter | uri %]&branch_filter=[% branch_filter | uri %]" id="reopensub"> <i class="fa fa-repeat"></i> Reopen</a>
337 [% END # IF ( routing && CAN_user_serials_routing ) %]
340 <a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]"><i class="fa fa-list-alt"></i> Issue history</a>
352 <div class="dialog message">
353 <p>Your search returned no closed subscriptions.</p>
359 <div class="dialog message">
360 <p>Your search returned no results.</p>
368 [% INCLUDE 'serials-menu.inc' %]
369 [% IF ( done_searched ) %]
371 <form action="/cgi-bin/koha/serials/serials-search.pl" method="get">
372 <fieldset class="brief">
373 <h4>Search subscriptions</h4>
376 <label for="issn">ISSN:</label>
377 <input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter | html %]" />
380 <label for="title">Title:</label>
381 <input type="text" id="title" name="title_filter" value="[% title_filter | html %]" />
383 [% IF ( marcflavour == "UNIMARC" ) %]
385 <label for="ean">EAN:</label>
386 <input type="text" id="ean" name="EAN_filter" value="[% EAN_filter | html %]" />
390 <label for="callnumber">Call number:</label>
391 <input type="text" id="callnumber" name="callnumber_filter" value="[% callnumber_filter | html %]" />
394 <label for="publisher">Publisher:</label>
395 <input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter | html %]" />
398 <label for="bookseller">Vendor:</label>
399 <input type="text" id="bookseller" name="bookseller_filter" value="[% bookseller_filter | html %]" />
402 <label for="branch">Library:</label>
403 <select id="branch" name="branch_filter">
404 <option value="">All</option>
405 [%# FIXME Should not we filter the libraries? %]
406 [% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %]
410 <label for="location">Location:</label>
411 [% PROCESS 'av-build-dropbox.inc' name="location_filter", category="LOC", default=location_filter, all=1 %]
414 <label for="to">Expires before:</label>
415 <input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="datepickerto" />
418 [% FOR field IN additional_fields_for_subscription %]
420 <label for="additional_field_[% field.id %]ID"> [% field.name %]: </label>
421 [% IF field.authorised_value_choices %]
422 <select id="additional_field_[% field.id %]" name="additional_field_[% field.id %]_filter">
423 <option value="">All</option>
424 [% FOREACH av IN field.authorised_value_choices %]
425 [% IF av.authorised_value == additional_field_filters.${field.name}.value %]
426 <option value="[% av.authorised_value %]" selected="selected">[% av.lib %]</option>
428 <option value="[% av.authorised_value %]">[% av.lib %]</option>
433 <input id="additional_field_[% field.id %]" type="text" value="[% additional_field_filters.${field.name}.value %]" name="additional_field_[% field.id %]_filter" />
438 <input type="hidden" name="searched" value="1" />
439 <fieldset class="action">
440 <input type="submit" value="Search" />
448 [% INCLUDE 'intranet-bottom.inc' %]