Bugzilla – Attachment 127180 Details for
Bug 29152
Change to default search behavior when limiting by branch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29152: Change default value for SearchLimitLibrary to 'homebranch'
Bug-29152-Change-default-value-for-SearchLimitLibr.patch (text/plain), 3.13 KB, created by
Martin Renvoize (ashimema)
on 2021-11-01 16:37:52 UTC
(
hide
)
Description:
Bug 29152: Change default value for SearchLimitLibrary to 'homebranch'
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-11-01 16:37:52 UTC
Size:
3.13 KB
patch
obsolete
>From 13805c856a98ce74be878837835ee83f70a59eca Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 6 Oct 2021 12:56:39 +0000 >Subject: [PATCH] Bug 29152: Change default value for SearchLimitLibrary to > 'homebranch' > >Behvaiour before this option was added was 'homebranch' >We should preserve this rather than introduce a change > >No atomic update added as liobraries may have already set/changed the value, >but safer to default to previous behvaiour > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > installer/data/mysql/mandatory/sysprefs.sql | 2 +- > installer/data/mysql/updatedatabase.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index baa038e24b..9789af312e 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -594,7 +594,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'), > ('SCOUserJS','',NULL,'Define custom javascript for inclusion in the SCO module','free'), > ('SearchEngine','Zebra','Elasticsearch|Zebra','Search Engine','Choice'), >-('SearchLimitLibrary', 'both', 'homebranch|holdingbranch|both', "When limiting search results with a library or library group, use the item's home library, or holding library, or both.", 'Choice'), >+('SearchLimitLibrary', 'homebranch', 'homebranch|holdingbranch|both', "When limiting search results with a library or library group, use the item's home library, or holding library, or both.", 'Choice'), > ('SearchMyLibraryFirst','0',NULL,'If ON, OPAC searches return results limited by the user\'s library by default if they are logged in','YesNo'), > ('SearchWithISBNVariations','0',NULL,'If enabled, search on all variations of the ISBN','YesNo'), > ('SelfCheckAllowByIPRanges','',NULL,'(Leave blank if not used. Use ranges or simple ip addresses separated by spaces, like <code>192.168.1.1 192.168.0.0/24</code>.)','Short'), >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 3fe1ca177c..9cf2e81570 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -24191,7 +24191,7 @@ if( CheckVersion( $DBversion ) ) { > $DBversion = '20.12.00.045'; > if( CheckVersion( $DBversion ) ) { > $dbh->do(q{ >- INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('SearchLimitLibrary', 'both', 'homebranch|holdingbranch|both', "When limiting search results with a library or library group, use the item's home library, or holding library, or both.", 'Choice') >+ INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('SearchLimitLibrary', 'homebranch', 'homebranch|holdingbranch|both', "When limiting search results with a library or library group, use the item's home library, or holding library, or both.", 'Choice') > }); > > NewVersion( $DBversion, 21249, "Adding new system preference SearchLimitLibrary" ); >-- >2.20.1
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 29152
:
125799
| 127180