Bugzilla – Attachment 10327 Details for
Bug 5979
Add separate OPACISBD system preference
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 5979 - Follow up: using OPACISBD systempreference to display link
SIGNED-OFF-Bug-5979---Follow-up-using-OPACISBD-sys.patch (text/plain), 3.24 KB, created by
Katrin Fischer
on 2012-06-17 06:07:15 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 5979 - Follow up: using OPACISBD systempreference to display link
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2012-06-17 06:07:15 UTC
Size:
3.24 KB
patch
obsolete
>From 30f42eee03e611214a4fd32dfff1da2701d925f5 Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Sat, 9 Jun 2012 16:10:50 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 5979 - Follow up: using OPACISBD > systempreference to display link > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Verified that new system preference is added cleanly and >ISBD view can be configured independently for staff and OPAC >using OPACISBD and viewISBD system preferences. >--- > installer/data/mysql/sysprefs.sql | 1 + > installer/data/mysql/updatedatabase.pl | 7 +++++++ > .../prog/en/modules/admin/preferences/opac.pref | 6 ++++++ > 3 files changed, 14 insertions(+) > >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index c4060fe..422305c 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -369,3 +369,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsIntranet', '1', NULL , 'Allow holds to be suspended from the intranet.', 'YesNo'); > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsOpac', '1', NULL , 'Allow holds to be suspended from the OPAC.', 'YesNo'); > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('DefaultLanguageField008','','Fill in the default language for field 008 Range 35-37 (e.g. eng, nor, ger, see <a href="http://www.loc.gov/marc/languages/language_code.html">MARC Code List for Languages</a>)','','Free'); >+INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('OPACISBD','1','Allow display of ISBD view of bibiographic records in OPAC','','YesNo'); >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 9b02cb9..27d6379 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -5369,6 +5369,13 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { > SetVersion($DBversion); > } > >+$DBversion = "3.09.00.XXX"; >+if (C4::Context->preference("Version") < TransformToNum($DBversion)) { >+ $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACISBD','1','Allow display of ISBD view of bibiographic records in OPAC','','YesNo')"); >+ print "Upgrade to $DBversion done (Add OPACISBD syspref)\n"; >+ SetVersion ($DBversion); >+} >+ > > =head1 FUNCTIONS > >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 e4ea15b..475eb1d 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 >@@ -339,6 +339,12 @@ OPAC: > yes: Enable > no: Disable > - Quote of the Day display on OPAC home page >+ - >+ - pref: OPACISBD >+ choices: >+ yes: Allow >+ no: "Don't allow" >+ - patrons to view records in ISBD form on the OPAC. > Policy: > - > - pref: singleBranchMode >-- >1.7.9.5
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 5979
:
3480
|
10029
|
10326
|
10327
|
44123
|
44126
|
44208
|
44209
|
44210
|
44211
|
48295
|
49873
|
49874
|
49898
|
49899
|
49900
|
49901
|
49902
|
49903
|
50591