Bugzilla – Attachment 126485 Details for
Bug 24223
Convert OpacNav system preference to news block
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24223: (follow-up) Add date to OpacNav additional content entries
Bug-24223-follow-up-Add-date-to-OpacNav-additional.patch (text/plain), 1.66 KB, created by
Marcel de Rooy
on 2021-10-19 11:50:50 UTC
(
hide
)
Description:
Bug 24223: (follow-up) Add date to OpacNav additional content entries
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-10-19 11:50:50 UTC
Size:
1.66 KB
patch
obsolete
>From bcea0d3236c643dcd9577130eaa3ef6a40334ce4 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 28 Sep 2020 13:45:23 +0000 >Subject: [PATCH] Bug 24223: (follow-up) Add date to OpacNav additional content > entries >Content-Type: text/plain; charset=utf-8 > >This follow-up modifies the atomic update so that it inserts today's >date as the "Published on" date. Without that information the system >considers the item unpublished and will not display the content. > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../data/mysql/atomicupdate/bug_24223-move-opacnav-to-news.perl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_24223-move-opacnav-to-news.perl b/installer/data/mysql/atomicupdate/bug_24223-move-opacnav-to-news.perl >index 29a24a8747..72802aed77 100644 >--- a/installer/data/mysql/atomicupdate/bug_24223-move-opacnav-to-news.perl >+++ b/installer/data/mysql/atomicupdate/bug_24223-move-opacnav-to-news.perl >@@ -20,7 +20,7 @@ if( CheckVersion( $DBversion ) ) { > foreach my $lang ( @langs ) { > print "Inserting OpacNav contents into $lang news item...\n"; > # If there is a value in the OpacNav preference, insert it into opac_news >- $dbh->do("INSERT INTO opac_news (branchcode, lang, title, content ) VALUES (NULL, ?, '', ?)", undef, "OpacNav_$lang", $opacnav); >+ $dbh->do("INSERT INTO opac_news (branchcode, lang, title, content, published_on ) VALUES (NULL, ?, '', ?, CAST(NOW() AS date))", undef, "OpacNav_$lang", $opacnav); > } > } > # Remove the OpacNav system preference >-- >2.20.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 24223
:
104362
|
104364
|
104453
|
109856
|
110843
|
110853
|
110897
|
110898
|
113130
|
113131
|
113132
|
115758
|
115759
|
115760
|
124935
|
124936
|
124937
|
124938
|
125300
|
125301
|
125302
|
125303
|
125304
|
125767
|
125768
|
125769
|
125770
|
125771
|
126089
|
126147
|
126484
|
126485
|
126486
|
126487
|
126488
|
126489
|
126490
|
126491
|
126492
|
127338
|
127343
|
127344
|
127345
|
127346