From cb013de95c4ddd0be85c9bd5b83ef2345b850213 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9rick?= Date: Tue, 18 Mar 2014 16:11:44 -0400 Subject: [PATCH] Bug 11955: Remove spaces in empty indicators when linking an authority to a biblio record. This patch removes spaces in indicators which are imported when we link an authority to a biblio record. The spaces made the indicators harder to edit after the linking, because we had to delete the superfluous space character before a new value could be entered. To test: 1. Open some authority on editor, save with empty indicators. They are saved as ind1=" " ind2=" " on auth_header tables, with spaces 2. Edit some record, link some tag with previous auth, indicators now have a space on it (or ind1 at last) 3. Apply the patch 4. repeat 2, space is gone Signed-off-by: Bernardo Gonzalez Kriegel Work as described. No koha-qa errors. Signed-off-by: Marcel de Rooy Signed-off-by: Galen Charlton (cherry picked from commit afc9549a6f58ddf36cf6d9a5399239385c377c90) Signed-off-by: Fridolin Somers --- authorities/blinddetail-biblio-search.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/authorities/blinddetail-biblio-search.pl b/authorities/blinddetail-biblio-search.pl index 7bfe09ee14..c6a3042836 100755 --- a/authorities/blinddetail-biblio-search.pl +++ b/authorities/blinddetail-biblio-search.pl @@ -150,6 +150,10 @@ else { my $tag_number = $index; $tag_number =~ s/^tag_(\d*)_.*$/$1/; +# Remove spaces in indicators +$indicator1 =~ s/\s//g; +$indicator2 =~ s/\s//g; + $template->param( authid => $authid ? $authid : "", index => $index, -- 2.39.5