Bug 24584: Rewrite optional/sample_libraries_holidays to YAML
YAML version of optional sample_libraries_holidays To test: 1) Same test plan of first patch, only check table repeatable_holidays Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
c5ac1d23f2
commit
89ced6c9a0
3 changed files with 51 additions and 5 deletions
|
@ -1,4 +0,0 @@
|
|||
INSERT INTO `repeatable_holidays` VALUES
|
||||
(2,'MPL',0,NULL,NULL,'','Sundays'),
|
||||
(3,'MPL',NULL,1,1,'','New Year\'s Day'),
|
||||
(4,'MPL',NULL,25,12,'','Christmas');
|
|
@ -1 +0,0 @@
|
|||
Sample holidays: Sunday, Christmas, New Year's
|
|
@ -0,0 +1,51 @@
|
|||
---
|
||||
#
|
||||
# Copyright 2020 Koha Development Team
|
||||
#
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Koha is free software; you can redistribute it and/or modify it under the
|
||||
# terms of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
#
|
||||
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with Koha; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
description:
|
||||
- "Sample holidays: Sunday, Christmas, New Year's"
|
||||
|
||||
tables:
|
||||
- repeatable_holidays:
|
||||
translatable: [ description ]
|
||||
multiline: []
|
||||
rows:
|
||||
- id: 2
|
||||
branchcode: MPL
|
||||
weekday: 0
|
||||
day: ~
|
||||
month: ~
|
||||
title: ""
|
||||
description: "Sundays"
|
||||
|
||||
- id: 3
|
||||
branchcode: MPL
|
||||
weekday: ~
|
||||
day: 1
|
||||
month: 1
|
||||
title: ""
|
||||
description: "New Year's Day"
|
||||
|
||||
- id: 4
|
||||
branchcode: MPL
|
||||
weekday: ~
|
||||
day: 25
|
||||
month: 12
|
||||
title: ""
|
||||
description: "Christmas"
|
Loading…
Reference in a new issue