3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Serials › Check expiration</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'calendar.inc' %]
8 <script type="text/javascript" language="JavaScript">
12 * This function checks the form before submit
14 function CheckForm(form){
19 alert(_("You must enter a date!"));
20 document.f.date.focus();
25 function popup(subscriptionid) {
26 newin=window.open("subscription-renew.pl?mode=popup&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes,resize=yes');
31 <!-- End of additions -->
33 <body id="ser_checkexpiration" class="ser">
34 [% INCLUDE 'header.inc' %]
35 [% INCLUDE 'serials-search.inc' %]
37 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › Check expiration </div>
39 <div id="doc3" class="yui-t2">
45 <h1>Check expiration</h1>
47 <form name="f" action="/cgi-bin/koha/serials/checkexpiration.pl" method="post" onsubmit="return CheckForm(this);">
48 <fieldset class="rows">
49 <legend>Filter results:</legend>
52 <li><label for="title">Title:</label>
53 <input id="title" type="text" name="title" size="15" value="[% title | html %]" /></li>
55 <li><label for="issn">ISSN:</label>
56 <input id="issn" type="text" name="issn" size="15" value="[% issn | html %]" /></li>
57 [% IF can_change_library %]
58 <li><label for="branch">Library:</label>
59 <select id="branch" name="branch">
60 <option value="">All</option>
61 [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
66 <li><label for="date" class="required" title="Required field">Expiring before:</label>
67 <input id="date" type="text" name="date" size="10" value="[% date | $KohaDates %]" class="focus datepicker" />
68 <span class="required">Required</span>
69 <div class="hint">[% INCLUDE 'date-format.inc' %]</div></li>
73 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
76 [% IF ( subscriptions_loop ) %]
78 <b>[% numsubscription %]</b> subscription(s)
80 with title matching <span class="title">[% title | html %]</class>
81 [% IF ( issn ) %]and [% END %]
84 with ISSN matching <b>[% issn | html %]</b>
86 will expire before <b>[% date | $KohaDates %]</b>
92 [% IF can_change_library %]<th>Library</th>[% END %]
94 <th>Nonpublic note</th>
95 <th>Expiration date</th>
98 [% FOREACH subscriptions_loo IN subscriptions_loop %]
101 [% subscriptions_loo.issn %]
103 <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptions_loo.subscriptionid |url %]">[% IF ( subscriptions_loo.title ) %]
104 [% subscriptions_loo.title |html %]
110 [% IF can_change_library %]<td>
111 [% Branches.GetName( subscriptions_loo.branchcode ) %]
114 [% subscriptions_loo.notes %]
117 [% subscriptions_loo.internalnotes %]
120 [% subscriptions_loo.expirationdate | $KohaDates %]
123 <a href="/cgi-bin/koha/serials/subscription-add.pl?op=modify&subscriptionid=[% subscriptions_loo.subscriptionid %]" class="btn btn-mini"><i class="fa fa-pencil"></i> Edit</a>
124 <a href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscriptions_loo.subscriptionid %]" onclick="popup([% subscriptions_loo.subscriptionid %]); return false;" class="btn btn-mini"><i class="fa fa-refresh"></i> Renew</a>
130 <p>No results for your query</p>
137 [% INCLUDE 'serials-menu.inc' %]
140 [% INCLUDE 'intranet-bottom.inc' %]