<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello everyone. <br>
<br>
A few questions about serials:<br>
<br>
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.<br>
<br>
<span></span><a target="_content" class="chatzilla-link"
href="http://pastebin.com/m4e03ad68"></a>function
unHideItems(index,labelindex, serialId) {
<div class="syntax">
<div class="text" style="font-family: monospace;">
<div class="de2"> subfield = document.getElementById(index);</div>
<div class="de1"> subfield.style.display = 'block';</div>
<div class="de2"> label = document.getElementById(labelindex);</div>
<div class="de1"> label.style.display='none'; </div>
<div class="de2"> </div>
<div class="de1"> // Prefilling 995$v with issue number</div>
<div class="de2"> // Getting item id</div>
<div class="de1"> itemid = $("fieldset#" + index + "
div.cataloguing_additem_itemlist div.items").attr("id");</div>
<div class="de2"> // Getting subfield id</div>
<div class="de1"> subfieldid = "subfield" + itemid.substr(4) +
"v";</div>
<div class="de2"> // Setting text field </div>
<div class="de1"> $("#" + subfieldid + "
input[type='text']").val($("#serialseq" + serialId).val());</div>
<div class="de2"> </div>
<div class="de1">}</div>
</div>
</div>
<br>
I was pointed to the following bug that deals with this issue:<br>
Bug <a class="moz-txt-link-freetext" href="http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3899">http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3899</a> normal,
PATCH-Sent, ---, <a class="moz-txt-link-abbreviated" href="mailto:nengard@gmail.com">nengard@gmail.com</a>, NEW, Receive Serial Item Has Copy
Info in Wrong Field<br>
<br>
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?<br>
<br>
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?<br>
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.<br>
<br>
Thanks for your time.<br>
<br>
<div class="moz-signature">-- <br>
<span style="font-size: 12px; font-family: Arial;">
<p>Cheers,</p>
<p>Christopher Curry<br>
Assistant Technical Librarian / Assistant IT Officer</p>
<p>American Philosophical Society<br>
105 South Fifth Street<br>
Philadelphia, PA 19106-3386<br>
Tel. (215) 599-4299</p>
<p><a href="mailto:ccurry@amphilsoc.org">ccurry@amphilsoc.org</a></p>
<p><strong>For technical support, please use <a
href="mailto:helpdesk@amphilsoc.org"><span style="">helpdesk@amphilsoc.org</span></a></strong><br>
Main Library number: (215)440-3400<br>
APS website: <a href="http://www.amphilsoc.org">http://www.amphilsoc.org</a>
</p>
</span>
</div>
</body>
</html>