Bugzilla – Attachment 133796 Details for
Bug 28269
Order search should be possible with ISSN too
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28269: Add new system preference SearchWithISSNVariations
Bug-28269-Add-new-system-preference-SearchWithISSN.patch (text/plain), 3.50 KB, created by
Slava Shishkin
on 2022-04-25 14:02:08 UTC
(
hide
)
Description:
Bug 28269: Add new system preference SearchWithISSNVariations
Filename:
MIME Type:
Creator:
Slava Shishkin
Created:
2022-04-25 14:02:08 UTC
Size:
3.50 KB
patch
obsolete
>From 0f9c8915dafe70087305f7e12fdfa8bc93250443 Mon Sep 17 00:00:00 2001 >From: Slava Shishkin <slavashishkin@gmail.com> >Date: Sun, 24 Apr 2022 00:18:22 +0300 >Subject: [PATCH] Bug 28269: Add new system preference SearchWithISSNVariations > >--- > ...69_-_add_SSearchWithISSNVariations_syspref.pl | 16 ++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../en/modules/admin/preferences/searching.pref | 7 +++++++ > 3 files changed, 24 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_28269_-_add_SSearchWithISSNVariations_syspref.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_28269_-_add_SSearchWithISSNVariations_syspref.pl b/installer/data/mysql/atomicupdate/bug_28269_-_add_SSearchWithISSNVariations_syspref.pl >new file mode 100644 >index 0000000000..750bfab5f5 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_28269_-_add_SSearchWithISSNVariations_syspref.pl >@@ -0,0 +1,16 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "28269", >+ description => "Add new system preference SearchWithISSNVariations", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ >+ $dbh->do( q{ >+ INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) >+ VALUES ('SearchWithISSNVariations','0',NULL,'If enabled, search on all variations of the ISSN','YesNo') >+ >+ }); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 1b029aa5ee..2154685d0c 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -600,6 +600,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('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'), >+('SearchWithISSNVariations','0',NULL,'If enabled, search on all variations of the ISSN','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'), > ('SelfCheckHelpMessage','','70|10','Enter HTML to include under the basic Web-based Self Checkout instructions on the Help page','Textarea'), > ('SelfCheckInMainUserBlock','','70|10','Add a block of HTML that will display on the self check-in screen.','Textarea'), >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 ed02b37d74..cc0af3d427 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 >@@ -269,6 +269,13 @@ Searching: > 1: "search" > 0: "don't search" > - on all variations of the ISBN. >+ - >+ - When searching on the ISSN index, >+ - pref: SearchWithISSNVariations >+ choices: >+ 1: "search" >+ 0: "don't search" >+ - on all variations of the ISSN. > - > - pref: BiblioItemtypeInfo > choices: >-- >2.35.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 28269
:
133782
|
133796
|
133869
|
133870
|
133871
|
134386
|
134387
|
134427
|
134428
|
138185
|
138186
|
138850
|
138851
|
138852