Bugzilla – Attachment 108756 Details for
Bug 25534
Add ability to specifying and store a reason when cancelling a hold
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25534: (QA follow-up) Add AV category
Bug-25534-QA-follow-up-Add-AV-category.patch (text/plain), 3.30 KB, created by
Kyle M Hall (khall)
on 2020-08-20 17:10:48 UTC
(
hide
)
Description:
Bug 25534: (QA follow-up) Add AV category
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2020-08-20 17:10:48 UTC
Size:
3.30 KB
patch
obsolete
>From 42c14f835e4abc9c22eb1e7605a75b581b2ae9b1 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 20 Aug 2020 12:35:27 -0400 >Subject: [PATCH] Bug 25534: (QA follow-up) Add AV category > >--- > installer/data/mysql/atomicupdate/cancellation_reason.perl | 6 +++++- > installer/data/mysql/mandatory/auth_val_cat.sql | 1 + > .../prog/en/modules/admin/authorised_values.tt | 2 ++ > 3 files changed, 8 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/atomicupdate/cancellation_reason.perl b/installer/data/mysql/atomicupdate/cancellation_reason.perl >index f1c1257de9..9aa9099964 100644 >--- a/installer/data/mysql/atomicupdate/cancellation_reason.perl >+++ b/installer/data/mysql/atomicupdate/cancellation_reason.perl >@@ -1,7 +1,11 @@ > $DBversion = 'XXX'; # will be replaced by the RM > if ( CheckVersion( $DBversion ) ) { > $dbh->do(q{ >-INSERT INTO `letter` VALUES ('reserves','HOLD_CANCELLATION','','Hold Cancellation',0,'Your hold was canceled.','[%- USE AuthorisedValues -%]\r\nDear [% borrower.firstname %] [% borrower.surname %],\r\n\r\nYour hold for [% biblio.title %] was canceled for the following reason: [% AuthorisedValues.GetByCode( \'HOLD_CANCELLATION\', hold.cancellation_reason ) %]','email','default'); >+ INSERT IGNORE INTO authorised_value_categories( category_name, is_system ) VALUES ('HOLD_CANCELLATION', 0); >+ }); >+ >+ $dbh->do(q{ >+INSERT IGNORE INTO `letter` VALUES ('reserves','HOLD_CANCELLATION','','Hold Cancellation',0,'Your hold was canceled.','[%- USE AuthorisedValues -%]\r\nDear [% borrower.firstname %] [% borrower.surname %],\r\n\r\nYour hold for [% biblio.title %] was canceled for the following reason: [% AuthorisedValues.GetByCode( \'HOLD_CANCELLATION\', hold.cancellation_reason ) %]','email','default'); > }); > > if ( !column_exists( 'reserves', 'cancellation_reason' ) ) { >diff --git a/installer/data/mysql/mandatory/auth_val_cat.sql b/installer/data/mysql/mandatory/auth_val_cat.sql >index c45b5985dd..bd8f81d761 100644 >--- a/installer/data/mysql/mandatory/auth_val_cat.sql >+++ b/installer/data/mysql/mandatory/auth_val_cat.sql >@@ -17,6 +17,7 @@ INSERT IGNORE INTO authorised_value_categories( category_name, is_system ) > ('ITEMTYPECAT', 0), > ('PAYMENT_TYPE', 0), > ('PA_CLASS', 0), >+ ('HOLD_CANCELLATION', 0), > ('ROADTYPE', 0); > > INSERT IGNORE INTO authorised_value_categories( category_name, is_system ) >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >index 57a8379d2e..c87bbf7aba 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >@@ -382,6 +382,8 @@ > <p>General holdings: retention designator :: This data element specifies the retention policy for the unit at the time of the holdings report.</p> > [% CASE 'HINGS_UT' %] > <p>General holdings: type of unit designator</p> >+ [% CASE 'HOLD_CANCELLATION' %] >+ <p>Reasons why a hold might have been cancelled</p> > [% CASE 'HSBND_FREQ' %] > <p>Frequencies used by the housebound module. They are displayed on the housebound tab in the patron account in staff.</p> > [% CASE 'ITEMTYPECAT' %] >-- >2.24.1 (Apple Git-126)
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 25534
:
105034
|
105035
|
105036
|
105077
|
105078
|
105079
|
105105
|
105106
|
105108
|
105109
|
105110
|
105111
|
105112
|
105113
|
105114
|
105115
|
105116
|
105117
|
105118
|
105119
|
105120
|
105121
|
105122
|
105147
|
105148
|
105149
|
105150
|
105151
|
108476
|
108477
|
108478
|
108479
|
108480
|
108481
|
108746
|
108747
|
108748
|
108749
|
108750
|
108751
|
108752
|
108753
|
108754
|
108755
|
108756
|
108757
|
108805
|
108806
|
108891
|
108892
|
108893
|
108894
|
108895
|
108896
|
108897
|
108898
|
108899
|
108900
|
108901
|
108902
|
108903
|
108904
|
108977
|
108985
|
108986
|
108990
|
114026
|
114027
|
114788