3 [% USE AuthorisedValues %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Serial edition [% bibliotitle | html %] › Serials › Koha</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% Asset.js("js/cataloging.js") | $raw %]
8 [% INCLUDE 'calendar.inc' %]
11 $(document).ready(function() {
12 $('#multi_receiving').on('show', function () {
13 $(this).find(".modal-body").html($(".serials_multi_receiving")[0].outerHTML);
17 function popup(subscriptionid) {
18 window.open("subscription-renew.pl?subscriptionid="+subscriptionid,"subscription_renewal",'width=700,height=400,toolbar=false,scrollbars=yes');
21 function unHideItems(index,labelindex, serialId) {
22 subfield = document.getElementById(index);
23 subfield.style.display = 'block';
24 label = document.getElementById(labelindex);
25 label.style.display='none';
27 // Prefilling enumcron subfield with serial enumeration/issue number
29 item_div = $("fieldset#" + index + " div.cataloguing_additem_itemlist div.items");
30 // Getting subfield with enumcron mapping
31 subfield_div = $(item_div).find("input[name='kohafield'][value='items.enumchron']").parent();
32 // Setting text field if no saved default value
33 if(! $(subfield_div).children("input[type='text'][name='field_value']").val() ){
34 $(subfield_div).children("input[type='text'][name='field_value']").val($("#serialseq" + serialId).val());
37 function HideItems(index,labelindex) {
38 subfield = document.getElementById(index);
39 subfield.style.display = 'none';
40 label = document.getElementById(labelindex);
41 label.style.display='block';
43 function setStatus(serialid){
44 $("#status"+serialid).val("2").attr("selected","selected");
46 function changeDate(elem, adate) {
47 $(elem).closest('tr').find('[name=planneddate]').val(adate);
50 $(document).ready(function() {
51 $("form#serials_edit").submit(function() {
53 $(this).find(".cataloguing_additem_itemlist:visible").each(function(){
54 total_errors = total_errors + CheckMandatorySubfields(this);
56 if ( total_errors > 0 ) {
57 var mes = _("Form not submitted because of the following problem(s)");
58 mes += "\n------------------------------------------------------------------------------------\n";
59 mes += "\n- " + _("%s mandatory fields empty (highlighted)").format(total_errors);
68 <style>#serials_edit fieldset.rows label, #serials_edit fieldset.rows span.label {
72 #serials_edit fieldset.rows select { max-width : 15em; }
73 #serials_edit fieldset.rows li {
76 #serials_edit .input_marceditor {
80 <body id="ser_serials-edit" class="ser">
81 [% INCLUDE 'header.inc' %]
82 [% INCLUDE 'serials-search.inc' %]
84 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
87 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
90 <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
93 <a href="#" aria-current="page">
94 Serial edition <em>[% bibliotitle | html %] [% IF ( callnumber ) %]([% callnumber | html %])[% END %]</em>
100 <div class="main container-fluid">
102 <div class="col-sm-10 col-sm-push-2">
105 <h1>Serial edition <em>[% bibliotitle | html %]</em>
106 [% IF location %] ([% AuthorisedValues.GetByCode('LOC', location) | html %])[% END %]
107 [% IF ( callnumber ) %] callnumber: [% callnumber | html %][% END %]</h1>
109 [% INCLUDE 'modals/serials_multi_receiving.inc' %]
111 [% IF internalnotes %]<p>Nonpublic note: [% internalnotes | html | html_line_break %]</p>[% END %]
112 <form method="post" name="f" class="noEnterSubmit" action="serials-edit.pl" id="serials_edit">
115 <div class="dialog alert">
117 [% IF ( barcode_not_unique ) %]<li>Error: Barcode not unique for [% FOREACH errse IN errseq %]serialseq [% errse.serialseq | html %]<br/>[% END %]</li>[% END %]
122 <input type="hidden" name="op" value="serialchangestatus" />
123 [% FOREACH subscription IN subscriptions %]
124 <input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid | html %]" />
129 <th>Published on</th>
130 <th>Published on (text)</th>
135 [% FOREACH serialslis IN serialslist %]
138 <input type="hidden" name="serialid" value="[% serialslis.serialid | html %]" />
139 <input type="hidden" name="biblionumber" value="[% serialslis.biblionumber | html %]" />
140 <input type="hidden" name="itemcount" value="[% serialslis.issuesatonce | html %]" />
141 <input type="hidden" name="user" value="[% serialslis.librarian | html %]" />
142 Issue <input type="text" name="serialseq" id="serialseq[% serialslis.serialid | html %]" value="[% serialslis.serialseq | html %]" size="20" maxlength="100" />
145 <input type="text" name="publisheddate" value="[% serialslis.publisheddate | html %]" size="10" maxlength="15" class="flatpickr" />
148 <input type="text" name="publisheddatetext" value="[% serialslis.publisheddatetext | html %]" size="10" maxlength="100" />
151 <input type="text" name="planneddate" value="[% serialslis.planneddate | html %]" size="10" maxlength="15" class="flatpickr" />
154 [% IF ( serialslis.editdisable ) %]
155 <input type="hidden" name="status" id="status[% serialslis.serialid | html %]" value="[% serialslis.serstatus | html %]">
156 <select name="status" disabled="disabled">
158 [% IF ( serialslis.serialsadditems ) %]
159 <select name="status" id="status[% serialslis.serialid | html %]" onchange="if (this.value==2){unHideItems('items'+[% serialslis.subscriptionid | html %][% serialslis.serialid | html %],'label[% serialslis.subscriptionid | html %][% serialslis.serialid | html %]','[% serialslis.serialid | html %]'); changeDate(this, '[% serialslis.arriveddate | html %]')} else if (this.value==7){changeDate(this, '[% serialslis.arriveddate | html %]')} else { HideItems('items'+[% serialslis.subscriptionid | html %]+[% serialslis.serialid | html %],'label[% serialslis.subscriptionid | html %][% serialslis.serialid | html %]'); changeDate(this, '[% serialslis.planneddate | html %]')}" >
161 <select name="status" id="status[% serialslis.serialid | html %]" onchange="if (this.value==2 || this.value==7){changeDate(this, '[% serialslis.arriveddate | html %]')} else {changeDate(this, '[% serialslis.planneddate | html %]')}" >
164 [% IF ( serialslis.status1 ) %]
165 <option value="1" selected="selected">Expected</option>
167 <option value="1">Expected</option>
169 [% IF ( serialslis.status2 ) %]
170 <option value="2" selected="selected">Arrived</option>
172 <option value="2">Arrived</option>
174 [% IF ( serialslis.status3 ) %]
175 <option value="3" selected="selected">Late</option>
177 <option value="3">Late</option>
179 [% IF ( serialslis.status4 ) %]
180 <option value="4" selected="selected">Missing</option>
182 <option value="4">Missing</option>
184 [% IF ( serialslis.status41 ) %]
185 <option value="41" selected="selected">Missing (never received)</option>
187 <option value="41">Missing (never received)</option>
189 [% IF ( serialslis.status42 ) %]
190 <option value="42" selected="selected">Missing (sold out)</option>
192 <option value="42">Missing (sold out)</option>
194 [% IF ( serialslis.status43 ) %]
195 <option value="43" selected="selected">Missing (damaged)</option>
197 <option value="43">Missing (damaged)</option>
199 [% IF ( serialslis.status44 ) %]
200 <option value="44" selected="selected">Missing (lost)</option>
202 <option value="44">Missing (lost)</option>
204 [% IF ( serialslis.status7 ) %]
205 <option value="7" selected="selected">Claimed</option>
207 <option value="7">Claimed</option>
209 [% IF ( serialslis.status5 ) %]
210 <option value="5" selected="selected">Not available</option>
212 <option value="5">Not available</option>
214 [% IF ( serialslis.status6 ) %]
215 <option value="6" selected="selected">Delete</option>
217 <option value="6">Delete</option>
219 [% IF serialslis.status8 %]
220 <option value="8" selected="selected">Stopped</option>
226 <input type="text" name="notes" value="[% serialslis.sernotes | html %]" size="20" maxlength="255" />
229 [% UNLESS ( serialslis.subscriptionexpired ) %]
230 [% IF ( serialslis.serialsadditems ) %]
233 <a id="label[% serialslis.subscriptionid | html %][% serialslis.serialid | html %]" class="btn btn-default btn-sm" onclick="unHideItems('items[% serialslis.subscriptionid | html %][% serialslis.serialid | html %]','label[% serialslis.subscriptionid | html %][% serialslis.serialid | html %]', '[% serialslis.serialid | html %]');setStatus([% serialslis.serialid | html %]);">
235 <fieldset class="rows" style="display:none;" id="items[% serialslis.subscriptionid | html %][% serialslis.serialid | html %]">
236 <legend><a style="cursor: pointer;" onclick="HideItems('items[% serialslis.subscriptionid | html %][% serialslis.serialid | html %]','label[% serialslis.subscriptionid | html %][% serialslis.serialid | html %]')">
239 <div class="cataloguing_additem_itemlist">
240 [% FOREACH item IN serialslis.items %]
241 <div id="item[% item.serialid | html %][% item.countitems | html %]" class="items">
242 <ol>[% FOREACH iteminformatio IN item.iteminformation %]<li>
243 <div class="subfield_line" style="[% iteminformatio.hidden | html %]" id="subfield[% item.serialid | html %][% item.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]">
244 [% IF (iteminformatio.mandatory) %]
245 <label class="required">[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | $raw %]</label>
247 <label>[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | $raw %]</label>
249 [% IF ( iteminformatio.marc_value.type == 'select' ) %]
250 <select name="field_value" class="select2 input_marceditor">
251 [% FOREACH value IN iteminformatio.marc_value.values %]
252 [% IF ( value == iteminformatio.marc_value.default ) %]
253 <option value="[% value | html %]" selected="selected">[% iteminformatio.marc_value.labels.$value | html %]</option>
255 <option value="[% value | html %]">[% iteminformatio.marc_value.labels.$value | html %]</option>
260 [% iteminformatio.marc_value | $raw %]
262 <input type="hidden" name="itemid" value="[% item.itemid | html %]" />
263 <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield | html %]" />
264 <input type="hidden" name="tag" value="[% iteminformatio.tag | html %]" />
265 <input type="hidden" name="subfield" value="[% iteminformatio.subfield | html %]" />
266 <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory | html %]" />
267 [% IF ( iteminformatio.repeatable ) %]
268 <a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode.parentNode); return false;">
269 <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
272 [% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %]
275 [% END %]</ol></div><!-- /iteminformation -->
278 <div class="subfield_line">
279 <label for="number_of_copies">Number of copies to be made of this item </label> <input type="text" id="number_of_copies[% newserialloo.serialid | html %][% newserialloo.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]" name="number_of_copies" value="1" size="2"> <span class="hint">The barcode you enter will be incremented for each additional item.</p>
282 <input type="hidden" name="moditem" value="" />
283 <input type="hidden" name="tag" value="[% item.itemtagfield | html %]" />
284 <input type="hidden" name="subfield" value="[% item.itemtagsubfield | html %]" />
285 <input type="hidden" name="serial" value="[% item.serialid | html %]" />
286 <input type="hidden" name="bibnum" value="[% item.biblionumber | html %]" />
287 <input type="hidden" name="itemid" value="[% item.itemid | html %]" />
288 <input type="hidden" name="field_value" value="[% item.itemnumber | html %]" />
289 [% END %] <!-- /items -->
297 [% FOREACH newserialloo IN newserialloop %]
298 [% UNLESS ( newserialloo.subscriptionexpired ) %]
301 <input type="hidden" name="serialid" value="NEW" />
302 <input type="hidden" name="biblionumber" value="[% newserialloo.biblionumber | html %]" />
303 <input type="hidden" name="itemcount" value="[% newserialloo.issuesatonce | html %]" />
304 <input type="hidden" name="user" value="[% newserialloo.librarian | html %]" />
305 Supplemental issue <input type="text" name="serialseq" id="serialseq[% newserialloo.serialid | html %]" value="" size="20" maxlength="100" onchange="if (this.value!=''){unHideItems('items[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]','label[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]', '[% newserialloo.serialid | html %]')} else {HideItems('items[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]','label[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]')}" />
308 <input type="text" name="publisheddate" value="[% newserialloo.publisheddate | html %]" size="10" maxlength="15" class="flatpickr" />
311 <input type="text" name="publisheddatetext" value="[% newserialloo.publisheddatetext | html %]" size="10" maxlength="100" />
314 <input type="text" name="planneddate" value="[% newserialloo.planneddate | html %]" size="10" maxlength="15" class="flatpickr" />
317 <select name="status" id="addstatus[% newserialloo.serialid | html %]" onchange="if (this.value==2){unHideItems('items'+'[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]','label[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]','[% newserialloo.serialid | html %]'); changeDate(this, '[% newserialloo.arriveddate | html %]')} else if (this.value==7){changeDate(this, '[% newserialloo.arriveddate | html %]')} else { HideItems('items'+'[% newserialloo.subscriptionid | html %]'+[% newserialloo.serialid | html %],'label[% serialslis.subscriptionid | html %][% serialslis.serialid | html %]'); changeDate(this, '[% serialslis.planneddate | html %]')}" >
319 <option value="">----</option>
320 [% IF ( newserialloo.status1 ) %]
321 <option value="1" selected="selected">Expected</option>
323 [% IF ( newserialloo.status2 ) %]
324 <option value="2" selected="selected">Arrived</option>
326 <option value="2">Arrived</option>
328 [% IF ( newserialloo.status3 ) %]
329 <option value="3" selected="selected">Late</option>
331 <option value="3">Late</option>
333 [% IF ( newserialloo.status4 ) %]
334 <option value="4" selected="selected">Missing</option>
336 <option value="4">Missing</option>
338 [% IF ( newserialloo.status41 ) %]
339 <option value="41" selected="selected">Missing (never received)</option>
341 <option value="41">Missing (never received)</option>
343 [% IF ( newserialloo.status42 ) %]
344 <option value="42" selected="selected">Missing (sold out)</option>
346 <option value="42">Missing (sold out)</option>
348 [% IF ( newserialloo.status43 ) %]
349 <option value="43" selected="selected">Missing (damaged)</option>
351 <option value="43">Missing (damaged)</option>
353 [% IF ( newserialloo.status44 ) %]
354 <option value="44" selected="selected">Missing (lost)</option>
356 <option value="44">Missing (lost)</option>
358 [% IF ( newserialloo.status7 ) %]
359 <option value="7" selected="selected">Claimed</option>
361 <option value="7">Claimed</option>
363 [% IF ( newserialloo.status5 ) %]
364 <option value="5" selected="selected">Not available</option>
366 <option value="5">Not available</option>
368 [% IF ( newserialloo.status6 ) %]
369 <option value="6" selected="selected">Delete</option>
371 <option value="6">Delete</option>
373 [% IF newserialloo.status8 %]
374 <option value="8" selected="selected">Stopped</option>
380 <input type="text" name="notes" value="" size="20" maxlength="255" />
383 [% IF ( newserialloo.serialsadditems ) %]
386 <a id="label[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]" class="btn btn-default btn-sm" onclick="unHideItems('items[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]','label[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]', '[% newserialloo.serialid | html %]')">
388 <fieldset class="rows" style="display:none;" id="items[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]">
389 <legend><a style="cursor: pointer;" onclick="HideItems('items[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]','label[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]')">
392 <div class="cataloguing_additem_itemlist">
393 <div id="item[% newserialloo.serialid | html %][% newserialloo.countitems | html %]" class="items">
394 <ol>[% FOREACH iteminformatio IN newserialloo.iteminformation %]<li>
395 <div class="subfield_line" style="[% iteminformatio.hidden | html %]" id="subfield[% newserialloo.serialid | html %][% newserialloo.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]">
396 [% IF (iteminformatio.mandatory) %]
397 <label class="required">[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | $raw %]</label>
399 <label>[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | $raw %]</label>
401 [% IF ( iteminformatio.marc_value.type == 'select' ) %]
402 <select name="field_value" class="select2 input_marceditor">
403 [% FOREACH value IN iteminformatio.marc_value.values %]
404 [% IF ( value == iteminformatio.marc_value.default ) %]
405 <option value="[% value | html %]" selected="selected">[% iteminformatio.marc_value.labels.$value | html %]</option>
407 <option value="[% value | html %]">[% iteminformatio.marc_value.labels.$value | html %]</option>
412 [% iteminformatio.marc_value | $raw %]
414 <input type="hidden" name="itemid" value="[% newserialloo.itemid | html %]" />
415 <input type="hidden" name="kohafield" value="[% iteminformatio.kohafield | html %]" />
416 <input type="hidden" name="tag" value="[% iteminformatio.tag | html %]" />
417 <input type="hidden" name="subfield" value="[% iteminformatio.subfield | html %]" />
418 <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory | html %]" />
419 [% IF ( iteminformatio.repeatable ) %]
420 <a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode.parentNode); return false;">
421 <img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
424 [% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %]
429 <div class="subfield_line">
430 <label for="number_of_copies">Number of copies to be made of this item </label> <input type="text" id="number_of_copies[% newserialloo.serialid | html %][% newserialloo.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]" name="number_of_copies" value="1" size="2"> <span class="hint">The barcode you enter will be incremented for each additional item.</p>
433 <input type="hidden" name="moditem" value="" />
434 <input type="hidden" name="tag" value="[% newserialloo.itemtagfield | html %]" />
435 <input type="hidden" name="subfield" value="[% newserialloo.itemtagsubfield | html %]" />
436 <input type="hidden" name="serial" value="[% newserialloo.serialid | html %]" />
437 <input type="hidden" name="bibnum" value="[% newserialloo.biblionumber | html %]" />
438 <input type="hidden" name="itemid" value="[% newserialloo.itemid | html %]" />
439 <input type="hidden" name="field_value" value="[% newserialloo.itemnumber | html %]" />
450 <fieldset class="action">
451 <div class="btn-group"><input type="submit" value="Save" class="btn btn-default" accesskey="w" /></div>
452 [% UNLESS ( serialsadditems ) %]
453 <div class="btn-group"><a href="#multi_receiving" role="button" class="btn btn-default" data-toggle="modal"><i class="fa fa-plus"></i> Multi receiving</a></div>
460 </div> <!-- /.col-sm-10.col-sm-push-2 -->
462 <div class="col-sm-2 col-sm-pull-10">
464 [% INCLUDE 'serials-menu.inc' %]
466 [% FOREACH subscription IN subscriptions %]
467 <li><a href="serials-collection.pl?subscriptionid=[% subscription.subscriptionid | uri %]" title="serial collection for [% subscription.bibliotitle | uri %]">Serial collection #[% subscription.subscriptionid | html %]</a></li>
468 <li><a href="subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]" title="detail of the subscription">Subscription #[% subscription.subscriptionid | html %]</a></li>
469 [% IF ( subscription.abouttoexpire ) %]
470 [% UNLESS subscription.closed %]
471 <li><a href="#" onclick="javascript:popup([% subscription.subscriptionid | html %])">Renew #[% subscription.subscriptionid | html %]</a></li>
475 <li><a href="[% PROCESS biblio_a_href biblionumber => biblionumber %]" title="go to [% bibliotitle | html %]">Show biblio</a></li></ul>
477 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
478 </div> <!-- /.row -->
480 [% INCLUDE 'intranet-bottom.inc' %]