2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Serials › Check expiration</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'calendar.inc' %]
7 <script type="text/javascript" language="JavaScript">
11 * This function checks the form before submit
13 function CheckForm(form){
18 alert(_("You must enter a date!"));
19 document.f.date.focus();
24 function popup(subscriptionid) {
25 newin=window.open("subscription-renew.pl?mode=popup&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes,resize=yes');
30 <!-- End of additions -->
32 <body id="ser_checkexpiration" class="ser">
33 [% INCLUDE 'header.inc' %]
34 [% INCLUDE 'serials-search.inc' %]
36 <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>
38 <div id="doc3" class="yui-t2">
44 <h1>Check expiration</h1>
46 <form name="f" action="/cgi-bin/koha/serials/checkexpiration.pl" method="post" onsubmit="return CheckForm(this);">
47 <fieldset class="rows">
48 <legend>Filter results:</legend>
51 <li><label for="title">Title:</label>
52 <input id="title" type="text" name="title" size="15" value="[% title %]" /></li>
54 <li><label for="issn">ISSN:</label>
55 <input id="issn" type="text" name="issn" size="15" value="[% issn %]" /></li>
56 [% IF (branches_loop.size) %]
57 <li><label for="branch">Library:</label>
58 <select id="branch" name="branch">
59 <option value="">All</option>
60 [% FOREACH branch IN branches_loop %]
61 [% IF branch.selected %]
62 <option selected="selected" value="[% branch.branchcode %]">
64 <option value="[% branch.branchcode %]">
66 [% branch.branchname %]
73 <li><label for="date" class="required" title="Required field">Expiring before:</label>
74 <input id="date" type="text" name="date" size="10" value="[% date | $KohaDates %]" class="focus datepicker" />
75 <span class="required">Required</span>
76 <div class="hint">[% INCLUDE 'date-format.inc' %]</div></li>
80 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
83 [% IF ( subscriptions_loop ) %]
85 <b>[% numsubscription %]</b> subscription(s)
87 with title matching <span class="title">[% title %]</class>
88 [% IF ( issn ) %]and [% END %]
91 with ISSN matching <b>[% issn %]</b>
93 will expire before <b>[% date | $KohaDates %]</b>
99 [% IF ( branches_loop.size ) %]<th>Library</th>[% END %]
101 <th>Nonpublic note</th>
102 <th>Expiration date</th>
103 <th colspan="2"> </th>
105 [% FOREACH subscriptions_loo IN subscriptions_loop %]
106 [% IF ( subscriptions_loo.toogle ) %]
107 <tr class="highlight">
112 [% subscriptions_loo.issn %]
114 <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptions_loo.subscriptionid |url %]">[% IF ( subscriptions_loo.title ) %]
115 [% subscriptions_loo.title |html %]
121 [% IF ( branches_loop.size ) %]<td>
122 [% Branches.GetName( subscriptions_loo.branchcode ) %]
125 [% subscriptions_loo.notes %]
128 [% subscriptions_loo.internalnotes %]
131 [% subscriptions_loo.expirationdate | $KohaDates %]
133 <td><a href="/cgi-bin/koha/serials/subscription-add.pl?op=modify&subscriptionid=[% subscriptions_loo.subscriptionid %]">Edit</a></td>
134 <td><a href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscriptions_loo.subscriptionid %]" onclick="popup([% subscriptions_loo.subscriptionid %]); return false;">Renew</a></td>
139 <p>No results for your query</p>
146 [% INCLUDE 'serials-menu.inc' %]
149 [% INCLUDE 'intranet-bottom.inc' %]