Bugzilla – Attachment 160545 Details for
Bug 33317
Add system preference to set meta robots for the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33317: Using checkoxes in OpacMetaRobots preference system to prevent incorrect data entry
Bug-33317-Using-checkoxes-in-OpacMetaRobots-prefer.patch (text/plain), 3.34 KB, created by
Lucas Gass (lukeg)
on 2024-01-04 16:16:37 UTC
(
hide
)
Description:
Bug 33317: Using checkoxes in OpacMetaRobots preference system to prevent incorrect data entry
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-01-04 16:16:37 UTC
Size:
3.34 KB
patch
obsolete
>From 72aa09088655fbc522c6ec3dc1c1eb040bd4439e Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Fri, 10 Nov 2023 19:48:21 +0000 >Subject: [PATCH] Bug 33317: Using checkoxes in OpacMetaRobots preference > system to prevent incorrect data entry > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > installer/data/mysql/atomicupdate/bug_33317.pl | 2 +- > installer/data/mysql/mandatory/sysprefs.sql | 2 +- > .../intranet-tmpl/prog/en/modules/admin/preferences/opac.pref | 4 +++- > 3 files changed, 5 insertions(+), 3 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_33317.pl b/installer/data/mysql/atomicupdate/bug_33317.pl >index edffff480d..58858e4e27 100644 >--- a/installer/data/mysql/atomicupdate/bug_33317.pl >+++ b/installer/data/mysql/atomicupdate/bug_33317.pl >@@ -7,7 +7,7 @@ return { > my ($args) = @_; > my ($dbh, $out) = @$args{qw(dbh out)}; > >- $dbh->do(q{INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('OpacMetaRobots','','','Improve search engine crawling.', 'Textarea') }); >+ $dbh->do(q{INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('OpacMetaRobots','','','Improve search engine crawling.', 'Multiple') }); > > say $out "Added system preference 'OpacMetaRobots'"; > }, >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 7eee94579c..228e4e6ef9 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -493,7 +493,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('OpacMaintenance','0','','If ON, enables maintenance warning in OPAC','YesNo'), > ('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer'), > ('OpacMetaDescription','','','This description will show in search engine results (160 characters).','Textarea'), >-('OpacMetaRobots','','','Improve search engine crawling.','Textarea'), >+('OpacMetaRobots', 'noindex,nofollow', NULL, 'Improve search engine crawling.', 'Multiple'), > ('OPACMySummaryHTML','','70|10','Enter the HTML that will appear in a column on the \'my summary\' and \'my checkout history\' tabs when a user is logged in to the OPAC. Enter {BIBLIONUMBER}, {TITLE}, {AUTHOR}, or {ISBN} in place of their respective variables in the HTML. Leave blank to disable.','Textarea'), > ('OpacNewsLibrarySelect','0','','Show selector for branches on OPAC news page','YesNo'), > ('OpacNoItemTypeImages','0',NULL,'If ON, disables itemtype images in the OPAC','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 4cc4c20e30..c35eb53af2 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 >@@ -63,7 +63,9 @@ OPAC: > - > - "Improve search engine crawling." > - pref: OpacMetaRobots >- type: textarea >+ multiple: >+ noindex: "noindex" >+ nofollow: "nofollow" > - > - By default, show bibliographic records > - pref: BiblioDefaultView >-- >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 33317
:
148575
|
148593
|
150420
|
158820
|
159653
|
160125
|
160126
|
160534
|
160539
|
160540
|
160541
|
160544
|
160545
|
160546
|
168071
|
168072
|
168073
|
168074
|
168075