From b6d67fc984cde3654450f6deb6585b1e2f96bd2c Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 24 Apr 2009 20:35:53 -0500 Subject: [PATCH] fix default authority search in bib editor When clicking on the '...' of an headings field in the bib editor, the authority search that popped up did not take the default search string from the bib field. Fixed by making sure that openAuth is always used to do the popup link. Signed-off-by: Galen Charlton --- cataloguing/addbiblio.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index 81ff3b0dc5..c3ac31031b 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -382,7 +382,7 @@ sub create_input { maxlength=\"$max_length\" \/> {$tag}->{$subfield}->{authtypecode}."&index=$subfield_data{id}','$subfield_data{id}'); return false;\" tabindex=\"1\" title=\"Tag Editor\">... + onclick=\"openAuth(this.parentNode.getElementsByTagName('input')[1].id,'".$tagslib->{$tag}->{$subfield}->{authtypecode}."'); return false;\" tabindex=\"1\" title=\"Tag Editor\">... "; } else { $subfield_data{marc_value} = -- 2.39.5