Bugzilla – Attachment 14449 Details for
Bug 9341
Problem with UNIMARC authors facets
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9341: Problem with UNIMARC authors facets
Bug-9341-Problem-with-UNIMARC-authors-facets.patch (text/plain), 3.79 KB, created by
Jonathan Druart
on 2013-01-07 12:52:42 UTC
(
hide
)
Description:
Bug 9341: Problem with UNIMARC authors facets
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-01-07 12:52:42 UTC
Size:
3.79 KB
patch
obsolete
>From cf1a326eadf00153050ccb01013bdd5535e9ff72 Mon Sep 17 00:00:00 2001 >From: Vitor FERNANDES <vfernandes@keep.pt> >Date: Fri, 4 Jan 2013 13:07:40 +0000 >Subject: [PATCH] Bug 9341: Problem with UNIMARC authors facets > >In UNIMARC installations the authors have a double comma separating the subfield a and the subfield b. > >Test plan: > >- After applying the patch do a search and check the double comma in authors facets. >- Apply the patch >- Do a new search >- Check if authors facets as a double comma > >Sponsored-by: KEEP SOLUTIONS > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > C4/Koha.pm | 2 +- > installer/data/mysql/sysprefs.sql | 1 + > installer/data/mysql/updatedatabase.pl | 9 +++++++++ > .../prog/en/modules/admin/preferences/searching.pref | 5 +++++ > 4 files changed, 16 insertions(+), 1 deletion(-) > >diff --git a/C4/Koha.pm b/C4/Koha.pm >index b6a8a8c..3109222 100644 >--- a/C4/Koha.pm >+++ b/C4/Koha.pm >@@ -706,7 +706,7 @@ sub getFacets { > idx => 'au', > label => 'Authors', > tags => [ qw/ 700ab 701ab 702ab / ], >- sep => ' ', >+ sep => C4::Context->preference("UNIMARCAuthorsFacetsSeparator"), > }, > { > idx => 'se', >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index d5d15d7..ae02db6 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -406,3 +406,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('NotesBlacklist','','List of notes fields that should not appear in the title notes/description separator of details',NULL,'free'); > INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserCSS', '', NULL, 'Add CSS to be included in the SCO module in an embedded <style> tag.', 'free'); > INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserJS', '', NULL, 'Define custom javascript for inclusion in the SCO module', 'free'); >+INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('UNIMARCAuthorsFacetsSeparator',', ', 'UNIMARC authors facets separator', NULL, 'short'); >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 77265f4..21b2f73 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -6339,6 +6339,15 @@ if ( CheckVersion($DBversion) ) { > SetVersion ($DBversion); > } > >+$DBversion = "3.11.00.XXX"; >+if (C4::Context->preference("Version") < TransformToNum($DBversion)) { >+ $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('UNIMARCAuthorsFacetsSeparator',', ', 'UNIMARC authors facets separator', NULL, 'short')"); >+ >+ print "Upgrade to $DBversion done (Bug 9341: Problem with UNIMARC authors facets) \n"; >+ SetVersion ($DBversion); >+} >+ >+ > =head1 FUNCTIONS > > =head2 TableExists($table) >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >index 7b99173..604c542 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >@@ -160,3 +160,8 @@ Searching: > - pref: FacetLabelTruncationLength > class: integer > - characters, in OPAC/staff interface. >+ - >+ - Use the following text as separator for UNIMARC authors facets >+ - pref: UNIMARCAuthorsFacetsSeparator >+ class: short >+ >-- >1.7.10.4
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 9341
:
14389
|
14413
|
14448
|
14449
|
15497
|
16279