Bugzilla – Attachment 148169 Details for
Bug 33217
Allow different default sorting when click author links
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33217: DB update
Bug-33217-DB-update.patch (text/plain), 1.37 KB, created by
Nick Clemens (kidclamp)
on 2023-03-14 15:13:04 UTC
(
hide
)
Description:
Bug 33217: DB update
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-03-14 15:13:04 UTC
Size:
1.37 KB
patch
obsolete
>From d6dba567c0c7d35844c96af70b637bede9b11e9b Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 14 Mar 2023 15:12:32 +0000 >Subject: [PATCH] Bug 33217: DB update > >--- > installer/data/mysql/atomicupdate/bug_33217.pl | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_33217.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_33217.pl b/installer/data/mysql/atomicupdate/bug_33217.pl >new file mode 100755 >index 0000000000..b68cda4a1d >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_33217.pl >@@ -0,0 +1,17 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "33217", >+ description => "Add option to specify sorting for author links", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ # Do you stuffs here >+ $dbh->do(q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ ('AuthorLinkSortBy','default','call_number|pubdate|acqdate|title','Specify the default field used for sorting when click author links','Choice'), >+ ('AuthorLinkSortOrder','asc','asc|dsc|az|za','Specify the default sort order for author links','Choice') >+ }); >+ say $out "Added new system preferences 'AuthorLinkSortBy' 'AuthorLinkSortOrder'"; >+ }, >+}; >-- >2.30.2
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 33217
:
148142
|
148169
|
157795
|
157796
|
157797
|
157818
|
157819
|
157820
|
158434
|
158435
|
158436
|
158437
|
158438