Bugzilla – Attachment 157796 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.41 KB, created by
Nick Clemens (kidclamp)
on 2023-10-25 12:34:07 UTC
(
hide
)
Description:
Bug 33217: DB update
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-10-25 12:34:07 UTC
Size:
1.41 KB
patch
obsolete
>From 0bf4aec085d241ada4a25f05ebbad514af3bf691 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 > >--- > .../data/mysql/atomicupdate/bug_33217.pl | 20 +++++++++++++++++++ > 1 file changed, 20 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..a1c45c0ee7 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_33217.pl >@@ -0,0 +1,20 @@ >+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