Merge branch 'bug_9947' into 3.12-master

This commit is contained in:
Jared Camins-Esakov 2013-04-02 08:58:54 -04:00
commit d802961ccb

View file

@ -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) {