[Koha-bugs] [Bug 15042] New: Barcode <branchcode>yymm0001 does not work when receiving serials
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Oct 21 10:26:38 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15042
Bug ID: 15042
Summary: Barcode <branchcode>yymm0001 does not work when
receiving serials
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: Serials
Assignee: magnus at libriotech.no
Reporter: magnus at libriotech.no
QA Contact: testopia at bugs.koha-community.org
CC: colin.campbell at ptfs-europe.com
To reproduce:
- Set autoBarcode = <branchcode>yymm0001
- Make sure you have a serial that is set to "create an item record when
receiving this serial"
- Receive an issue
- Click in the barcode field - nothing happens
Bug 11273, attachment 42372 changes the logic around locating the barcode field
in the item table from this:
- for (i=0 ; i<document.f.field_value.length ; i++) {
- if (document.f.tag[i].value == '$args->{loctag}' &&
document.f.subfield[i].value == '$args->{locsubfield}') {
To this:
+ var form = document.getElementById('f');
+ if ( !form ) {
+ form = document.getElementById('Aform');
+ }
+ for (i=0 ; i<form.field_value.length ; i++) {
+ if (form.tag[i].value == '$args->{loctag}' &&
form.subfield[i].value == '$args->{locsubfield}') {
This works for the item table that adds items to a bib record:
<form id="f" method="post" action="/cgi-bin/koha/cataloguing/additem.pl"
name="f">
but not for the item table that you get when receiving a serials issue, which
is missing the id="f":
<form method="post" name="f" action="serials-edit.pl" id="serials_edit">
Patch coming!
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list