95bfcb89fd09b7cc6441a5267b62badb77d9a493
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / checkexpiration.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Serials &rsaquo; Check expiration</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <script type="text/javascript" language="JavaScript">
6 // <![CDATA[
7     /**
8      *  Function CheckForm
9      *  This function checks the form before submit
10      */
11      function CheckForm(form){
12         if(form.date.value){
13             return true;
14         }
15         else {
16             alert(_("You must enter a date!"));
17             document.f.date.focus();
18             return false;
19         }
20      }
21
22         function popup(subscriptionid) {
23            newin=window.open("subscription-renew.pl?mode=popup&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes,resize=yes');
24         }
25
26      // ]]>
27 </script>
28 <!-- End of additions -->
29 </head>
30 <body id="ser_checkexpiration" class="ser">
31 [% INCLUDE 'header.inc' %]
32 [% INCLUDE 'serials-search.inc' %]
33
34 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Check expiration </div>
35
36 <div id="doc3" class="yui-t2">
37    
38    <div id="bd">
39         <div id="yui-main">
40         <div class="yui-b">
41
42 <h1>Check expiration</h1>
43
44     <form name="f" action="/cgi-bin/koha/serials/checkexpiration.pl" method="post" onsubmit="return CheckForm(this);">
45 <fieldset class="rows">
46     <legend>Filter results :</legend>
47     
48          <ol>
49         <li><label for="title">Title:</label>
50         <input id="title" type="text" name="title" size="15" value="[% title %]" /></li>
51
52         <li><label for="issn">ISSN:</label>
53         <input id="issn" type="text" name="issn" size="15" value="[% issn %]" /></li>
54
55         <li><label for="date" class="required" title="Required field">Expiring before:</label>
56         <input id="date" type="text" name="date" size="10" value="[% date %]" class="focus datepicker" />
57         <span class="required">Required</span>
58                         <div class="hint">[% INCLUDE 'date-format.inc' %]</div></li>
59                         </ol>
60         
61 </fieldset>
62 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
63 </form>
64
65 [% IF ( subscriptions_loop ) %]
66 <p>
67     <b>[% numsubscription %]</b> subscription(s)
68         [% IF ( title ) %]
69         with title matching <span class="title">[% title %]</class>
70         [% IF ( issn ) %]and [% END %]
71     [% END %]
72     [% IF ( issn ) %]
73         with ISSN matching <b>[% issn %]</b>
74     [% END %]
75         will expire before <b>[% date %]</b>
76 </p>
77 <table>
78         <tr>
79             <th>ISSN</th>
80             <th>Title</th>
81             <th>OPAC note</th>
82             <th>Nonpublic note</th>
83             <th>Expiration date</th>
84                         <th colspan="2">&nbsp;</th>
85         </tr>
86     [% FOREACH subscriptions_loo IN subscriptions_loop %]
87         [% IF ( subscriptions_loo.toogle ) %]
88         <tr class="highlight">
89         [% ELSE %]
90         <tr>
91         [% END %]
92             <td>
93                 [% subscriptions_loo.issn %]
94             </td>
95             <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptions_loo.subscriptionid |url %]">[% IF ( subscriptions_loo.title ) %]
96                     [% subscriptions_loo.title |html %]
97                 [% ELSE %]
98                     |
99                 [% END %]
100                 </a>
101             </td>
102             <td>
103                 [% subscriptions_loo.notes %]
104             </td>
105             <td>
106                 [% subscriptions_loo.internalnotes %]
107             </td>
108             <td>
109                 [% subscriptions_loo.expirationdate %]
110             </td>
111             <td><a href="/cgi-bin/koha/serials/subscription-add.pl?op=modify&amp;subscriptionid=[% subscriptions_loo.subscriptionid %]">Edit</a></td>
112                         <td><a href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscriptions_loo.subscriptionid %]" onclick="popup([% subscriptions_loo.subscriptionid %]); return false;">Renew</a></td>
113         </tr>
114     [% END %]
115     </table>
116 [% ELSE %]
117     <p>No results for your query</p>
118 [% END %]
119
120 </div>
121 </div>
122
123 <div class="yui-b">
124 [% INCLUDE 'serials-menu.inc' %]
125 </div>
126 </div>
127 [% INCLUDE 'intranet-bottom.inc' %]