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