Bugzilla – Attachment 17721 Details for
Bug 9743
Allow customization for making hold notes required
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9743: dbrev for mandatory hold notes
Bug-9743-dbrev-for-mandatory-hold-notes.patch (text/plain), 2.69 KB, created by
Marcel de Rooy
on 2013-04-26 14:56:43 UTC
(
hide
)
Description:
Bug 9743: dbrev for mandatory hold notes
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-04-26 14:56:43 UTC
Size:
2.69 KB
patch
obsolete
>From 40fd65232502a3eb64090b3bcbc29f91c08b1217 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 4 Mar 2013 13:30:28 +0100 >Subject: [PATCH] Bug 9743: dbrev for mandatory hold notes >Content-Type: text/plain; charset=utf-8 > >Adds pref OPACMandatoryHoldNotes. > >Test plan: >Run [your server]/cgi-bin/koha/installer/install.pl?step=3&op=updatestructure >Optionally, run a new install to test sysprefs.sql. >Or: >Edit sysprefs.sql, leave at least the last few lines including the new one. >And run from command line: mysql -p [yourdatabase] < [your-clone]/installer/data/mysql/sysprefs.sql >--- > installer/data/mysql/sysprefs.sql | 1 + > installer/data/mysql/updatedatabase.pl | 9 +++++++++ > 2 files changed, 10 insertions(+), 0 deletions(-) > >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index d631f88..45a022a 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -424,3 +424,4 @@ INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES(' > INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('HighlightOwnItemsOnOPAC','0','','If on, and a patron is logged into the OPAC, items from his or her home library will be emphasized and shown first in search results and item details.','YesNo'); > INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('HighlightOwnItemsOnOPACWhich','PatronBranch','PatronBranch|OpacURLBranch','Decides which branch''s items to emphasize. If PatronBranch, emphasize the logged in user''s library''s items. If OpacURLBranch, highlight the items of the Apache var BRANCHCODE defined in Koha''s Apache configuration file.','Choice') > INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacShowHoldNotes',0,'Show hold notes on OPAC','','YesNo'); >+INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('OPACMandatoryHoldNotes','','Mandatory hold notes','','Textarea'); >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 53eaca6..b97a5ee 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -6780,6 +6780,15 @@ if ( CheckVersion($DBversion) ) { > SetVersion ($DBversion); > } > >+$DBversion = "3.11.00.XXX"; >+if(CheckVersion($DBversion)) { >+ $dbh->do( >+"INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('OPACMandatoryHoldNotes','','Mandatory hold notes','','Textarea')" >+ ); >+ print "Upgrade to $DBversion done (Bug 9743: Mandatory opac hold notes under specified conditions)\n"; >+ SetVersion($DBversion); >+} >+ > > =head1 FUNCTIONS > >-- >1.7.7.6
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 9743
:
15842
|
15843
|
15910
|
17720
|
17721
|
17722
|
19561
|
19562
|
19563
|
21233
|
21236
|
21240
|
21741
|
21742
|
21743
|
21744
|
34422
|
34526