View | Details | Raw Unified | Return to bug 30373
Collapse All | Expand All

(-)a/installer/data/mysql/en/marcflavour/unimarc/optional/unimarc_sample_fastadd_framework.yml (-1 / +48 lines)
Line 0 Link Here
0
- 
1
---
2
#
3
#  Copyright 2020 Koha Development Team
4
#
5
#  This file is part of Koha.
6
#
7
# Koha is free software; you can redistribute it and/or modify it
8
# under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 3 of the License, or
10
# (at your option) any later version.
11
#
12
# Koha is distributed in the hope that it will be useful, but
13
# WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
16
#
17
# You should have received a copy of the GNU General Public License
18
# along with Koha; if not, see <http://www.gnu.org/licenses>.
19
20
#
21
# *************************************************************
22
#      FASTADD KOHA UNIMARC BIBLIOGRAPHIC FRAMEWORK
23
# *************************************************************
24
25
description:
26
  - "'FA', a 'Fast Add' minimal UNIMARC framework suitable for ILL or on-the-fly cataloguing."
27
28
tables:
29
  - biblio_framework:
30
      translatable: [ frameworktext ]
31
      multiline: []
32
      rows:
33
        - frameworkcode: FA
34
          frameworktext: "Fast Add Framework"
35
36
sql_statements:
37
  - "INSERT IGNORE INTO marc_tag_structure (tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode)
38
    SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'FA'
39
    FROM marc_tag_structure
40
    WHERE frameworkcode = '' AND
41
    tagfield IN ('000', '001', '090', '099', '100', '200', '205', '210', '225', '995');"
42
43
44
  - "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)
45
    SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'FA', seealso, link, defaultvalue
46
    FROM marc_subfield_structure
47
    WHERE frameworkcode = '' AND
48
    tagfield IN ('000', '001', '090', '099', '100', '200', '205', '210', '225', '995');"

Return to bug 30373