From b44ac38ce65e1c8a3bf016acf014ed3bd2cae4bb Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Thu, 29 Oct 2015 08:44:54 -0300 Subject: [PATCH] Bug 15077: Fix Fast Add framework to pass test This patch fixes tab location for FA frameworks. Not all subfields belongs to tab 0. To test: 1) On current master, with default and fasadd fw loaded, go to Home > Administration > MARC bibliographic framework test it fails 2) Apply the patch 3) Delete all fw, reload all, or just default (bib & auth) and fast add 4) Repeat 1, now test must pass This is only on master, so no need to database update. Signed-off-by: Hector Castro Works as advertised. MARC bibliographic framework test passed Ok. Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- .../mysql/en/marcflavour/marc21/optional/marc21_fastadd_framework.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/data/mysql/en/marcflavour/marc21/optional/marc21_fastadd_framework.sql b/installer/data/mysql/en/marcflavour/marc21/optional/marc21_fastadd_framework.sql index 6cc76216b9..508f3769b7 100644 --- a/installer/data/mysql/en/marcflavour/marc21/optional/marc21_fastadd_framework.sql +++ b/installer/data/mysql/en/marcflavour/marc21/optional/marc21_fastadd_framework.sql @@ -7,7 +7,7 @@ WHERE frameworkcode = '' AND tagfield IN ('000', '008', '010', '020', '022', '050', '082', '090', '099', '100', '245', '250', '260', '300', '500', '942', '952', '999'); 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, 0, authorised_value, authtypecode, value_builder, isurl, hidden, 'FA', 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', '008', '010', '020', '022', '050', '082', '090', '099', '100', '245', '250', '260', '300', '500', '942', '952', '999'); @@ -16,6 +16,7 @@ tagfield IN ('000', '008', '010', '020', '022', '050', '082', '090', '099', '100 -- REVERT HIDDEN FIELD TO ORIGINAL (pre copy ) VALUES -- ************************************************** +UPDATE marc_subfield_structure SET tab = 0 WHERE tagfield IN ('100','245','250','260','300','500','942') AND frameworkcode = 'FA'; UPDATE marc_subfield_structure SET hidden ='0' WHERE tagfield = '010' AND tagsubfield = '8' AND frameworkcode = 'FA'; UPDATE marc_subfield_structure SET hidden ='0' WHERE tagfield = '010' AND tagsubfield = 'b' AND frameworkcode = 'FA'; UPDATE marc_subfield_structure SET hidden ='0' WHERE tagfield = '010' AND tagsubfield = 'z' AND frameworkcode = 'FA'; -- 2.11.4.GIT