From a2a482a9bbf970edb4004a11189017514ef2bced Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 15 Mar 2018 10:18:54 +0000 Subject: [PATCH] Bug 18904 (follow-up) Set indicators and correct js path TO test: 1 - Have an authority with some indicators 2 - Link a field in rancor to that authority 3 - See that you get some indicators (same in unimarc, diff in marc21) --- authorities/blinddetail-biblio-search.pl | 8 ++++---- .../prog/en/modules/authorities/blinddetail-biblio-search.tt | 6 ++++-- koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/authorities/blinddetail-biblio-search.pl b/authorities/blinddetail-biblio-search.pl index ed09d3e..47905fb 100755 --- a/authorities/blinddetail-biblio-search.pl +++ b/authorities/blinddetail-biblio-search.pl @@ -145,15 +145,15 @@ my $tag_number = $index; $tag_number =~ s/^tag_(\d*)_.*$/$1/; # Remove spaces in indicators -$indicator1 =~ s/\s//g; -$indicator2 =~ s/\s//g; +$indicator1 =~ s/\s//g if $indicator1; +$indicator2 =~ s/\s//g if $indicator2;; $template->param( authid => $authid ? $authid : "", index => $index, tagid => $tagid, - indicator1 => $indicator1, - indicator2 => $indicator2, + indicator1 => $indicator1 || "", + indicator2 => $indicator2 || "", SUBFIELD_LOOP => \@subfield_loop, tag_number => $tag_number, ); 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 2cd5a3f..1f7c202 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 @@ -20,9 +20,11 @@ - + [% IF ( bidi ) %] [% END %] -- 2.1.4