From 2efbd3794ecb5a2fc3c9f4ea3e2cf0e65fc20385 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Apr 2015 15:52:33 +0200 Subject: [PATCH] Bug 10299: authority plugin - authority field are reversed If you click the plugin next to an authority field that is already populated it takes the values from the field and puts them in the search in the reverse order. Test plan: 1/ Edit a biblio 2/ Fill the subfield for an authority field (for instance 650$v, 650$x, 650$y, etc.) 3/ Click on the authority plugin Before this patch, the values were concatenated in the reverse order. With this patch, it should not. Signed-off-by: Bernardo Gonzalez Kriegel Work as described, no koha-qa errors Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js index 5712ab0ea5..c23637f43b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js @@ -40,17 +40,18 @@ function openAuth(tagsubfieldid,authtype,source) { var tagsubfield=getTagInputnameFilter(tagsubfieldid); var elementsubfcode=getSubfieldCode(element.name); var mainmainstring=element.value; - var mainstring=""; + var mainstring = new Array(); var inputs = element.parentNode.parentNode.getElementsByTagName("input"); for (var myindex =0; myindex