From d6f89862d6e06eec50016623d3d86807c2450275 Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Mon, 28 Mar 2022 01:27:11 -0300 Subject: [PATCH 2/4] Bug 30373: Add UNIMARC FA (fast add) framework This parch creates optional folder and a sample fast add framework To test: 0. On top of first patch, repeat procedure to do an UNIMARC install 1. Verify existence of FA framework --- .../unimarc_sample_fastadd_framework.yml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 installer/data/mysql/en/marcflavour/unimarc/optional/unimarc_sample_fastadd_framework.yml diff --git a/installer/data/mysql/en/marcflavour/unimarc/optional/unimarc_sample_fastadd_framework.yml b/installer/data/mysql/en/marcflavour/unimarc/optional/unimarc_sample_fastadd_framework.yml new file mode 100644 index 0000000000..0653a51e76 --- /dev/null +++ b/installer/data/mysql/en/marcflavour/unimarc/optional/unimarc_sample_fastadd_framework.yml @@ -0,0 +1,48 @@ +--- +# +# 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 3 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, see . + +# +# ************************************************************* +# FASTADD KOHA UNIMARC BIBLIOGRAPHIC FRAMEWORK +# ************************************************************* + +description: + - "'FA', a 'Fast Add' minimal UNIMARC framework suitable for ILL or on-the-fly cataloguing." + +tables: + - biblio_framework: + translatable: [ frameworktext ] + multiline: [] + rows: + - frameworkcode: FA + frameworktext: "Fast Add Framework" + +sql_statements: + - "INSERT IGNORE INTO marc_tag_structure (tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode) + SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'FA' + FROM marc_tag_structure + WHERE frameworkcode = '' AND + tagfield IN ('000', '001', '090', '099', '100', '200', '205', '210', '225', '995');" + + + - "INSERT IGNORE INTO marc_subfield_structure (tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue) + SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'FA', seealso, link, defaultvalue + FROM marc_subfield_structure + WHERE frameworkcode = '' AND + tagfield IN ('000', '001', '090', '099', '100', '200', '205', '210', '225', '995');" -- 2.25.1