Bugzilla – Attachment 3088 Details for
Bug 1883
Managing Suggestions - authorised list of reasons why patron requesting book
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Follow-up fix
0001-Bug-1883-follow-up-Adding-default-OPAC_SUG-values.patch (text/plain), 1.77 KB, created by
Owen Leonard
on 2011-02-07 20:56:24 UTC
(
hide
)
Description:
Follow-up fix
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2011-02-07 20:56:24 UTC
Size:
1.77 KB
patch
obsolete
>From 168b0bb53b98f4fada25c63526407d741df615af Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 4 Feb 2011 11:51:36 -0500 >Subject: [PATCH] Bug 1883 follow-up: Adding default OPAC_SUG values >Content-Type: text/plain; charset="utf-8" > >Adds two default authorized values in the category OPAC_SUG: > >damaged, "The copy on the shelf is damaged" >bestseller, "Upcoming title by popular author" >--- > installer/data/mysql/updatedatabase.pl | 14 ++++++++++++++ > 1 files changed, 14 insertions(+), 0 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 4618636..732fb58 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -3987,6 +3987,20 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > SetVersion ($DBversion); > } > >+$DBversion = "3.03.00.XXX"; >+if (C4::Context->preference("Version") < TransformToNum($DBversion)) { >+ >+ my ($opac_sug_count); >+ eval { $opac_sug_count = $dbh->do("SELECT 1 FROM authorised_values WHERE category='OPAC_SUG'"); }; >+ if ($opac_sug_count == 0) { >+ $dbh->do("INSERT INTO authorised_values (category,authorised_value,lib,lib_opac) VALUES ('OPAC_SUG','damaged','The copy on the shelf is damaged','The copy on the shelf is damaged')"); >+ $dbh->do("INSERT INTO authorised_values (category,authorised_value,lib,lib_opac) VALUES ('OPAC_SUG','bestseller','Upcoming title by popular author','Upcoming title by popular author')"); >+ } >+ >+ print "Upgrade to $DBversion done: Adding some default authorized values in the OPAC_SUG category for patrons to select when submitting a suggestion (Bug 1883)\n"; >+ SetVersion ($DBversion); >+} >+ > =head1 FUNCTIONS > > =head2 DropAllForeignKeys($table) >-- >1.7.3 >
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 1883
:
400
|
401
|
402
|
403
|
2809
|
2828
| 3088 |
3195