Bugzilla – Attachment 27227 Details for
Bug 11955
Remove spaces in empty indicators after linking an authority to a biblio record.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11955: Remove spaces in empty indicators when linking an authority to a biblio record.
Bug-11955-Remove-spaces-in-empty-indicators-when-l.patch (text/plain), 1.63 KB, created by
Marcel de Rooy
on 2014-04-17 07:47:18 UTC
(
hide
)
Description:
Bug 11955: Remove spaces in empty indicators when linking an authority to a biblio record.
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2014-04-17 07:47:18 UTC
Size:
1.63 KB
patch
obsolete
>From 468e6d51a0865056ea0def5a1f5b62d7795acdc4 Mon Sep 17 00:00:00 2001 >From: =?utf8?q?Fr=C3=A9d=C3=A9rick?= <frederick.capovilla@libeo.com> >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. >Content-Type: text/plain; charset=utf-8 > >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 <bgkriegel@gmail.com> >Work as described. No koha-qa errors. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > authorities/blinddetail-biblio-search.pl | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > >diff --git a/authorities/blinddetail-biblio-search.pl b/authorities/blinddetail-biblio-search.pl >index 7bfe09e..c6a3042 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, >-- >1.7.7.6
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11955
:
26438
|
27066
| 27227