I have more information concerning the missing $c problem.

By examining the source of cgi-bin/koha/serials/serials-edit.pl, I found that "display:none" is being added to the style attribute of the div element that contains the $c input field. This attribute is controlled by line 276 of /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl, determined by the value of <!-- TMPL_VAR NAME='hidden' -->. If I remove this variable, all "hidden" elements are displayed.

If I'm not mistaken, this variable is connected to the "hidden" field in the MARC Bibliographic Framework. $c is set to 1 in our framework because we don't want it to show up in the OPAC:

1 => !OPAC Intranet Editor Collapsed

It is correctly removed from the OPAC, and correctly displays in the non-serial item editor, but for some reason, it is incorrectly missing from the serial item edit screen. Could there be a problem with the context of the variable within this particular .tmpl file? I don't know enough about perl to debug this problem myself.

Has anyone seen this issue?

BTW, we're on 3.0.4.

Cheers,

Christopher Curry
Assistant Technical Librarian / Assistant IT Officer

American Philosophical Society
105 South Fifth Street
Philadelphia, PA 19106-3386
Tel. (215) 599-4299

ccu...@amphilsoc.org <mailto:ccu...@amphilsoc.org>

*For technical support, please use helpd...@amphilsoc.org <mailto:helpd...@amphilsoc.org>*
Main Library number: (215)440-3400
APS website: http://www.amphilsoc.org



Christopher Curry wrote:
Hello everyone.

A few questions about serials:

I'm working on getting the serials module working correctly (or at least limping along). When receiving a new item from within a subscription record, some data is automatically generated in the item record. The call number is applied (as defined in system preferences "itemcallnumber") and "serialseq" ( from serialitems table) is inserted into $v - Cost, replacement price. The latter is obviously a mistake, and is easy enough to fix by editing line 73 of /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl, replacing "v" with "h" to populate $h - Serial Enumeration / chronology with "serialseq" instead.

function unHideItems(index,labelindex, serialId) {
        subfield = document.getElementById(index);
        subfield.style.display = 'block';
        label = document.getElementById(labelindex);
label.style.display='none'; // Prefilling 995$v with issue number
        // Getting item id
itemid = $("fieldset#" + index + " div.cataloguing_additem_itemlist div.items").attr("id");
        // Getting subfield id
        subfieldid = "subfield" + itemid.substr(4) + "v";
        // Setting text field
$("#" + subfieldid + " input[type='text']").val($("#serialseq" + serialId).val()); }

I was pointed to the following bug that deals with this issue:
Bug http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3899 normal, PATCH-Sent, ---, neng...@gmail.com, NEW, Receive Serial Item Has Copy Info in Wrong Field

However, I'm trying to do a more involved customization to populate $h with "publisheddate" from the serialitems table and append "serialseq" to the call number in $o. Any tips on how I can achieve this?

I tried copying the js from above and changing the subfield to o and replacing serialseq with publisheddate, but this doesn't output the publisheddate field; it also overwrites the call number generated by system preferences, rather than appending to the end of it, so I guess something more sophisticated is necessary? In addition, $c, shelving location is missing from this form...I checked the MARC Bibliographic Framework and the code for the hidden field of 952$c is correct & it displays correctly when creating a non-serial item.

Thanks for your time.

--

Cheers,

Christopher Curry
Assistant Technical Librarian / Assistant IT Officer

American Philosophical Society
105 South Fifth Street
Philadelphia, PA 19106-3386
Tel. (215) 599-4299

ccu...@amphilsoc.org <mailto:ccu...@amphilsoc.org>

*For technical support, please use helpd...@amphilsoc.org <mailto:helpd...@amphilsoc.org>*
Main Library number: (215)440-3400
APS website: http://www.amphilsoc.org

------------------------------------------------------------------------

_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-devel
_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-devel

Reply via email to