2 [% USE AuthorisedValues %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Batch edit › Serials › Koha</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 [% INCLUDE 'calendar.inc' %]
11 <body id="ser_subscription-batchedit" class="ser">
12 [% WRAPPER 'header.inc' %]
13 [% INCLUDE 'serials-search.inc' %]
16 [% WRAPPER 'sub-header.inc' %]
17 [% WRAPPER breadcrumbs %]
18 [% WRAPPER breadcrumb_item %]
19 <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
21 [% WRAPPER breadcrumb_item bc_active= 1 %]
22 <span>Batch edit</span>
24 [% END #/ WRAPPER breadcrumbs %]
25 [% END #/ WRAPPER sub-header.inc %]
27 <div class="main container-fluid">
29 <div class="col-sm-10 col-sm-push-2">
31 [% INCLUDE 'messages.inc' %]
33 <h1>Subscription batch edit</h1>
35 <div class="page-section">
36 <p>You are about to edit the following subscriptions:</p>
47 <th>Nonpublic notes</th>
49 <th>Create item when receiving</th>
50 <th>Expiration date</th>
54 [% FOREACH subscription IN subscriptions %]
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>
66 [% IF subscription.serialsadditems %]
72 <td>[% subscription.enddate | $KohaDates %]</td>
80 [% INCLUDE 'csrf-token.inc' %]
81 [% FOREACH subscription IN subscriptions %]
82 <input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid | html %]"/>
85 <input type="hidden" name="referrer" value="[% referrer | html %]"/>
87 <fieldset class="rows">
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>
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>
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>
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>
126 <label for="notes">Public note: </label>
127 <textarea id="notes" name="notes" placeholder="No change"></textarea>
130 <label for="internalnotes">Nonpublic note: </label>
131 <textarea id="internalnotes" name="internalnotes" placeholder="No change"></textarea>
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>
143 <label for="enddate">Expiration date: </label>
144 <input type="text" class="flatpickr" id="enddate" name="enddate" placeholder="No change"/>
146 [% FOREACH field IN additional_fields %]
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>
157 <input type="text" id="field_[% field.id | html %]" name="field_[% field.id | html %]" placeholder="No change"/>
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>
172 </div> <!-- /.col-sm-10.col-sm-push-2 -->
174 <div class="col-sm-2 col-sm-pull-10">
176 [% INCLUDE 'serials-menu.inc' %]
178 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
179 </div> <!-- /.row -->
182 [% INCLUDE 'intranet-bottom.inc' %]