Browse Source

Bug 25534: (QA follow-up) Add AV category

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
20.11.x
Kyle Hall 2 years ago
committed by Jonathan Druart
parent
commit
57bbb2861f
  1. 6
      installer/data/mysql/atomicupdate/cancellation_reason.perl
  2. 1
      installer/data/mysql/mandatory/auth_val_cat.sql
  3. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt

6
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' ) ) {

1
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 )

2
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' %]

Loading…
Cancel
Save