Bugzilla – Attachment 102259 Details for
Bug 25037
Add checkout_type to checkouts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25037: Add authorised value for checkout types
Bug-25037-Add-authorised-value-for-checkout-types.patch (text/plain), 2.24 KB, created by
Lari Taskula
on 2020-04-02 05:28:49 UTC
(
hide
)
Description:
Bug 25037: Add authorised value for checkout types
Filename:
MIME Type:
Creator:
Lari Taskula
Created:
2020-04-02 05:28:49 UTC
Size:
2.24 KB
patch
obsolete
>From 39d1437ba5c1c20623654cafe8d6ec7465a472f6 Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >Date: Wed, 1 Apr 2020 14:29:43 +0000 >Subject: [PATCH] Bug 25037: Add authorised value for checkout types > >This commit adds an authorised value category "CHECKOUT_TYPE" and >an authorised value "ONSITE" for indicating an on-site checkout. > >To test: >1. perl installer/data/mysql/updatedatabase.pl >--- > .../bug_24101_1_add_auth_values.perl | 17 +++++++++++++++++ > installer/data/mysql/mandatory/auth_val_cat.sql | 4 ++++ > 2 files changed, 21 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_24101_1_add_auth_values.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_24101_1_add_auth_values.perl b/installer/data/mysql/atomicupdate/bug_24101_1_add_auth_values.perl >new file mode 100644 >index 0000000000..22d0933f50 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_24101_1_add_auth_values.perl >@@ -0,0 +1,17 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ >+ # Add authorised value category "CHECKOUT_TYPE" >+ $dbh->do( q| >+ INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES ('CHECKOUT_TYPE'); >+ | ); >+ >+ # Add authorised value "ONSITE" under "CHECKOUT_TYPE" category >+ $dbh->do( q| >+ INSERT IGNORE INTO authorised_values(category, authorised_value, lib, lib_opac) VALUES ('CHECKOUT_TYPE', 'ONSITE', 'On-site checkout', 'On-site checkout'); >+ | ); >+ >+ # Always end with this (adjust the bug info) >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 24101 - Add authorised value for checkout types )\n"; >+} >diff --git a/installer/data/mysql/mandatory/auth_val_cat.sql b/installer/data/mysql/mandatory/auth_val_cat.sql >index cca989c9df..2e8775929e 100644 >--- a/installer/data/mysql/mandatory/auth_val_cat.sql >+++ b/installer/data/mysql/mandatory/auth_val_cat.sql >@@ -65,3 +65,7 @@ INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES > -- For Claims returned > INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES > ('RETURN_CLAIM_RESOLUTION'); >+ >+-- For Circulation types >+INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES >+ ('CHECKOUT_TYPE'); >-- >2.17.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 25037
:
102259
|
102260
|
102261
|
102262
|
102263
|
102264
|
102265
|
102266
|
102267
|
102268
|
102269
|
102272
|
102413
|
102414
|
102415
|
102416
|
102417
|
102418
|
102419
|
102420
|
102421
|
102422
|
102423
|
102424
|
102586
|
102587
|
102588
|
102589
|
102590
|
102591
|
102592
|
102593
|
102594
|
102595
|
102596
|
102597
|
102598
|
102599
|
102655
|
102656
|
102657
|
102658
|
102659
|
102660
|
102661
|
102662
|
102663
|
102664
|
102665
|
102666
|
102675
|
102676
|
104267
|
104268
|
105638
|
105780
|
105781
|
105782
|
105783
|
105784