Bug 24584: Rewrite optional/patron_atributes to YAML
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Wed, 5 Feb 2020 00:27:01 +0000 (21:27 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 9 Mar 2020 13:54:38 +0000 (13:54 +0000)
YAML version of optional patron_atributes

To test:
1) Same test plan of first patch, only check table
   borrower_attribute_types

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>

installer/data/mysql/en/optional/patron_atributes.sql [deleted file]
installer/data/mysql/en/optional/patron_atributes.txt [deleted file]
installer/data/mysql/en/optional/patron_atributes.yml [new file with mode: 0644]

diff --git a/installer/data/mysql/en/optional/patron_atributes.sql b/installer/data/mysql/en/optional/patron_atributes.sql
deleted file mode 100644 (file)
index ba929bc..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-INSERT INTO `borrower_attribute_types` (`code`, `description`, `repeatable`, `unique_id`, `opac_display`, `staff_searchable`, `authorised_value_category`)
-VALUES ('SHOW_BCODE',  'Show barcode on the summary screen items listings', 0, 0, 1, 0, 'YES_NO');
diff --git a/installer/data/mysql/en/optional/patron_atributes.txt b/installer/data/mysql/en/optional/patron_atributes.txt
deleted file mode 100644 (file)
index 9d73f09..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Useful patron attribute types:
-* SHOW_BCODE - Show barcode on the patron summary screen items listings
diff --git a/installer/data/mysql/en/optional/patron_atributes.yml b/installer/data/mysql/en/optional/patron_atributes.yml
new file mode 100644 (file)
index 0000000..116f993
--- /dev/null
@@ -0,0 +1,36 @@
+---
+#
+#  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:
+  - "Useful patron attribute types:"
+  - "* SHOW_BCODE - Show barcode on the patron summary screen items listings"
+
+tables:
+  - borrower_attribute_types:
+      translatable: [ description ]
+      multiline: []
+      rows:
+        - code: "SHOW_BCODE"
+          description: "Show barcode on the summary screen items listings"
+          repeatable: 0
+          unique_id: 0
+          opac_display: 1
+          staff_searchable: 0
+          authorised_value_category: "YES_NO"