4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Check expiration › Serials › Koha</title>
6 [% INCLUDE 'doc-head-close.inc' %]
9 <body id="ser_checkexpiration" class="ser">
10 [% WRAPPER 'header.inc' %]
11 [% INCLUDE 'serials-search.inc' %]
14 [% WRAPPER 'sub-header.inc' %]
15 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
18 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
21 <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
24 <a href="#" aria-current="page">
32 <div class="main container-fluid">
34 <div class="col-sm-10 col-sm-push-2">
37 <h1>Check expiration</h1>
39 <form name="f" action="/cgi-bin/koha/serials/checkexpiration.pl" method="get" class="validated">
40 <fieldset class="rows">
41 <legend>Filter results:</legend>
45 <li><label for="title">Title:</label>
46 <input id="title" type="text" name="title" size="15" value="[% title | html %]" /></li>
48 <li><label for="issn">ISSN:</label>
49 <input id="issn" type="text" name="issn" size="15" value="[% issn | html %]" /></li>
50 [% IF can_change_library %]
51 <li><label for="branch">Library:</label>
52 <select id="branch" name="branch">
53 <option value="">All</option>
54 [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
59 <li><label for="date" class="required">Expiring before:</label>
60 <input id="date" type="text" name="date" size="10" value="[% date | html %]" class="required focus flatpickr" required="required" />
61 <span class="required">Required</span>
62 <div class="hint">[% INCLUDE 'date-format.inc' %]</div></li>
66 <label for="showhistoricexpired">Include expirations before today:</label>
67 [% IF showhistoricexpired %]
68 <input id="showhistoricexpired" type="checkbox" name="showhistoricexpired" checked="checked" />
70 <input id="showhistoricexpired" type="checkbox" name="showhistoricexpired" />
75 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
78 [% IF ( subscriptions_loop ) %]
80 <strong>[% numsubscription | html %]</strong> subscription(s)
82 with title matching <span class="title">[% title | html %]</class>
83 [% IF ( issn ) %]and [% END %]
86 with ISSN matching <strong>[% issn | html %]</strong>
88 will expire before <strong>[% date | $KohaDates %]</strong>
91 <div class="checkexpiration-table_table_controls">
92 <a href="#" class="SelectAll"><i class="fa fa-check"></i> Select all</a> |
93 <a href="#" class="ClearAll"><i class="fa fa-remove"></i> Clear all</a>
94 <span class="itemselection_actions">
96 <a class="itemselection_action_renew" title="Renew selected subscriptions"><i class="fa fa-refresh"></i> Renew selected subscriptions</a>
106 [% IF can_change_library %]<th>Library</th>[% END %]
108 <th>Nonpublic note</th>
109 <th>Expiration date</th>
110 <th class="noExport">Actions</th>
112 [% FOREACH subscriptions_loo IN subscriptions_loop %]
114 <td style="text-align:center;vertical-align:middle">
115 <input type="checkbox" value="[% subscriptions_loo.subscriptionid | html %]" name="subscriptionid" />
118 [% subscriptions_loo.issn | html %]
120 <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptions_loo.subscriptionid |url %]">[% IF ( subscriptions_loo.title ) %]
121 [% subscriptions_loo.title | html %]
127 [% IF can_change_library %]<td>
128 [% Branches.GetName( subscriptions_loo.branchcode ) | html %]
131 [% subscriptions_loo.notes | html %]
134 [% subscriptions_loo.internalnotes | html %]
137 [% subscriptions_loo.expirationdate | $KohaDates %]
140 <a href="/cgi-bin/koha/serials/subscription-add.pl?op=modify&subscriptionid=[% subscriptions_loo.subscriptionid | uri %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
141 <a href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscriptions_loo.subscriptionid | uri %]" data-subscriptionid="[% subscriptions_loo.subscriptionid | html %]" class="btn btn-default btn-xs renew_subscription"><i class="fa fa-refresh"></i> Renew</a>
147 <p>No results for your query</p>
151 </div> <!-- /.col-sm-10.col-sm-push-2 -->
153 <div class="col-sm-2 col-sm-pull-10">
155 [% INCLUDE 'serials-menu.inc' %]
157 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
158 </div> <!-- /.row -->
160 [% MACRO jsinclude BLOCK %]
161 [% INCLUDE 'calendar.inc' %]
163 $(document).ready(function(){
164 $(".renew_subscription").on("click",function(e){
166 var subscriptionid = $(this).data("subscriptionid");
167 newin=window.open("/cgi-bin/koha/serials/subscription-renew.pl?mode=popup&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes,resize=yes');
169 $('a.itemselection_action_renew').on("click", function(e){
171 newin=window.open($(this).attr('href'),'popup','width=590,height=440,toolbar=false,scrollbars=yes,resize=yes');
173 function itemSelectionBuildRenewLink() {
174 var subscription_ids= new Array();
175 $("input[name='subscriptionid'][type='checkbox']:checked").each(function() {
176 subscription_ids.push($(this).val());
178 if (subscription_ids.length > 0) {
179 var url = '/cgi-bin/koha/serials/subscription-renew.pl?op=multi_renew';
180 url += '&subscriptionid=' + subscription_ids.join('&subscriptionid=');
181 $('a.itemselection_action_renew').attr('href', url);
188 function itemSelectionBuildActionLinks() {
189 var export_link_ok = itemSelectionBuildRenewLink();
190 if (export_link_ok) {
191 $('.itemselection_actions').show();
193 $('.itemselection_actions').hide();
197 itemSelectionBuildActionLinks();
199 $("input[name='subscriptionid'][type='checkbox']").change(function() {
200 itemSelectionBuildActionLinks();
203 $(".SelectAll, .ClearAll").on("click",function(e){
205 var checkboxes = $(this).parent().siblings('table').first().find('input[type="checkbox"]');
206 checkboxes.prop('checked', $(this).hasClass('SelectAll'));
207 itemSelectionBuildActionLinks();
214 [% INCLUDE 'intranet-bottom.inc' %]