Bug 35149: Add Option to ignore submit of checkout field when empty
[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                 [% INCLUDE 'messages.inc' %]
32
33                     <h1>Subscription batch edit</h1>
34
35                     <div class="page-section">
36                         <p>You are about to edit the following subscriptions:</p>
37                         <table>
38                             <thead>
39                                 <tr>
40                                     <th>ISSN</th>
41                                     <th>Title</th>
42                                     <th>Vendor</th>
43                                     <th>Location</th>
44                                     <th>Library</th>
45                                     <th>Item type</th>
46                                     <th>Public notes</th>
47                                     <th>Nonpublic notes</th>
48                                     <th>Call number</th>
49                                     <th>Create item when receiving</th>
50                                     <th>Expiration date</th>
51                                 </tr>
52                             </thead>
53                             <tbody>
54                                 [% FOREACH subscription IN subscriptions %]
55                                     <tr>
56                                         <td>[% subscription.biblio.biblioitem.issn | html %]</td>
57                                         <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">[% subscription.biblio.title | html %] (#[% subscription.subscriptionid | html %])</a></td>
58                                         <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% subscription.vendor.id | uri %]">[% subscription.vendor.name | html %]</a></td>
59                                         <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription.location ) | html %]</td>
60                                         <td>[% Branches.GetName(subscription.branchcode) | html %]</td>
61                                         <td>[% ItemTypes.GetDescription( subscription.itemtype ) | html %]</td>
62                                         <td>[% subscription.notes | html %]</td>
63                                         <td>[% subscription.internalnotes | html %]</td>
64                                         <td>[% subscription.callnumber | html %]</td>
65                                         <td>
66                                             [% IF subscription.serialsadditems %]
67                                                 <span>Yes</span>
68                                             [% ELSE %]
69                                                 <span>No</span>
70                                             [% END %]
71                                         </td>
72                                         <td>[% subscription.enddate | $KohaDates %]</td>
73                                     </tr>
74                                 [% END %]
75                             </tbody>
76                         </table>
77                     </div>
78
79                     <form method="post">
80                         [% INCLUDE 'csrf-token.inc' %]
81                         [% FOREACH subscription IN subscriptions %]
82                             <input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid | html %]"/>
83                         [% END %]
84                         [% IF referrer %]
85                             <input type="hidden" name="referrer" value="[% referrer | html %]"/>
86                         [% END %]
87                         <fieldset class="rows">
88                             <ol>
89                                 <li>
90                                     <label for="booksellerid">Vendor:  </label>
91                                     <select id="booksellerid" name="booksellerid">
92                                         <option value="">No change</option>
93                                         [% FOREACH bookseller IN booksellers %]
94                                             <option value="[% bookseller.id | html %]">[% bookseller.name | html %]</option>
95                                         [% END %]
96                                     </select>
97                                 </li>
98                                 <li>
99                                     <label for="location">Location: </label>
100                                     <select id="location" name="location">
101                                         <option value="">No change</option>
102                                         [% FOREACH av IN AuthorisedValues.Get('LOC') %]
103                                             <option value="[% av.authorised_value | html %]">[% av.lib | html %]</option>
104                                         [% END %]
105                                     </select>
106                                 </li>
107                                 <li>
108                                     <label for="branchcode">Library: </label>
109                                     <select id="branchcode" name="branchcode">
110                                         <option value="">No change</option>
111                                         [% FOREACH branch IN Branches.all %]
112                                             <option value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
113                                         [% END %]
114                                     </select>
115                                 </li>
116                                 <li>
117                                     <label for="itemtype">Item type: </label>
118                                     <select id="itemtype" name="itemtype">
119                                         <option value="">No change</option>
120                                         [% FOREACH itemtype IN ItemTypes.Get() %]
121                                             <option value="[% itemtype.itemtype | html %]">[% itemtype.description | html %]</option>
122                                         [% END %]
123                                     </select>
124                                 </li>
125                                 <li>
126                                     <label for="notes">Public note: </label>
127                                     <textarea id="notes" name="notes" placeholder="No change"></textarea>
128                                 </li>
129                                 <li>
130                                     <label for="internalnotes">Nonpublic note: </label>
131                                     <textarea id="internalnotes" name="internalnotes" placeholder="No change"></textarea>
132                                 </li>
133                                 <li>
134                                     <label for="serialsadditems">Create item when receiving: </label>
135                                     <select id="serialsadditems" name="serialsadditems">
136                                         <option value="">No change</option>
137                                         <option value="0">No</option>
138                                         <option value="1">Yes</option>
139                                     </select>
140
141                                 </li>
142                                 <li>
143                                     <label for="enddate">Expiration date: </label>
144                                     <input type="text" class="flatpickr" id="enddate" name="enddate" placeholder="No change"/>
145                                 </li>
146                                 [% FOREACH field IN additional_fields %]
147                                     <li>
148                                         <label for="field_[% field.id | html %]">[% field.name | html %]</label>
149                                         [% IF field.authorised_value_category %]
150                                             <select id="field_[% field.id | html %]" name="field_[% field.id | html %]">
151                                                 <option value="">No change</option>
152                                                 [% FOREACH av IN AuthorisedValues.Get(field.authorised_value_category) %]
153                                                     <option value="[% av.authorised_value | html %]">[% av.lib | html %]</option>
154                                                 [% END %]
155                                             </select>
156                                         [% ELSE %]
157                                             <input type="text" id="field_[% field.id | html %]" name="field_[% field.id | html %]" placeholder="No change"/>
158                                         [% END %]
159                                     </li>
160                                 [% END %]
161                             </ol>
162                         </fieldset>
163
164                         <fieldset class="action">
165                             <input type="hidden" name="op" value="cud-batchedit" />
166                             <button type="submit" class="btn btn-primary">Save</button>
167                             <a class="cancel" href="[% referrer | url %]">Cancel</a>
168                         </fieldset>
169                     </form>
170
171             </main>
172         </div> <!-- /.col-sm-10.col-sm-push-2 -->
173
174         <div class="col-sm-2 col-sm-pull-10">
175             <aside>
176                 [% INCLUDE 'serials-menu.inc' %]
177             </aside>
178         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
179     </div> <!-- /.row -->
180
181
182     [% INCLUDE 'intranet-bottom.inc' %]