From e35506152b4d4f700c9eb27d6297e1efdcd5ccab Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 2 Mar 2021 17:44:35 +0000 Subject: [PATCH] Bug 27737: Tag editor for authority lookup broken in authority editor This patch corrects the selector used for targeting the correct fields during an authority linking operation. To test, apply the patch and go to Authorities in the staff client. - Create or edit an authority record. - Switch to tab 5 and if necessary click one of the tag names (e.g. "SEE ALSO FROM TRACING--PERSONAL NAME") to expand the subfields. - Click the "..." plugin link next to subfield a ("Personal name" in this example). - In the popup window, search for an authority record. - Click "Choose" next to one of the results. - The popup window should close and the authority editor should contain data from the record you chose, including a value in $9 and $a. - Test with various records to confirm that data in other fields is copied correctly, for instanct $d, dates associated with a name, $t title of a work. --- .../prog/en/modules/authorities/blinddetail-biblio-search.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt index e86f46db77..858193e11c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt @@ -49,7 +49,7 @@ whichfield = opener.document.getElementById(index_start); autolinker_dialog = opener.document.getElementById("autolinker_dialog"); } - var field_start = whichfield.parentNode.parentNode.parentNode.parentNode; + var field_start = whichfield.parentNode.parentNode.parentNode; // Sets the good number of form fields for the specified subfield // Returns false if the cloning failed -- 2.11.0