Bug 21526: Use the 'url' filter when needed
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / subscription-batchedit.tt
1 [% USE AuthorisedValues %]
2 [% USE Branches %]
3 [% USE ItemTypes %]
4 [% USE KohaDates %]
5 [% INCLUDE 'doc-head-open.inc' %]
6     <title>Koha &rsaquo; Serials &rsaquo; Batch edit</title>
7     [% INCLUDE 'doc-head-close.inc' %]
8     [% INCLUDE 'calendar.inc' %]
9 </head>
10 <body id="ser_subscription-batchedit" class="ser">
11     [% INCLUDE 'header.inc' %]
12     [% INCLUDE 'serials-search.inc' %]
13
14     <div id="breadcrumbs">
15         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
16         &rsaquo;
17         <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
18         &rsaquo;
19         Batch edit
20     </div>
21
22     <div id="doc3" class="yui-t2">
23         <div id="bd">
24             <div id="yui-main">
25                 <div class="yui-b">
26                     <h1>Subscription batch edit</h1>
27
28                     <div>
29                         <p>You are about to edit the following subscriptions:</p>
30                         <table>
31                             <thead>
32                                 <tr>
33                                     <th>ISSN</th>
34                                     <th>Title</th>
35                                     <th>Vendor</th>
36                                     <th>Location</th>
37                                     <th>Library</th>
38                                     <th>Item type</th>
39                                     <th>Public notes</th>
40                                     <th>Nonpublic notes</th>
41                                     <th>Call number</th>
42                                     <th>Create item when receiving</th>
43                                     <th>Expiration date</th>
44                                 </tr>
45                             </thead>
46                             <tbody>
47                                 [% FOREACH subscription IN subscriptions %]
48                                     <tr>
49                                         <td>[% subscription.biblio.biblioitem.issn | html %]</td>
50                                         <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">[% subscription.biblio.title | html %] (#[% subscription.subscriptionid | html %])</a></td>
51                                         <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% subscription.vendor.id | uri %]">[% subscription.vendor.name | html %]</a></td>
52                                         <td>[% AuthorisedValues.GetByCode('LOC', subscription.location) | html %]</td>
53                                         <td>[% Branches.GetName(subscription.branchcode) | html %]</td>
54                                         <td>[% ItemTypes.GetDescription( subscription.itemtype ) | html %]</td>
55                                         <td>[% subscription.notes | html %]</td>
56                                         <td>[% subscription.internalnotes | html %]</td>
57                                         <td>[% subscription.callnumber | html %]</td>
58                                         <td>
59                                             [% IF subscription.serialsadditems %]
60                                                 <span>Yes</span>
61                                             [% ELSE %]
62                                                 <span>No</span>
63                                             [% END %]
64                                         </td>
65                                         <td>[% subscription.enddate | $KohaDates %]</td>
66                                     </tr>
67                                 [% END %]
68                             </tbody>
69                         </table>
70                     </div>
71
72                     <form method="post">
73                         [% FOREACH subscription IN subscriptions %]
74                             <input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid | html %]"/>
75                         [% END %]
76                         [% IF referrer %]
77                             <input type="hidden" name="referrer" value="[% referrer | html %]"/>
78                         [% END %]
79                         <fieldset class="rows">
80                             <ol>
81                                 <li>
82                                     <label for="booksellerid">Vendor:  </label>
83                                     <select id="booksellerid" name="booksellerid">
84                                         <option value="">No change</option>
85                                         [% FOREACH bookseller IN booksellers %]
86                                             <option value="[% bookseller.id | html %]">[% bookseller.name | html %]</option>
87                                         [% END %]
88                                     </select>
89                                 </li>
90                                 <li>
91                                     <label for="location">Location: </label>
92                                     <select id="location" name="location">
93                                         <option value="">No change</option>
94                                         [% FOREACH av IN AuthorisedValues.Get('LOC') %]
95                                             <option value="[% av.authorised_value | html %]">[% av.lib | html %]</option>
96                                         [% END %]
97                                     </select>
98                                 </li>
99                                 <li>
100                                     <label for="branchcode">Library: </label>
101                                     <select id="branchcode" name="branchcode">
102                                         <option value="">No change</option>
103                                         [% FOREACH branch IN Branches.all %]
104                                             <option value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
105                                         [% END %]
106                                     </select>
107                                 </li>
108                                 <li>
109                                     <label for="itemtype">Item type: </label>
110                                     <select id="itemtype" name="itemtype">
111                                         <option value="">No change</option>
112                                         [% FOREACH itemtype IN ItemTypes.Get() %]
113                                             <option value="[% itemtype.itemtype | html %]">[% itemtype.description | html %]</option>
114                                         [% END %]
115                                     </select>
116                                 </li>
117                                 <li>
118                                     <label for="notes">Public note: </label>
119                                     <textarea id="notes" name="notes" placeholder="No change"></textarea>
120                                 </li>
121                                 <li>
122                                     <label for="internalnotes">Nonpublic note: </label>
123                                     <textarea id="internalnotes" name="internalnotes" placeholder="No change"></textarea>
124                                 </li>
125                                 <li>
126                                     <label for="serialsadditems">Create item when receiving: </label>
127                                     <select id="serialsadditems" name="serialsadditems">
128                                         <option value="">No change</option>
129                                         <option value="0">No</option>
130                                         <option value="1">Yes</option>
131                                     </select>
132
133                                 </li>
134                                 <li>
135                                     <label for="enddate">Expiration date: </label>
136                                     <input type="text" class="datepicker" id="enddate" name="enddate" placeholder="No change"/>
137                                 </li>
138                                 [% FOREACH field IN additional_fields %]
139                                     <li>
140                                         <label for="field_[% field.id | html %]">[% field.name | html %]</label>
141                                         [% IF field.authorised_value_category %]
142                                             <select id="field_[% field.id | html %]" name="field_[% field.id | html %]">
143                                                 <option value="">No change</option>
144                                                 [% FOREACH av IN AuthorisedValues.Get(field.authorised_value_category) %]
145                                                     <option value="[% av.authorised_value | html %]">[% av.lib | html %]</option>
146                                                 [% END %]
147                                             </select>
148                                         [% ELSE %]
149                                             <input type="text" id="field_[% field.id | html %]" name="field_[% field.id | html %]" placeholder="No change"/>
150                                         [% END %]
151                                     </li>
152                                 [% END %]
153                             </ol>
154                         </fieldset>
155
156                         <fieldset class="action">
157                             <button type="submit" name="batchedit" value="1">Save</button>
158                             <a class="cancel" href="[% referrer | url %]">Cancel</a>
159                         </fieldset>
160                     </form>
161                 </div>
162             </div>
163             <div class="yui-b">
164                 [% INCLUDE 'serials-menu.inc' %]
165             </div>
166         </div>
167
168     [% INCLUDE 'intranet-bottom.inc' %]