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 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'serials-search.inc' %]
13 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
16 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
19 <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
22 <a href="#" aria-current="page">
29 <div class="main container-fluid">
31 <div class="col-sm-10 col-sm-push-2">
34 <h1>Check expiration</h1>
36 <form name="f" action="/cgi-bin/koha/serials/checkexpiration.pl" method="get" class="validated">
37 <fieldset class="rows">
38 <legend>Filter results:</legend>
42 <li><label for="title">Title:</label>
43 <input id="title" type="text" name="title" size="15" value="[% title | html %]" /></li>
45 <li><label for="issn">ISSN:</label>
46 <input id="issn" type="text" name="issn" size="15" value="[% issn | html %]" /></li>
47 [% IF can_change_library %]
48 <li><label for="branch">Library:</label>
49 <select id="branch" name="branch">
50 <option value="">All</option>
51 [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
56 <li><label for="date" class="required">Expiring before:</label>
57 <input id="date" type="text" name="date" size="10" value="[% date | html %]" class="required focus flatpickr" required="required" />
58 <span class="required">Required</span>
59 <div class="hint">[% INCLUDE 'date-format.inc' %]</div></li>
63 <label for="showhistoricexpired">Include expirations before today:</label>
64 [% IF showhistoricexpired %]
65 <input id="showhistoricexpired" type="checkbox" name="showhistoricexpired" checked="checked" />
67 <input id="showhistoricexpired" type="checkbox" name="showhistoricexpired" />
72 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
75 [% IF ( subscriptions_loop ) %]
77 <strong>[% numsubscription | html %]</strong> subscription(s)
79 with title matching <span class="title">[% title | html %]</class>
80 [% IF ( issn ) %]and [% END %]
83 with ISSN matching <strong>[% issn | html %]</strong>
85 will expire before <strong>[% date | $KohaDates %]</strong>
88 <div class="checkexpiration-table_table_controls">
89 <a href="#" class="SelectAll"><i class="fa fa-check"></i> Select all</a> |
90 <a href="#" class="ClearAll"><i class="fa fa-remove"></i> Clear all</a>
91 <span class="itemselection_actions">
93 <a class="itemselection_action_renew" title="Renew selected subscriptions"><i class="fa fa-refresh"></i> Renew selected subscriptions</a>
103 [% IF can_change_library %]<th>Library</th>[% END %]
105 <th>Nonpublic note</th>
106 <th>Expiration date</th>
107 <th class="noExport">Actions</th>
109 [% FOREACH subscriptions_loo IN subscriptions_loop %]
111 <td style="text-align:center;vertical-align:middle">
112 <input type="checkbox" value="[% subscriptions_loo.subscriptionid | html %]" name="subscriptionid" />
115 [% subscriptions_loo.issn | html %]
117 <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptions_loo.subscriptionid |url %]">[% IF ( subscriptions_loo.title ) %]
118 [% subscriptions_loo.title | html %]
124 [% IF can_change_library %]<td>
125 [% Branches.GetName( subscriptions_loo.branchcode ) | html %]
128 [% subscriptions_loo.notes | html %]
131 [% subscriptions_loo.internalnotes | html %]
134 [% subscriptions_loo.expirationdate | $KohaDates %]
137 <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>
138 <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>
144 <p>No results for your query</p>
148 </div> <!-- /.col-sm-10.col-sm-push-2 -->
150 <div class="col-sm-2 col-sm-pull-10">
152 [% INCLUDE 'serials-menu.inc' %]
154 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
155 </div> <!-- /.row -->
157 [% MACRO jsinclude BLOCK %]
158 [% INCLUDE 'calendar.inc' %]
160 $(document).ready(function(){
161 $(".renew_subscription").on("click",function(e){
163 var subscriptionid = $(this).data("subscriptionid");
164 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');
166 $('a.itemselection_action_renew').on("click", function(e){
168 newin=window.open($(this).attr('href'),'popup','width=590,height=440,toolbar=false,scrollbars=yes,resize=yes');
170 function itemSelectionBuildRenewLink() {
171 var subscription_ids= new Array();
172 $("input[name='subscriptionid'][type='checkbox']:checked").each(function() {
173 subscription_ids.push($(this).val());
175 if (subscription_ids.length > 0) {
176 var url = '/cgi-bin/koha/serials/subscription-renew.pl?op=multi_renew';
177 url += '&subscriptionid=' + subscription_ids.join('&subscriptionid=');
178 $('a.itemselection_action_renew').attr('href', url);
185 function itemSelectionBuildActionLinks() {
186 var export_link_ok = itemSelectionBuildRenewLink();
187 if (export_link_ok) {
188 $('.itemselection_actions').show();
190 $('.itemselection_actions').hide();
194 itemSelectionBuildActionLinks();
196 $("input[name='subscriptionid'][type='checkbox']").change(function() {
197 itemSelectionBuildActionLinks();
200 $(".SelectAll, .ClearAll").on("click",function(e){
202 var checkboxes = $(this).parent().siblings('table').first().find('input[type="checkbox"]');
203 checkboxes.prop('checked', $(this).hasClass('SelectAll'));
204 itemSelectionBuildActionLinks();
211 [% INCLUDE 'intranet-bottom.inc' %]