656 lines
49 KiB
Plaintext
656 lines
49 KiB
Plaintext
[% USE raw %]
|
|
[% USE Koha %]
|
|
[% USE Asset %]
|
|
[% USE AuthorisedValues %]
|
|
[% PROCESS 'i18n.inc' %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title
|
|
>[% FILTER collapse %]
|
|
[% t("Serial edition") | html %]
|
|
[% IF ( callnumber ) %]
|
|
([% callnumber | html %])
|
|
[% END %]
|
|
› [% bibliotitle | html %] › [% t("Serials") | html %] › [% t("Koha") | html %]
|
|
[% END %]</title
|
|
>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% Asset.css("css/serials-edit.css") | $raw %]
|
|
[% Asset.js("js/cataloging.js") | $raw %]
|
|
[% INCLUDE 'calendar.inc' %]
|
|
<script nonce="[% Koha.CSPNonce | $raw %]">
|
|
//<![CDATA[
|
|
$(document).ready(function () {
|
|
$("#multi_receiving").on("show", function () {
|
|
$(this).find(".modal-body").html($(".serials_multi_receiving")[0].outerHTML);
|
|
});
|
|
});
|
|
|
|
function popup(subscriptionid) {
|
|
window.open("subscription-renew.pl?op=renew&subscriptionid=" + subscriptionid, "subscription_renewal", "width=700,height=400,toolbar=false,scrollbars=yes");
|
|
}
|
|
|
|
function unHideItems(index, labelindex, serialId) {
|
|
subfield = document.getElementById(index);
|
|
subfield.style.display = "block";
|
|
label = document.getElementById(labelindex);
|
|
label.style.display = "none";
|
|
|
|
// Prefilling enumcron subfield with serial enumeration/issue number
|
|
// Getting item div
|
|
item_div = $("fieldset#" + index + " div.cataloguing_additem_itemlist div.items");
|
|
// Getting subfield with enumcron mapping
|
|
subfield_div = $(item_div).find("input[name='kohafield'][value='items.enumchron']").parent();
|
|
// Setting text field if no saved default value
|
|
if (!$(subfield_div).children("input[type='text'][name='field_value']").val()) {
|
|
$(subfield_div)
|
|
.children("input[type='text'][name='field_value']")
|
|
.val($("#serialseq" + serialId).val());
|
|
}
|
|
}
|
|
function HideItems(index, labelindex) {
|
|
subfield = document.getElementById(index);
|
|
subfield.style.display = "none";
|
|
label = document.getElementById(labelindex);
|
|
label.style.display = "block";
|
|
}
|
|
function setStatus(serialid) {
|
|
$("#status" + serialid)
|
|
.val("2")
|
|
.attr("selected", "selected");
|
|
}
|
|
function changeDate(elem, adate) {
|
|
$(elem).closest("tr").find("[name=planneddate]").val(adate);
|
|
}
|
|
|
|
$(document).ready(function () {
|
|
$("form#serials_edit").submit(function () {
|
|
var total_errors = 0;
|
|
$(this)
|
|
.find(".cataloguing_additem_itemlist:visible")
|
|
.each(function () {
|
|
total_errors = total_errors + CheckMandatorySubfields(this);
|
|
});
|
|
if (total_errors > 0) {
|
|
var mes = _("Form not submitted because of the following problem(s)");
|
|
mes += "\n------------------------------------------------------------------------------------\n";
|
|
mes += "\n- " + _("%s mandatory fields empty (highlighted)").format(total_errors);
|
|
alert(mes);
|
|
return false;
|
|
}
|
|
return true;
|
|
});
|
|
|
|
$("#toggle_skip_issues").on("change", function () {
|
|
if (this.checked) {
|
|
$("#skip_issues").removeClass("collapse").prop("disabled", false);
|
|
} else {
|
|
$("#skip_issues").addClass("collapse").prop("disabled", true);
|
|
}
|
|
});
|
|
});
|
|
//]]>
|
|
</script>
|
|
<style nonce="[% Koha.CSPNonce | $raw %]">
|
|
#serials_edit fieldset.rows label,
|
|
#serials_edit fieldset.rows span.label {
|
|
font-size: 100%;
|
|
width: 25%;
|
|
}
|
|
#serials_edit fieldset.rows select {
|
|
max-width: 15em;
|
|
}
|
|
#serials_edit fieldset.rows li {
|
|
padding-bottom: 3px;
|
|
}
|
|
#serials_edit .input_marceditor {
|
|
width: auto;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body id="ser_serials-edit" class="ser">
|
|
[% WRAPPER 'header.inc' %]
|
|
[% INCLUDE 'serials-search.inc' %]
|
|
[% END %]
|
|
|
|
[% WRAPPER 'sub-header.inc' %]
|
|
[% WRAPPER breadcrumbs %]
|
|
[% WRAPPER breadcrumb_item %]
|
|
<a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
|
|
[% END %]
|
|
[% WRAPPER breadcrumb_item %]
|
|
<a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscriptionid | uri %]"><em>[% bibliotitle | html %]</em></a>
|
|
[% END %]
|
|
[% WRAPPER breadcrumb_item bc_active= 1 %]
|
|
<span>Serial edition</span> [% IF ( callnumber ) %]<em>([% callnumber | html %]</em>)[% END %]
|
|
[% END %]
|
|
[% END #/ WRAPPER breadcrumbs %]
|
|
[% END #/ WRAPPER sub-header.inc %]
|
|
|
|
<div class="main container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-10 order-md-2 order-sm-1">
|
|
<main>
|
|
[% INCLUDE 'messages.inc' %]
|
|
|
|
<div class="btn-group"><input type="button" value="Generate next" href="#generate_next" class="btn btn-default btn-sm" data-bs-toggle="modal" /></div>
|
|
[% INCLUDE 'modals/generate_next.inc' referrer="serials-edit" %]
|
|
|
|
<h1
|
|
>Serial edition <em>[% bibliotitle | html %]</em> [% IF location %]([% AuthorisedValues.GetByCode('LOC', location) | html %])[% END %]
|
|
[% IF ( callnumber ) %]callnumber: [% callnumber | html %][% END %]</h1
|
|
>
|
|
|
|
[% INCLUDE 'modals/serials_multi_receiving.inc' %]
|
|
|
|
[% IF internalnotes %]<p>Nonpublic note: [% internalnotes | html | html_line_break %]</p>[% END %]
|
|
<form method="post" name="f" class="noEnterSubmit" action="serials-edit.pl" id="serials_edit">
|
|
[% INCLUDE 'csrf-token.inc' %]
|
|
|
|
[% IF ( Errors ) %]
|
|
<div class="alert alert-warning">
|
|
<ul>
|
|
[% IF ( barcode_not_unique ) %]<li>Error: Barcode not unique for [% FOREACH errse IN errseq %]serialseq [% errse.serialseq | html %]<br />[% END %]</li>[% END %]
|
|
</ul>
|
|
</div>
|
|
[% END %]
|
|
|
|
<input type="hidden" name="op" value="cud-serialchangestatus" />
|
|
[% FOREACH subscription IN subscriptions %]
|
|
<input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid | html %]" />
|
|
[% END %]
|
|
|
|
<div class="page-section">
|
|
<table>
|
|
<tr>
|
|
<th>Numbered</th>
|
|
<th>Published on</th>
|
|
<th>Published on (text)</th>
|
|
<th>Expected on</th>
|
|
<th>Status</th>
|
|
<th>Notes</th>
|
|
</tr>
|
|
[% FOREACH serialslis IN serialslist %]
|
|
<tr>
|
|
<td>
|
|
<input type="hidden" name="serialid" value="[% serialslis.serialid | html %]" />
|
|
<input type="hidden" name="biblionumber" value="[% serialslis.biblionumber | html %]" />
|
|
<input type="hidden" name="itemcount" value="[% serialslis.issuesatonce | html %]" />
|
|
<input type="hidden" name="user" value="[% serialslis.librarian | html %]" />
|
|
Issue <input type="text" name="serialseq" id="serialseq[% serialslis.serialid | html %]" value="[% serialslis.serialseq | html %]" size="20" maxlength="100" />
|
|
</td>
|
|
<td>
|
|
<input type="text" name="publisheddate" value="[% serialslis.publisheddate | html %]" size="10" maxlength="15" class="flatpickr" />
|
|
</td>
|
|
<td>
|
|
<input type="text" name="publisheddatetext" value="[% serialslis.publisheddatetext | html %]" size="10" maxlength="100" />
|
|
</td>
|
|
<td>
|
|
<input type="text" name="planneddate" value="[% serialslis.planneddate | html %]" size="10" maxlength="15" class="flatpickr" />
|
|
</td>
|
|
<td>
|
|
[% BLOCK option_list %]
|
|
[% IF ( serialslis.status1 ) %]
|
|
<option value="1" selected="selected">Expected</option>
|
|
[% ELSE %]
|
|
<option value="1">Expected</option>
|
|
[% END %]
|
|
[% IF ( serialslis.status2 ) %]
|
|
<option value="2" selected="selected">Arrived</option>
|
|
[% ELSE %]
|
|
<option value="2">Arrived</option>
|
|
[% END %]
|
|
[% IF ( serialslis.status21 ) %]
|
|
<option value="21" selected="selected">Circulating</option>
|
|
[% ELSE %]
|
|
[% IF ( !serialslis.status1 ) %]
|
|
<option value="21">Circulating</option>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( serialslis.status22 ) %]
|
|
<option value="22" selected="selected">Out for binding</option>
|
|
[% ELSE %]
|
|
[% IF ( !serialslis.status1 ) %]
|
|
<option value="22">Out for binding</option>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( serialslis.status23 ) %]
|
|
<option value="23" selected="selected">Bound</option>
|
|
[% ELSE %]
|
|
[% IF ( !serialslis.status1 ) %]
|
|
<option value="23">Bound</option>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( serialslis.status3 ) %]
|
|
<option value="3" selected="selected">Late</option>
|
|
[% ELSE %]
|
|
<option value="3">Late</option>
|
|
[% END %]
|
|
[% IF ( serialslis.status4 ) %]
|
|
<option value="4" selected="selected">Missing</option>
|
|
[% ELSE %]
|
|
<option value="4">Missing</option>
|
|
[% END %]
|
|
[% IF ( serialslis.status41 ) %]
|
|
<option value="41" selected="selected">Missing (never received)</option>
|
|
[% ELSE %]
|
|
<option value="41">Missing (never received)</option>
|
|
[% END %]
|
|
[% IF ( serialslis.status42 ) %]
|
|
<option value="42" selected="selected">Missing (sold out)</option>
|
|
[% ELSE %]
|
|
<option value="42">Missing (sold out)</option>
|
|
[% END %]
|
|
[% IF ( serialslis.status43 ) %]
|
|
<option value="43" selected="selected">Missing (damaged)</option>
|
|
[% ELSE %]
|
|
<option value="43">Missing (damaged)</option>
|
|
[% END %]
|
|
[% IF ( serialslis.status44 ) %]
|
|
<option value="44" selected="selected">Missing (lost)</option>
|
|
[% ELSE %]
|
|
<option value="44">Missing (lost)</option>
|
|
[% END %]
|
|
[% IF ( serialslis.status7 ) %]
|
|
<option value="7" selected="selected">Claimed</option>
|
|
[% ELSE %]
|
|
<option value="7">Claimed</option>
|
|
[% END %]
|
|
[% IF ( serialslis.status5 ) %]
|
|
<option value="5" selected="selected">Not available</option>
|
|
[% ELSE %]
|
|
<option value="5">Not available</option>
|
|
[% END %]
|
|
[% IF ( serialslis.status6 ) %]
|
|
<option value="6" selected="selected">Delete</option>
|
|
[% ELSE %]
|
|
<option value="6">Delete</option>
|
|
[% END %]
|
|
[% IF serialslis.status8 %]
|
|
<option value="8" selected="selected">Stopped</option>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( serialslis.editdisable ) %]
|
|
<input type="hidden" name="status" id="status[% serialslis.serialid | html %]" value="[% serialslis.serstatus | html %]" />
|
|
<select name="status" disabled="disabled">
|
|
[% PROCESS option_list %]
|
|
</select>
|
|
[% ELSE %]
|
|
[% IF ( serialslis.serialsadditems ) %]
|
|
<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 %]')}"
|
|
>
|
|
[% PROCESS option_list %]
|
|
</select>
|
|
[% ELSE %]
|
|
<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 %]')}"
|
|
>
|
|
[% PROCESS option_list %]
|
|
</select>
|
|
[% END %]
|
|
[% END %]
|
|
</td>
|
|
<td>
|
|
<input type="text" name="notes" value="[% serialslis.sernotes | html %]" size="20" maxlength="255" />
|
|
</td>
|
|
</tr>
|
|
[% UNLESS ( serialslis.subscriptionexpired ) %]
|
|
[% IF ( serialslis.serialsadditems ) %]
|
|
<tr>
|
|
<td colspan="6">
|
|
[% SET item_count = 0 %]
|
|
[% FOREACH item IN serialslis.items %]
|
|
[% IF ( item.itemnumber ) %]
|
|
[% item_count = item_count + 1 %]
|
|
[% END %]
|
|
[% END %]
|
|
[% IF item_count > 0 %]
|
|
<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 %]);"
|
|
>
|
|
Edit item</a
|
|
>
|
|
[% ELSE %]
|
|
<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 %]);"
|
|
>
|
|
Add item</a
|
|
>
|
|
[% END %]
|
|
<fieldset class="rows" style="display:none;" id="items[% serialslis.subscriptionid | html %][% serialslis.serialid | html %]">
|
|
<legend
|
|
><a
|
|
style="cursor: pointer;"
|
|
onclick="HideItems('items[% serialslis.subscriptionid | html %][% serialslis.serialid | html %]','label[% serialslis.subscriptionid | html %][% serialslis.serialid | html %]')"
|
|
>
|
|
Item</a
|
|
>
|
|
</legend>
|
|
<div class="cataloguing_additem_itemlist marc_editor">
|
|
[% FOREACH item IN serialslis.items %]
|
|
<div id="item[% item.serialid | html %][% item.countitems | html %]" class="items">
|
|
<ol
|
|
>[% FOREACH iteminformatio IN item.iteminformation %]
|
|
<li>
|
|
<div
|
|
class="subfield_line"
|
|
style="[% iteminformatio.hidden | html %]"
|
|
id="subfield[% item.serialid | html %][% item.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]"
|
|
>
|
|
[% IF (iteminformatio.mandatory) %]
|
|
<label class="required">[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | html %]</label>
|
|
[% ELSE %]
|
|
<label>[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | html %]</label>
|
|
[% END %]
|
|
[% IF ( iteminformatio.marc_value.type == 'select' ) %]
|
|
<select name="field_value" class="select2 input_marceditor">
|
|
[% FOREACH value IN iteminformatio.marc_value.values %]
|
|
[% IF ( value == iteminformatio.marc_value.default ) %]
|
|
<option value="[% value | html %]" selected="selected">[% iteminformatio.marc_value.labels.$value | html %]</option>
|
|
[% ELSE %]
|
|
<option value="[% value | html %]">[% iteminformatio.marc_value.labels.$value | html %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
[% ELSE %]
|
|
[% iteminformatio.marc_value | $raw %]
|
|
[% END %]
|
|
<input type="hidden" name="itemid" value="[% item.itemid | html %]" />
|
|
<input type="hidden" name="kohafield" value="[% iteminformatio.kohafield | html %]" />
|
|
<input type="hidden" name="tag" value="[% iteminformatio.tag | html %]" />
|
|
<input type="hidden" name="subfield" value="[% iteminformatio.subfield | html %]" />
|
|
<input type="hidden" name="mandatory" value="[% iteminformatio.mandatory | html %]" />
|
|
[% IF ( iteminformatio.repeatable ) %]
|
|
<a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode.parentNode); return false;">
|
|
<img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
|
|
</a>
|
|
[% END %]
|
|
[% IF ( iteminformatio.mandatory ) %]<span class="required">Required</span>[% END %]
|
|
</div></li
|
|
>
|
|
[% END %]</ol
|
|
></div
|
|
><!-- /iteminformation -->
|
|
|
|
<hr />
|
|
<div class="subfield_line">
|
|
<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"
|
|
maxlength="3"
|
|
size="2"
|
|
/>
|
|
<span class="hint">Number of copies limited to under 1000. The barcode you enter will be incremented for each additional item.</span>
|
|
</div>
|
|
|
|
<input type="hidden" name="moditem" value="" />
|
|
<input type="hidden" name="tag" value="[% item.itemtagfield | html %]" />
|
|
<input type="hidden" name="subfield" value="[% item.itemtagsubfield | html %]" />
|
|
<input type="hidden" name="serial" value="[% item.serialid | html %]" />
|
|
<input type="hidden" name="bibnum" value="[% item.biblionumber | html %]" />
|
|
<input type="hidden" name="itemid" value="[% item.itemid | html %]" />
|
|
<input type="hidden" name="field_value" value="[% item.itemnumber | html %]" />
|
|
[% END %]
|
|
<!-- /items -->
|
|
</div>
|
|
</fieldset>
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
[% END %]
|
|
[% END %]
|
|
<tr>
|
|
<td colspan="6"
|
|
>Skip issues:<input type="checkbox" id="toggle_skip_issues" /> <input id="skip_issues" type="text" pattern="^\d$" name="skip_issues" class="collapse" value="1" disabled required="required"
|
|
/></td>
|
|
</tr>
|
|
[% FOREACH newserialloo IN newserialloop %]
|
|
[% UNLESS ( newserialloo.subscriptionexpired ) %]
|
|
<tr>
|
|
<td>
|
|
<input type="hidden" name="serialid" value="NEW" />
|
|
<input type="hidden" name="biblionumber" value="[% newserialloo.biblionumber | html %]" />
|
|
<input type="hidden" name="itemcount" value="[% newserialloo.issuesatonce | html %]" />
|
|
<input type="hidden" name="user" value="[% newserialloo.librarian | html %]" />
|
|
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 %]')}"
|
|
/>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="publisheddate" value="[% newserialloo.publisheddate | html %]" size="10" maxlength="15" class="flatpickr" />
|
|
</td>
|
|
<td>
|
|
<input type="text" name="publisheddatetext" value="[% newserialloo.publisheddatetext | html %]" size="10" maxlength="100" />
|
|
</td>
|
|
<td>
|
|
<input type="text" name="planneddate" value="[% newserialloo.planneddate | html %]" size="10" maxlength="15" class="flatpickr" />
|
|
</td>
|
|
<td>
|
|
<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 %]')}"
|
|
>
|
|
<option value="">----</option>
|
|
[% IF ( newserialloo.status1 ) %]
|
|
<option value="1" selected="selected">Expected</option>
|
|
[% END %]
|
|
[% IF ( newserialloo.status2 ) %]
|
|
<option value="2" selected="selected">Arrived</option>
|
|
[% ELSE %]
|
|
<option value="2">Arrived</option>
|
|
[% END %]
|
|
[% IF ( newserialloo.status3 ) %]
|
|
<option value="3" selected="selected">Late</option>
|
|
[% ELSE %]
|
|
<option value="3">Late</option>
|
|
[% END %]
|
|
[% IF ( newserialloo.status4 ) %]
|
|
<option value="4" selected="selected">Missing</option>
|
|
[% ELSE %]
|
|
<option value="4">Missing</option>
|
|
[% END %]
|
|
[% IF ( newserialloo.status41 ) %]
|
|
<option value="41" selected="selected">Missing (never received)</option>
|
|
[% ELSE %]
|
|
<option value="41">Missing (never received)</option>
|
|
[% END %]
|
|
[% IF ( newserialloo.status42 ) %]
|
|
<option value="42" selected="selected">Missing (sold out)</option>
|
|
[% ELSE %]
|
|
<option value="42">Missing (sold out)</option>
|
|
[% END %]
|
|
[% IF ( newserialloo.status43 ) %]
|
|
<option value="43" selected="selected">Missing (damaged)</option>
|
|
[% ELSE %]
|
|
<option value="43">Missing (damaged)</option>
|
|
[% END %]
|
|
[% IF ( newserialloo.status44 ) %]
|
|
<option value="44" selected="selected">Missing (lost)</option>
|
|
[% ELSE %]
|
|
<option value="44">Missing (lost)</option>
|
|
[% END %]
|
|
[% IF ( newserialloo.status7 ) %]
|
|
<option value="7" selected="selected">Claimed</option>
|
|
[% ELSE %]
|
|
<option value="7">Claimed</option>
|
|
[% END %]
|
|
[% IF ( newserialloo.status5 ) %]
|
|
<option value="5" selected="selected">Not available</option>
|
|
[% ELSE %]
|
|
<option value="5">Not available</option>
|
|
[% END %]
|
|
[% IF ( newserialloo.status6 ) %]
|
|
<option value="6" selected="selected">Delete</option>
|
|
[% ELSE %]
|
|
<option value="6">Delete</option>
|
|
[% END %]
|
|
[% IF newserialloo.status8 %]
|
|
<option value="8" selected="selected">Stopped</option>
|
|
[% END %]
|
|
</select>
|
|
</td>
|
|
<td>
|
|
<input type="text" name="notes" value="" size="20" maxlength="255" />
|
|
</td>
|
|
</tr>
|
|
[% IF ( newserialloo.serialsadditems ) %]
|
|
<tr>
|
|
<td colspan="6">
|
|
<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 %]')"
|
|
>
|
|
Add item</a
|
|
>
|
|
<fieldset class="rows" style="display:none;" id="items[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]">
|
|
<legend
|
|
><a
|
|
style="cursor: pointer;"
|
|
onclick="HideItems('items[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]','label[% newserialloo.subscriptionid | html %][% newserialloo.serialid | html %]')"
|
|
>
|
|
Item</a
|
|
>
|
|
</legend>
|
|
<div class="cataloguing_additem_itemlist marc_editor">
|
|
<div id="item[% newserialloo.serialid | html %][% newserialloo.countitems | html %]" class="items">
|
|
<ol
|
|
>[% FOREACH iteminformatio IN newserialloo.iteminformation %]
|
|
<li>
|
|
<div
|
|
class="subfield_line"
|
|
style="[% iteminformatio.hidden | html %]"
|
|
id="subfield[% newserialloo.serialid | html %][% newserialloo.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]"
|
|
>
|
|
[% IF (iteminformatio.mandatory) %]
|
|
<label class="required">[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | html %]</label>
|
|
[% ELSE %]
|
|
<label>[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | html %]</label>
|
|
[% END %]
|
|
[% IF ( iteminformatio.marc_value.type == 'select' ) %]
|
|
<select name="field_value" class="select2 input_marceditor">
|
|
[% FOREACH value IN iteminformatio.marc_value.values %]
|
|
[% IF ( value == iteminformatio.marc_value.default ) %]
|
|
<option value="[% value | html %]" selected="selected">[% iteminformatio.marc_value.labels.$value | html %]</option>
|
|
[% ELSE %]
|
|
<option value="[% value | html %]">[% iteminformatio.marc_value.labels.$value | html %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
[% ELSE %]
|
|
[% iteminformatio.marc_value | $raw %]
|
|
[% END %]
|
|
<input type="hidden" name="itemid" value="[% newserialloo.itemid | html %]" />
|
|
<input type="hidden" name="kohafield" value="[% iteminformatio.kohafield | html %]" />
|
|
<input type="hidden" name="tag" value="[% iteminformatio.tag | html %]" />
|
|
<input type="hidden" name="subfield" value="[% iteminformatio.subfield | html %]" />
|
|
<input type="hidden" name="mandatory" value="[% iteminformatio.mandatory | html %]" />
|
|
[% IF ( iteminformatio.repeatable ) %]
|
|
<a href="#" class="buttonPlus" onclick="CloneItemSubfield(this.parentNode.parentNode); return false;">
|
|
<img src="[% interface | html %]/[% theme | html %]/img/clone-subfield.png" alt="Clone" title="Clone this subfield" />
|
|
</a>
|
|
[% END %]
|
|
[% IF ( iteminformatio.mandatory ) %]<span class="required">Required</span>[% END %]
|
|
</div>
|
|
</li>
|
|
[% END %]</ol
|
|
>
|
|
|
|
<hr />
|
|
<div class="subfield_line">
|
|
<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"
|
|
maxlength="3"
|
|
size="2"
|
|
/>
|
|
<span class="hint">Number of copies limited to under 1000. The barcode you enter will be incremented for each additional item.</span>
|
|
</div>
|
|
|
|
<input type="hidden" name="moditem" value="" />
|
|
<input type="hidden" name="tag" value="[% newserialloo.itemtagfield | html %]" />
|
|
<input type="hidden" name="subfield" value="[% newserialloo.itemtagsubfield | html %]" />
|
|
<input type="hidden" name="serial" value="[% newserialloo.serialid | html %]" />
|
|
<input type="hidden" name="bibnum" value="[% newserialloo.biblionumber | html %]" />
|
|
<input type="hidden" name="itemid" value="[% newserialloo.itemid | html %]" />
|
|
<input type="hidden" name="field_value" value="[% newserialloo.itemnumber | html %]" />
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
[% END %]
|
|
[% END %]
|
|
</table>
|
|
</div>
|
|
<!-- /.page-section -->
|
|
|
|
<fieldset class="action">
|
|
<div class="btn-group"><input type="submit" value="Save" class="btn btn-default" accesskey="w" /></div>
|
|
[% UNLESS ( serialsadditems ) %]
|
|
|
|
<div class="btn-group"
|
|
><a href="#multi_receiving" role="button" class="btn btn-default" data-bs-toggle="modal"><i class="fa fa-plus"></i> Multi receiving</a></div
|
|
>
|
|
[% END %]
|
|
</fieldset>
|
|
</form>
|
|
</main>
|
|
</div>
|
|
<!-- /.col-md-10.order-md-2 -->
|
|
|
|
<div class="col-md-2 order-sm-2 order-md-1">
|
|
<aside>
|
|
[% INCLUDE 'serials-menu.inc' %]
|
|
<div id="serialmenu" class="sidebar_menu">
|
|
<h5>Serial links</h5>
|
|
<ul>
|
|
[% FOREACH subscription IN subscriptions %]
|
|
<li
|
|
><a href="serials-collection.pl?subscriptionid=[% subscription.subscriptionid | uri %]" title="Serial collection for [% subscription.subscriptionid | html %]"
|
|
>Serial collection #[% subscription.subscriptionid | html %]</a
|
|
></li
|
|
>
|
|
<li><a href="subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]" title="Detail of the subscription">Subscription #[% subscription.subscriptionid | html %]</a></li>
|
|
[% IF ( subscription.abouttoexpire ) %]
|
|
[% UNLESS subscription.closed %]
|
|
<li><a href="#" onclick="javascript:popup([% subscription.subscriptionid | html %])">Renew #[% subscription.subscriptionid | html %]</a></li>
|
|
[% END %]
|
|
[% END %]
|
|
[% END %]
|
|
<li><a href="[% PROCESS biblio_a_href biblionumber => biblionumber %]" title="Go to [% bibliotitle | html %]">Show bibliographic record</a></li>
|
|
</ul>
|
|
</div>
|
|
</aside>
|
|
</div>
|
|
<!-- /.col-md-2.order-md-1 -->
|
|
</div>
|
|
<!-- /.row -->
|
|
</div>
|
|
<!-- /.main.container-fluid -->
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|