@@ -, +, @@
opac_news
---
.../data/mysql/en/optional/sample_news.sql | 2 -
.../data/mysql/en/optional/sample_news.txt | 1 -
.../data/mysql/en/optional/sample_news.yml | 52 +++++++++++++++++++
3 files changed, 52 insertions(+), 3 deletions(-)
delete mode 100644 installer/data/mysql/en/optional/sample_news.sql
delete mode 100644 installer/data/mysql/en/optional/sample_news.txt
create mode 100644 installer/data/mysql/en/optional/sample_news.yml
--- a/installer/data/mysql/en/optional/sample_news.sql
+++ a/installer/data/mysql/en/optional/sample_news.sql
@@ -1,2 +0,0 @@
-INSERT INTO `opac_news` (`title`, `content`, `lang`, `timestamp`, `expirationdate`, `number`) VALUES ('Welcome to Koha','Welcome to Koha. Koha is a full-featured open-source ILS. Developed initially in New Zealand by Katipo Communications Ltd and first deployed in January of 2000 for Horowhenua Library Trust, Koha is currently maintained by a team of software providers and library technology staff from around the globe.','koha','2007-10-29 05:25:58','2099-01-10',1),
-('What\'s Next?','Now that you\'ve installed Koha, what\'s next? Here are some suggestions:\r\n
\r\n','koha','2007-10-29 05:34:45','2099-01-10',2);
--- a/installer/data/mysql/en/optional/sample_news.txt
+++ a/installer/data/mysql/en/optional/sample_news.txt
@@ -1, +0,0 @@
-Sample news items
--- a/installer/data/mysql/en/optional/sample_news.yml
+++ a/installer/data/mysql/en/optional/sample_news.yml
@@ -0,0 +1,52 @@
+---
+#
+# 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 news items"
+
+tables:
+ - opac_news:
+ translatable: [ title, content ]
+ multiline: [ content ]
+ rows:
+ - title: "Welcome to Koha"
+ content:
+ - "Welcome to Koha. Koha is a full-featured open-source ILS. Developed initially in New Zealand by Katipo Communications Ltd and first deployed in January of 2000 for Horowhenua Library Trust, Koha is currently maintained by a team of software providers and library technology staff from around the globe."
+ lang: "koha"
+ timestamp: "2007-10-29 05:25:58"
+ expirationdate: "2099-01-10"
+ number: 1
+
+ - title: "What's Next?"
+ content:
+ - "Now that you've installed Koha, what's next? Here are some suggestions:"
+ - ""
+ - ""
+ lang: "koha"
+ timestamp: "2007-10-29 05:34:45"
+ expirationdate: "2099-01-10"
+ number: 2
--