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> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Conflicts: installer/data/mysql/sysprefs.sql installer/data/mysql/updatedatabase.pl Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
This commit is contained in:
parent
4427a17ffd
commit
01a122dbdc
|
|
@ -708,7 +708,7 @@ sub getFacets {
|
|||
idx => 'au',
|
||||
label => 'Authors',
|
||||
tags => [ qw/ 700ab 701ab 702ab / ],
|
||||
sep => ', ',
|
||||
sep => C4::Context->preference("UNIMARCAuthorsFacetsSeparator"),
|
||||
},
|
||||
{
|
||||
idx => 'se',
|
||||
|
|
|
|||
|
|
@ -389,4 +389,4 @@ INSERT INTO systempreferences (variable, value, options, explanation, type) VALU
|
|||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('HoldsToPullStartDate','2','Set the default start date for the Holds to pull list to this many days ago',NULL,'Integer');
|
||||
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('OPACNumbersPreferPhrase','0', NULL, 'Control the use of phr operator in callnumber and standard number OPAC searches', 'YesNo');
|
||||
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('IntranetNumbersPreferPhrase','0', NULL, 'Control the use of phr operator in callnumber and standard number staff client searches', 'YesNo');
|
||||
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('UNIMARCAuthorsFacetsSeparator',', ', 'UNIMARC authors facets separator', NULL, 'short');
|
||||
|
|
|
|||
|
|
@ -6174,6 +6174,13 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
|
|||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = "3.10.04.001";
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -176,3 +176,7 @@ Searching:
|
|||
- pref: FacetLabelTruncationLength
|
||||
class: integer
|
||||
- characters, in OPAC/staff interface.
|
||||
-
|
||||
- Use the following text as separator for UNIMARC authors facets
|
||||
- pref: UNIMARCAuthorsFacetsSeparator
|
||||
class: short
|
||||
|
|
|
|||
Loading…
Reference in New Issue