Bug 6715

Summary: xmlControlField.js always fetches the value_builder xml files in the "en" directory.
Product: Koha Reporter: Frédérick Capovilla <fcapovilla>
Component: CatalogingAssignee: Frédérick Capovilla <fcapovilla>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: normal    
Priority: PATCH-Sent (DO NOT USE) CC: chris, katrin.fischer, koha.sekjal
Version: 3.4   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Fix xmlControlfield.js so the xml files are fetched in the correct language directory.
[SIGNED-OFF] Bug 6715 - Fix xmlControlfield.js so the xml files are fetched in the correct language directory.

Description Frédérick Capovilla 2011-08-12 17:40:46 UTC
The xmlControlField.js file that is used to load the value_builder xml files for fields 006 and 008 always uses the file in the "en" directory, ignoring the current language.

This prevents translations in those xml files to work, because the "en" file is always used :
intranet-tmpl/prog/LANG/modules/cataloguing/value_builder/marc21_field_008.xml
intranet-tmpl/prog/LANG/modules/cataloguing/value_builder/marc21_field_006.xml
Comment 1 Frédérick Capovilla 2011-08-12 18:00:35 UTC Comment hidden (obsolete)
Comment 2 Katrin Fischer 2011-08-14 14:56:26 UTC
Created attachment 4998 [details] [review]
[SIGNED-OFF] Bug 6715 - Fix xmlControlfield.js so the xml files are fetched in the correct language directory.

xmlControlfield.js was always fetching the "en" xml file, preventing the translations
from working.

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

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
- Apply patch
- Install language files, example: perl translate install de-DE
- Edit .xml files for value builders 006 and 008
- Test by creating a new record and using value builders
Comment 3 Ian Walls 2011-08-27 13:23:37 UTC
Easy patch to read, adds valuable information to templates, marking as Passed QA
Comment 4 Chris Cormack 2011-08-28 07:55:09 UTC
Pushed, please test
Comment 5 Chris Nighswonger 2011-10-26 18:02:14 UTC
The fix for this bug was published in the 3.4.5 release. If you were the reporter of this bug, please take time to verify the fix and update the status of this bug report accordingly. If the bug is fixed to your satisfaction, please close this report.
Comment 6 Jared Camins-Esakov 2012-12-31 00:13:16 UTC
There have been no further reports of problems so I am marking this bug resolved.