Bugzilla – Attachment 16976 Details for
Bug 9947
Creating item for received serial prefills enumchron subfield
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Bug-9947-Creating-item-for-received-serial-prefills-.patch (text/plain), 2.30 KB, created by
Fridolin Somers
on 2013-03-28 15:00:04 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2013-03-28 15:00:04 UTC
Size:
2.30 KB
patch
obsolete
>From 918eb2ca43988e82ee25085d8898cbd4224e8660 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Thu, 28 Mar 2013 15:52:13 +0100 >Subject: [PATCH] Bug 9947 - Creating item for received serial prefills > enumchron subfield > >In serial receiving : >When creating an item for an issue, a javascript prefilles the $h subfield with issue number. >This is for MARC21, in UNIMARC serial number is on $v. > >This patch replaces hard-coded value with the subfield mapped with "items.enumchron". > >Test plan : >- Set "Koha to MARC mapping" of "items.enumchron" on a subfield other than $h, ie $z >- Go to a serial subscription detail with "Serial receipt creates an item record" >- Click on "Receive" >- On an issue, click on "Click to add item" >=> Check that issue number is copied into selected subfield, ie $z >You may test that with no mapping of "items.enumchron" there is no javascript error >--- > .../intranet-tmpl/prog/en/modules/serials/serials-edit.tt | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >index 6ab28c7..0b3f893 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >@@ -68,13 +68,13 @@ function unHideItems(index,labelindex, serialId) { > label = document.getElementById(labelindex); > label.style.display='none'; > >- // Prefilling 995$h with serial enumeration/issue number >- // Getting item id >- itemid = $("fieldset#" + index + " div.cataloguing_additem_itemlist div.items").attr("id"); >- // Getting subfield id >- subfieldid = "subfield" + itemid.substr(4) + "h"; >+ // 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 >- $("#" + 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) { >-- >1.7.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9947
:
16976
|
17074
|
17084
|
17085