Bugzilla – Attachment 138666 Details for
Bug 29897
Display author identifiers for researchers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29897: Add new pref OPACAuthorIdentifiers
Bug-29897-Add-new-pref-OPACAuthorIdentifiers.patch (text/plain), 3.37 KB, created by
Katrin Fischer
on 2022-08-05 10:55:22 UTC
(
hide
)
Description:
Bug 29897: Add new pref OPACAuthorIdentifiers
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-08-05 10:55:22 UTC
Size:
3.37 KB
patch
obsolete
>From 2e66dfaf4d2f8cbf3293c931350baa4ae9e43948 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 18 Jan 2022 11:35:17 +0100 >Subject: [PATCH] Bug 29897: Add new pref OPACAuthorIdentifiers > >Sponsored-by: Orex Digital > >Signed-off-by: Orex Digital <info@orex.es> > >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >--- > installer/data/mysql/atomicupdate/bug_29897.pl | 14 ++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../prog/en/modules/admin/preferences/opac.pref | 7 +++++++ > 3 files changed, 22 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_29897.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_29897.pl b/installer/data/mysql/atomicupdate/bug_29897.pl >new file mode 100755 >index 0000000000..719d8e9c9b >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_29897.pl >@@ -0,0 +1,14 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "29897", >+ description => "Add new system preference OPACAuthorIdentifiers", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ $dbh->do(q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ ('OPACAuthorIdentifiers','0','','Display author identifiers on the OPAC detail page','YesNo') >+ }); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 457ce2f61d..a9bc27439a 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -412,6 +412,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('OpacAllowSharingPrivateLists','0',NULL,'If set, allows opac users to share private lists with other patrons','YesNo'), > ('OPACAllowUserToChooseBranch','1','1','Allow the user to choose the branch they want to pickup their hold from','YesNo'), > ('OPACAmazonCoverImages','0','','Display cover images on OPAC from Amazon Web Services','YesNo'), >+('OPACAuthorIdentifiers','0','','Display author identifiers on the OPAC detail page','YesNo'), > ('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'), > ('OPACBaseURL','',NULL,'Specify the Base URL of the OPAC, e.g., http://opac.mylibrary.com, including the protocol (http:// or https://). Otherwise, the http:// will be added automatically by Koha upon saving.','Free'), > ('opacbookbag','1','','If ON, enables display of Cart feature','YesNo'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >index c9e25aa478..d3821f7ea5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >@@ -534,6 +534,13 @@ OPAC: > 1: Enable > 0: Disable > - "interface for browsing all holdings (Elasticsearch only)." >+ - >+ - pref: OPACAuthorIdentifiers >+ default: 0 >+ choices: >+ 1: Display >+ 0: "Don't display" >+ - "author identifiers for research publications." > OpenURL: > - > - 'Complete URL of OpenURL resolver (starting with <code>http://</code> or <code>https://</code>):' >-- >2.30.2
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 29897
:
129816
|
129817
|
129818
|
129819
|
132961
|
132962
|
132963
|
132964
|
133081
|
133113
|
133114
|
133115
|
133116
|
133117
|
134459
|
134460
|
134461
|
134462
|
134463
|
134464
|
135983
|
135984
|
135985
|
135986
|
135987
|
135988
|
135989
|
135990
|
135991
|
135992
|
135993
|
138249
|
138250
|
138251
|
138252
|
138253
|
138254
|
138255
|
138256
|
138257
|
138258
|
138259
|
138260
|
138371
|
138372
|
138425
|
138426
|
138427
|
138428
|
138429
|
138430
|
138431
|
138432
|
138433
|
138434
|
138435
|
138486
|
138487
|
138490
|
138501
|
138664
|
138665
| 138666 |
138667
|
138668
|
138669
|
138670
|
138671
|
138672
|
138673
|
138674
|
138675
|
138676
|
138677
|
138678
|
138679