Merge branch 'bug_9947' into 3.12-master
This commit is contained in:
commit
d802961ccb
1 changed files with 7 additions and 7 deletions
|
@ -68,13 +68,13 @@ function unHideItems(index,labelindex, serialId) {
|
||||||
label = document.getElementById(labelindex);
|
label = document.getElementById(labelindex);
|
||||||
label.style.display='none';
|
label.style.display='none';
|
||||||
|
|
||||||
// Prefilling 995$h with serial enumeration/issue number
|
// Prefilling enumcron subfield with serial enumeration/issue number
|
||||||
// Getting item id
|
// Getting item div
|
||||||
itemid = $("fieldset#" + index + " div.cataloguing_additem_itemlist div.items").attr("id");
|
item_div = $("fieldset#" + index + " div.cataloguing_additem_itemlist div.items");
|
||||||
// Getting subfield id
|
// Getting subfield with enumcron mapping
|
||||||
subfieldid = "subfield" + itemid.substr(4) + "h";
|
subfield_div = $(item_div).find("input[name='kohafield'][value='items.enumchron']").parent();
|
||||||
// Setting text field
|
// Setting text field
|
||||||
$("#" + subfieldid + " input[type='text']").val($("#serialseq" + serialId).val());
|
$(subfield_div).children("input[type='text'][name='field_value']").val($("#serialseq" + serialId).val());
|
||||||
|
|
||||||
}
|
}
|
||||||
function HideItems(index,labelindex) {
|
function HideItems(index,labelindex) {
|
||||||
|
|
Loading…
Reference in a new issue