|
Lines 28-50
Link Here
|
| 28 |
window.open("subscription-renew.pl?op=renew&subscriptionid=" + subscriptionid, "subscription_renewal", "width=700,height=400,toolbar=false,scrollbars=yes"); |
28 |
window.open("subscription-renew.pl?op=renew&subscriptionid=" + subscriptionid, "subscription_renewal", "width=700,height=400,toolbar=false,scrollbars=yes"); |
| 29 |
} |
29 |
} |
| 30 |
|
30 |
|
|
|
31 |
function presetItemFieldValue(index, fieldName, presetValue) { |
| 32 |
item_div = $("fieldset#" + index + " div.cataloguing_additem_itemlist div.items"); |
| 33 |
// Getting subfield with enumcron mapping |
| 34 |
subfield_div = $(item_div) |
| 35 |
.find("input[name='kohafield'][value='" + fieldName + "']") |
| 36 |
.parent(); |
| 37 |
// Setting text field if no saved default value |
| 38 |
if (!$(subfield_div).children("input[type='text'][name='field_value']").val()) { |
| 39 |
$(subfield_div).children("input[type='text'][name='field_value']").val(presetValue); |
| 40 |
} |
| 41 |
} |
| 31 |
function unHideItems(index, labelindex, serialId) { |
42 |
function unHideItems(index, labelindex, serialId) { |
| 32 |
subfield = document.getElementById(index); |
43 |
subfield = document.getElementById(index); |
| 33 |
subfield.style.display = "block"; |
44 |
subfield.style.display = "block"; |
| 34 |
label = document.getElementById(labelindex); |
45 |
label = document.getElementById(labelindex); |
| 35 |
label.style.display = "none"; |
46 |
label.style.display = "none"; |
| 36 |
|
47 |
|
| 37 |
// Prefilling enumcron subfield with serial enumeration/issue number |
48 |
presetItemFieldValue(index, "items.enumchron", $("#serialseq" + serialId).val()); |
| 38 |
// Getting item div |
49 |
presetItemFieldValue(index, "items.booksellerid", $("input[type='hidden'][name='bookseller']").val()); |
| 39 |
item_div = $("fieldset#" + index + " div.cataloguing_additem_itemlist div.items"); |
|
|
| 40 |
// Getting subfield with enumcron mapping |
| 41 |
subfield_div = $(item_div).find("input[name='kohafield'][value='items.enumchron']").parent(); |
| 42 |
// Setting text field if no saved default value |
| 43 |
if (!$(subfield_div).children("input[type='text'][name='field_value']").val()) { |
| 44 |
$(subfield_div) |
| 45 |
.children("input[type='text'][name='field_value']") |
| 46 |
.val($("#serialseq" + serialId).val()); |
| 47 |
} |
| 48 |
} |
50 |
} |
| 49 |
function HideItems(index, labelindex) { |
51 |
function HideItems(index, labelindex) { |
| 50 |
subfield = document.getElementById(index); |
52 |
subfield = document.getElementById(index); |
|
Lines 172-177
Link Here
|
| 172 |
<input type="hidden" name="biblionumber" value="[% serialslis.biblionumber | html %]" /> |
174 |
<input type="hidden" name="biblionumber" value="[% serialslis.biblionumber | html %]" /> |
| 173 |
<input type="hidden" name="itemcount" value="[% serialslis.issuesatonce | html %]" /> |
175 |
<input type="hidden" name="itemcount" value="[% serialslis.issuesatonce | html %]" /> |
| 174 |
<input type="hidden" name="user" value="[% serialslis.librarian | html %]" /> |
176 |
<input type="hidden" name="user" value="[% serialslis.librarian | html %]" /> |
|
|
177 |
<input type="hidden" name="bookseller" value="[% serialslis.aqbooksellerid | html %]" /> |
| 175 |
Issue <input type="text" name="serialseq" id="serialseq[% serialslis.serialid | html %]" value="[% serialslis.serialseq | html %]" size="20" maxlength="100" /> |
178 |
Issue <input type="text" name="serialseq" id="serialseq[% serialslis.serialid | html %]" value="[% serialslis.serialseq | html %]" size="20" maxlength="100" /> |
| 176 |
</td> |
179 |
</td> |
| 177 |
<td> |
180 |
<td> |
| 178 |
- |
|
|