Bug 19623: (follow-up) Correct footer include in pop-up windows
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / checkexpiration.tt
1 [% USE Branches %]
2 [% USE KohaDates %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha &rsaquo; Serials &rsaquo; Check expiration</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 </head>
8
9 <body id="ser_checkexpiration" class="ser">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'serials-search.inc' %]
12
13 <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>
14
15 <div id="doc3" class="yui-t2">
16    
17    <div id="bd">
18         <div id="yui-main">
19         <div class="yui-b">
20
21 <h1>Check expiration</h1>
22
23     <form name="f" action="/cgi-bin/koha/serials/checkexpiration.pl" method="post" class="validated">
24 <fieldset class="rows">
25     <legend>Filter results:</legend>
26     
27          <ol>
28         <li><label for="title">Title:</label>
29         <input id="title" type="text" name="title" size="15" value="[% title | html %]" /></li>
30
31         <li><label for="issn">ISSN:</label>
32         <input id="issn" type="text" name="issn" size="15" value="[% issn | html %]" /></li>
33         [% IF can_change_library %]
34         <li><label for="branch">Library:</label>
35         <select id="branch" name="branch">
36             <option value="">All</option>
37             [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
38         </select>
39         </li>
40         [% END %]
41
42         <li><label for="date" class="required">Expiring before:</label>
43             <input id="date" type="text" name="date" size="10" value="[% date | $KohaDates %]" class="required focus datepicker" required="required" />
44         <span class="required">Required</span>
45                         <div class="hint">[% INCLUDE 'date-format.inc' %]</div></li>
46                         </ol>
47         
48 </fieldset>
49 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
50 </form>
51
52 [% IF ( subscriptions_loop ) %]
53 <p>
54     <b>[% numsubscription %]</b> subscription(s)
55         [% IF ( title ) %]
56         with title matching <span class="title">[% title | html %]</class>
57         [% IF ( issn ) %]and [% END %]
58     [% END %]
59     [% IF ( issn ) %]
60         with ISSN matching <b>[% issn | html %]</b>
61     [% END %]
62         will expire before <b>[% date | $KohaDates %]</b>
63 </p>
64 <table>
65         <tr>
66             <th>ISSN</th>
67             <th>Title</th>
68             [% IF can_change_library %]<th>Library</th>[% END %]
69             <th>OPAC note</th>
70             <th>Nonpublic note</th>
71             <th>Expiration date</th>
72             <th>Actions</th>
73         </tr>
74     [% FOREACH subscriptions_loo IN subscriptions_loop %]
75         <tr>
76             <td>
77                 [% subscriptions_loo.issn %]
78             </td>
79             <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptions_loo.subscriptionid |url %]">[% IF ( subscriptions_loo.title ) %]
80                     [% subscriptions_loo.title |html %]
81                 [% ELSE %]
82                     |
83                 [% END %]
84                 </a>
85             </td>
86             [% IF can_change_library %]<td>
87                 [% Branches.GetName( subscriptions_loo.branchcode ) %]
88             </td>[% END %]
89             <td>
90                 [% subscriptions_loo.notes %]
91             </td>
92             <td>
93                 [% subscriptions_loo.internalnotes %]
94             </td>
95             <td>
96                 [% subscriptions_loo.expirationdate | $KohaDates %]
97             </td>
98             <td class="actions">
99                 <a href="/cgi-bin/koha/serials/subscription-add.pl?op=modify&amp;subscriptionid=[% subscriptions_loo.subscriptionid %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
100                 <a href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=[% subscriptions_loo.subscriptionid %]" data-subscriptionid="[% subscriptions_loo.subscriptionid %]" class="btn btn-default btn-xs renew_subscription"><i class="fa fa-refresh"></i> Renew</a>
101             </td>
102         </tr>
103     [% END %]
104     </table>
105 [% ELSIF searched %]
106     <p>No results for your query</p>
107 [% END %]
108
109 </div>
110 </div>
111
112 <div class="yui-b">
113 [% INCLUDE 'serials-menu.inc' %]
114 </div>
115 </div>
116
117 [% MACRO jsinclude BLOCK %]
118     [% INCLUDE 'calendar.inc' %]
119     <script type="text/javascript" language="JavaScript">
120         $(document).ready(function(){
121             $(".renew_subscription").on("click",function(e){
122                 e.preventDefault();
123                 var subscriptionid = $(this).data("subscriptionid");
124                 popup( subscriptionid );
125             });
126         });
127         function popup(subscriptionid) {
128            newin=window.open("subscription-renew.pl?mode=popup&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes,resize=yes');
129         }
130     </script>
131 [% END %]
132
133 [% INCLUDE 'intranet-bottom.inc' %]