Bugzilla – Attachment 10355 Details for
Bug 8263
Make OPAC stylesheet preferences more consistent
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Database revision for 8263
patch.txt (text/plain), 1.62 KB, created by
Marcel de Rooy
on 2012-06-18 12:38:18 UTC
(
hide
)
Description:
Database revision for 8263
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2012-06-18 12:38:18 UTC
Size:
1.62 KB
patch
obsolete
>From b522044e8ea8b3ec1733981e47b0851733d5b03e Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 18 Jun 2012 13:53:59 +0200 >Subject: [PATCH] 8263 Make OPAC stylesheet preferences more consistent > (dbrev) >Content-Type: text/plain; charset="utf-8" > >This patch handles the dbrev for this report. It optionally saves the value of the former opacstylesheet pref into opaclayoutstylesheet. >--- > installer/data/mysql/updatedatabase.pl | 13 +++++++++++++ > 1 files changed, 13 insertions(+), 0 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 9b02cb9..943ca20 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -5369,6 +5369,19 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { > SetVersion($DBversion); > } > >+$DBversion ="3.09.00.XXX"; >+if(C4::Context->preference("Version") < TransformToNum($DBversion) ) { >+ my $query = "SELECT value FROM systempreferences WHERE variable='opacstylesheet'"; >+ my $remote= $dbh->selectrow_arrayref($query); >+ $dbh->do("DELETE from systempreferences WHERE variable='opacstylesheet'"); >+ if($remote && $remote->[0]) { >+ $query="UPDATE systempreferences SET value=? WHERE variable='opaclayoutstylesheet'"; >+ $dbh->do($query,undef,$remote->[0]); >+ print "NOTE: The URL of your remote opac css file has been moved to preference opaclayoutstylesheet.\n"; >+ } >+ print "Upgrade to $DBversion done (BZ 8263: Make OPAC stylesheet preferences more consistent)\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 8263
:
10354
|
10355
|
10379
|
10396
|
10633
|
10930
|
11035
|
11036