View | Details | Raw Unified | Return to bug 9947
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt (-8 / +7 lines)
Lines 68-80 function unHideItems(index,labelindex, serialId) { Link Here
68
	label = document.getElementById(labelindex);
68
	label = document.getElementById(labelindex);
69
	label.style.display='none';	
69
	label.style.display='none';	
70
70
71
	// Prefilling 995$h with serial enumeration/issue number
71
    // Prefilling enumcron subfield with serial enumeration/issue number
72
	// Getting item id
72
    // Getting item div
73
	itemid = $("fieldset#" + index + " div.cataloguing_additem_itemlist div.items").attr("id");
73
    item_div = $("fieldset#" + index + " div.cataloguing_additem_itemlist div.items");
74
	// Getting subfield id
74
    // Getting subfield with enumcron mapping
75
	subfieldid = "subfield" + itemid.substr(4) + "h";
75
    subfield_div = $(item_div).find("input[name='kohafield'][value='items.enumchron']").parent();
76
	// Setting text field 
76
    // Setting text field
77
	$("#" + subfieldid + " input[type='text']").val($("#serialseq" + serialId).val());
77
    $(subfield_div).children("input[type='text'][name='field_value']").val($("#serialseq" + serialId).val());
78
78
79
}
79
}
80
function HideItems(index,labelindex) {
80
function HideItems(index,labelindex) {
81
- 

Return to bug 9947