Bug 24851: Insert libraries sample data for "UNIMARC"
commit2dde0c9f33706424d9d53c0ec13a02348a7c7622
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 Mar 2020 18:06:03 +0000 (4 19:06 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 13 Apr 2020 16:18:33 +0000 (13 16:18 +0000)
treebf99d18306973f9ec76cfca771574570e55e66f0
parent83cb6a7077ed891568b34e39a4bdbb80631c4417
Bug 24851: Insert libraries sample data for "UNIMARC"

I am trying to make koha-testing-docker UNIMARC compabible.
In order to have koha-misc4dev insert all the data correctly (users, etc.) we need at least 1 library.
I am suggesting to reuse the usual library list for UNIMARC.

misc4dev will use fr-FR sample data for "UNIMARC"
This is related to https://gitlab.com/koha-community/koha-misc4dev/issues/29

Test plan:
outside your box, in koha-testing-docker (up-to-date), edit .env and set
 KOHA_MARC_FLAVOUR=unimarc
 DEBUG_GIT_REPO_MISC4DEV_URL=https://gitlab.com/joubu/koha-misc4dev.git
 DEBUG_GIT_REPO_MISC4DEV_BRANCH=unimarc

Then start the koha container
When the misc4dev will start its job, the scripts will have the expected
data to continue.

Without this patch you will get
koha_1       | Not enough data in the database, library and/or patron category does not exist at /kohadevbox/misc4dev/create_superlibrarian.pl line 31.

And plenty of errors will follow.

Also, the sample data used in misc4dev will use CPL
(/kohadevbox/misc4dev/data/sql/unimarc/1812/after_22155/items.sql)

Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit e513e32d0e3c004236048b6673f55eb45bbd82ae)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
installer/data/mysql/fr-FR/2-Optionel/sample_libraries.sql [new file with mode: 0644]
installer/data/mysql/fr-FR/2-Optionel/sample_libraries.txt [new file with mode: 0644]