Bugzilla – Attachment 31529 Details for
Bug 12872
Exclude some fields from Zebra indexing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12872: Db revision for ZebraExclude pref
Bug-12872-Db-revision-for-ZebraExclude-pref.patch (text/plain), 3.10 KB, created by
Marcel de Rooy
on 2014-09-11 13:28:20 UTC
(
hide
)
Description:
Bug 12872: Db revision for ZebraExclude pref
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2014-09-11 13:28:20 UTC
Size:
3.10 KB
patch
obsolete
>From 30dce8a9600b25df6f88137a3974ea8c135fba3b Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 11 Sep 2014 15:04:26 +0200 >Subject: [PATCH] Bug 12872: Db revision for ZebraExclude pref >Content-Type: text/plain; charset=utf-8 > >Test plan: >Run install or upgrade. Check insertion of pref into database. >Check editing the value via interface. >--- > installer/data/mysql/sysprefs.sql | 4 ++-- > installer/data/mysql/updatedatabase.pl | 10 ++++++++++ > .../prog/en/modules/admin/preferences/admin.pref | 6 ++++++ > 3 files changed, 18 insertions(+), 2 deletions(-) > >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index faa9ff3..aed0b9e 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -446,5 +446,5 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('XSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on intranet','Free'), > ('yuipath','local','local|http://yui.yahooapis.com/2.5.1/build','Insert the path to YUI libraries, choose local if you use koha offline','Choice'), > ('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'), >-('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo') >-; >+('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'), >+('ZebraExclude','',NULL,'Define some fields to exclude from Zebra indexing','Textarea'); >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index bfe5f71..c1dbcbb 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -8751,6 +8751,16 @@ if ( CheckVersion($DBversion) ) { > SetVersion($DBversion); > } > >+ >+$DBversion = "3.17.00.XXX"; >+if ( CheckVersion($DBversion) ) { >+ $dbh->do(q{ >+ INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES('ZebraExclude','', NULL,'Define some fields to exclude from Zebra indexing', 'Textarea') >+ }); >+ print "Upgrade to $DBversion done (Bug 12872 - Adding syspref ZebraExclude)\n"; >+ SetVersion($DBversion); >+} >+ > =head1 FUNCTIONS > > =head2 TableExists($table) >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref >index 1215ac1..6b5db11 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref >@@ -113,3 +113,9 @@ Administration: > Solr: Solr > Zebra: Zebra > - is the search engine used. >+ - >+ - Exclude the following fields from Zebra indexing. >+ - pref: ZebraExclude >+ default: '' >+ type: textarea >+ - You can include fields, subfields, field groups (see online help). When you change its value, you should probably reindex. >-- >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 12872
:
31366
|
31367
|
31368
|
31527
|
31528
|
31529
|
32578
|
32584
|
32585
|
32586
|
32892
|
32893
|
32894