@@ -, +, @@ --- authorities/blinddetail-biblio-search.pl | 4 ++++ koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js | 2 +- .../prog/en/modules/authorities/blinddetail-biblio-search.tt | 10 +++------- 3 files changed, 8 insertions(+), 8 deletions(-) --- a/authorities/blinddetail-biblio-search.pl +++ a/authorities/blinddetail-biblio-search.pl @@ -112,6 +112,8 @@ if ($authid) { $template->param( "clear" => 1 ); } + + $template->param( authid => $authid ? $authid : "", index => $index, @@ -122,6 +124,8 @@ $template->param( indicator2 => $indicator2, SUBFIELD_LOOP => \@subfield_loop, tag_number => $tag_number, + rancor => $index =~ /rancor$/, ); + output_html_with_http_headers $query, $cookie, $template->output; --- a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js +++ a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js @@ -171,7 +171,7 @@ define( [ 'marc-record', 'koha-backend', 'preferences', 'text-marc', 'widget' ], if ( !field ) return; if ( authInfo[field.tag] == undefined ) return; authtype = authInfo[field.tag].authtypecode; - index = 'rancor'; + index = 'tag_'+field.tag+'_rancor'; var mainmainstring = ''; if( field.getSubfields( authInfo[field.tag].subfield ).length != 0 ){ mainmainstring += field.getSubfields( authInfo[field.tag].subfield )[0].text; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/blinddetail-biblio-search.tt @@ -15,16 +15,15 @@ - [% MACRO jsinclude BLOCK %]