Bugzilla – Attachment 10029 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]
Bug 5979 - Follow up: using OPACISBD systempreference to display link
Bug-5979---Follow-up-using-OPACISBD-systempreferen.patch (text/plain), 2.99 KB, created by
Alex Arnaud
on 2012-06-09 14:21:24 UTC
(
hide
)
Description:
Bug 5979 - Follow up: using OPACISBD systempreference to display link
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2012-06-09 14:21:24 UTC
Size:
2.99 KB
patch
obsolete
>From 7299559653127a0d91abc55ad79752aff23dc06f 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] Bug 5979 - Follow up: using OPACISBD systempreference to display link > >--- > 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(+), 0 deletions(-) > >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 2ffe2df..4955dcc 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -365,3 +365,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacBrowseResults','1','Disable/enable browsing and paging search results from the OPAC detail page.',NULL,'YesNo'); > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SvcMaxReportRows','10','Maximum number of rows to return via the report web service.',NULL,'Integer'); > INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'); >+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 dbbdee3..968700c 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -5308,6 +5308,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > SetVersion ($DBversion); > } > >+$DBversion = "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 > > =head2 TableExists($table) >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.4.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 5979
:
3480
|
10029
|
10326
|
10327
|
44123
|
44126
|
44208
|
44209
|
44210
|
44211
|
48295
|
49873
|
49874
|
49898
|
49899
|
49900
|
49901
|
49902
|
49903
|
50591