[Koha-bugs] [Bug 11004] Make xmlControlfield.js use the marcflavour syspref to look for XML files
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Dec 24 11:51:04 CET 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11004
Jonathan Druart <jonathan.druart at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #23796|0 |1
is obsolete| |
--- Comment #6 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 23806
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23806&action=edit
Bug 11004 - Make xmlControlfield.js use the marcflavour syspref to look for XML
files
Currently, xmlControlfield.js is hard coded to look for XML files for MARC21:
url: this.themelang + "/data/marc21_field_" + this.tagfield + ".xml",
This patch makes this code use the value from the marcflavour syspref, as a
preparation for making the NORMARC value builders use the XML technique
employed by the MARC21 value builders for 006 and 008.
To test:
- Make sure you have a MARC21 installation
- Set marcflavour = NORMARC
- Go to Cataloguing and start a new record with the default framework
- Open the value builders for 006 and 008 and observe that they still work,
showing
the coded values for MARC21
- Apply this patch
- Check the value builders for 006 and 008 and observe that you get a truncated
view
with an empty "Select a type of material" dropdown
- Use e.g. the Net console in Firebug to observe requests to
http://localhost/intranet-tmpl/prog/en/data/normarc_field_008.xml
that result in a 404 status
- Set marcflavour = MARC21
- Observe that the value builders for 006 and 008 are now fully working
- 006 and 008 should be the only value builders affected by this change, since
they are the only ones using xmlControlfield.js, but please also verify that
other value builders are still working as expected
Signed-off-by: Chris Cormack <chrisc at catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list