[Koha-bugs] [Bug 10890] Autobarcode "<branch>yymm00001" Fails in Acquisitions When Receiving Item

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Sep 16 05:15:10 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10890

--- Comment #1 from David Cook <dcook at prosentient.com.au> ---
(In reply to David Cook from comment #0)
> Currently, if autobarcode is set to "<branch>yymm00001", the barcode won't
> be created. Depending on your browser, you should receive a Javascript alert
> saying something like "Uncaught TypeError: Cannot read property
> 'field_value' of undefined". 
> 
> This looks like it's due to the form containing elements with a
> 'field_value' property missing the name "f". 
> 
> The easiest fix is to add a name of "f" to the form. That eliminates the
> problem and allows the barcode to be created. 
> 
> However, as Jared and Robin have pointed out, "f" is a really poor choice of
> names for a form. We should probably be using descriptive names for our
> forms. 
> 
> We should probably also be populating the barcode field in a way that
> doesn't rely on looping through the inputs of a form. Maybe we could just
> look for the branch code by doing $('#outeritemblock #subfielda') or
> something like that.

Actually, that last idea wouldn't work in the Cataloguing module although it
might work in Acquisitions. We would need a cross module solution...

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list