Bug 19289: (follow-up) Add existing fields to the ACQ framework
Changes for other frameworks Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
198096ffab
commit
ad2b04001f
11 changed files with 242 additions and 0 deletions
|
@ -500,3 +500,25 @@ SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value,
|
|||
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength FROM marc_subfield_structure WHERE tagfield='952' AND frameworkcode='';
|
||||
|
||||
INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode)
|
||||
SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ'
|
||||
FROM marc_tag_structure
|
||||
WHERE frameworkcode="" AND tagfield IN (
|
||||
SELECT tagfield
|
||||
FROM marc_subfield_structure
|
||||
WHERE (
|
||||
kohafield="biblio.title"
|
||||
OR kohafield="biblio.author"
|
||||
OR kohafield="biblioitems.publishercode"
|
||||
OR kohafield="biblioitems.editionstatement"
|
||||
OR kohafield="biblio.copyrightdate"
|
||||
OR kohafield="biblioitems.isbn"
|
||||
OR kohafield="biblio.seriestitle"
|
||||
) AND frameworkcode=""
|
||||
);
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength
|
||||
FROM marc_subfield_structure
|
||||
WHERE frameworkcode=""
|
||||
AND kohafield IN ("biblio.title", "biblio.author", "biblioitems.publishercode", "biblioitems.editionstatement", "biblio.copyrightdate", "biblioitems.isbn", "biblio.seriestitle" );
|
||||
|
|
|
@ -500,3 +500,25 @@ SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value,
|
|||
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength FROM marc_subfield_structure WHERE tagfield='952' AND frameworkcode='';
|
||||
|
||||
INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode)
|
||||
SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ'
|
||||
FROM marc_tag_structure
|
||||
WHERE frameworkcode="" AND tagfield IN (
|
||||
SELECT tagfield
|
||||
FROM marc_subfield_structure
|
||||
WHERE (
|
||||
kohafield="biblio.title"
|
||||
OR kohafield="biblio.author"
|
||||
OR kohafield="biblioitems.publishercode"
|
||||
OR kohafield="biblioitems.editionstatement"
|
||||
OR kohafield="biblio.copyrightdate"
|
||||
OR kohafield="biblioitems.isbn"
|
||||
OR kohafield="biblio.seriestitle"
|
||||
) AND frameworkcode=""
|
||||
);
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength
|
||||
FROM marc_subfield_structure
|
||||
WHERE frameworkcode=""
|
||||
AND kohafield IN ("biblio.title", "biblio.author", "biblioitems.publishercode", "biblioitems.editionstatement", "biblio.copyrightdate", "biblioitems.isbn", "biblio.seriestitle" );
|
||||
|
|
|
@ -11,6 +11,28 @@ SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, koha
|
|||
FROM marc_subfield_structure
|
||||
WHERE frameworkcode = '';
|
||||
|
||||
INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode)
|
||||
SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ'
|
||||
FROM marc_tag_structure
|
||||
WHERE frameworkcode="" AND tagfield IN (
|
||||
SELECT tagfield
|
||||
FROM marc_subfield_structure
|
||||
WHERE (
|
||||
kohafield="biblio.title"
|
||||
OR kohafield="biblio.author"
|
||||
OR kohafield="biblioitems.publishercode"
|
||||
OR kohafield="biblioitems.editionstatement"
|
||||
OR kohafield="biblio.copyrightdate"
|
||||
OR kohafield="biblioitems.isbn"
|
||||
OR kohafield="biblio.seriestitle"
|
||||
) AND frameworkcode=""
|
||||
);
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength
|
||||
FROM marc_subfield_structure
|
||||
WHERE frameworkcode=""
|
||||
AND kohafield IN ("biblio.title", "biblio.author", "biblioitems.publishercode", "biblioitems.editionstatement", "biblio.copyrightdate", "biblioitems.isbn", "biblio.seriestitle" );
|
||||
|
||||
-- **************************************
|
||||
-- IGNORE CERTAINES SOUS-ZONES EXEMPLAIRE
|
||||
-- **************************************
|
||||
|
|
|
@ -31494,3 +31494,25 @@ SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value,
|
|||
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength FROM marc_subfield_structure WHERE tagfield='995' AND frameworkcode='';
|
||||
|
||||
INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode)
|
||||
SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ'
|
||||
FROM marc_tag_structure
|
||||
WHERE frameworkcode="" AND tagfield IN (
|
||||
SELECT tagfield
|
||||
FROM marc_subfield_structure
|
||||
WHERE (
|
||||
kohafield="biblio.title"
|
||||
OR kohafield="biblio.author"
|
||||
OR kohafield="biblioitems.publishercode"
|
||||
OR kohafield="biblioitems.editionstatement"
|
||||
OR kohafield="biblio.copyrightdate"
|
||||
OR kohafield="biblioitems.isbn"
|
||||
OR kohafield="biblio.seriestitle"
|
||||
) AND frameworkcode=""
|
||||
);
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength
|
||||
FROM marc_subfield_structure
|
||||
WHERE frameworkcode=""
|
||||
AND kohafield IN ("biblio.title", "biblio.author", "biblioitems.publishercode", "biblioitems.editionstatement", "biblio.copyrightdate", "biblioitems.isbn", "biblio.seriestitle" );
|
||||
|
|
|
@ -7894,3 +7894,25 @@ SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value,
|
|||
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength FROM marc_subfield_structure WHERE tagfield='995' AND frameworkcode='';
|
||||
|
||||
INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode)
|
||||
SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ'
|
||||
FROM marc_tag_structure
|
||||
WHERE frameworkcode="" AND tagfield IN (
|
||||
SELECT tagfield
|
||||
FROM marc_subfield_structure
|
||||
WHERE (
|
||||
kohafield="biblio.title"
|
||||
OR kohafield="biblio.author"
|
||||
OR kohafield="biblioitems.publishercode"
|
||||
OR kohafield="biblioitems.editionstatement"
|
||||
OR kohafield="biblioitems.publicationyear"
|
||||
OR kohafield="biblioitems.isbn"
|
||||
OR kohafield="biblio.seriestitle"
|
||||
) AND frameworkcode=""
|
||||
);
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength
|
||||
FROM marc_subfield_structure
|
||||
WHERE frameworkcode=""
|
||||
AND kohafield IN ("biblio.title", "biblio.author", "biblioitems.publishercode", "biblioitems.editionstatement", "biblioitems.publicationyear", "biblioitems.isbn", "biblio.seriestitle" );
|
||||
|
|
|
@ -500,3 +500,25 @@ SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value,
|
|||
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength FROM marc_subfield_structure WHERE tagfield='952' AND frameworkcode='';
|
||||
|
||||
INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode)
|
||||
SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ'
|
||||
FROM marc_tag_structure
|
||||
WHERE frameworkcode="" AND tagfield IN (
|
||||
SELECT tagfield
|
||||
FROM marc_subfield_structure
|
||||
WHERE (
|
||||
kohafield="biblio.title"
|
||||
OR kohafield="biblio.author"
|
||||
OR kohafield="biblioitems.publishercode"
|
||||
OR kohafield="biblioitems.editionstatement"
|
||||
OR kohafield="biblio.copyrightdate"
|
||||
OR kohafield="biblioitems.isbn"
|
||||
OR kohafield="biblio.seriestitle"
|
||||
) AND frameworkcode=""
|
||||
);
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength
|
||||
FROM marc_subfield_structure
|
||||
WHERE frameworkcode=""
|
||||
AND kohafield IN ("biblio.title", "biblio.author", "biblioitems.publishercode", "biblioitems.editionstatement", "biblio.copyrightdate", "biblioitems.isbn", "biblio.seriestitle" );
|
||||
|
|
|
@ -31486,3 +31486,25 @@ SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value,
|
|||
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength FROM marc_subfield_structure WHERE tagfield='952' AND frameworkcode='';
|
||||
|
||||
INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode)
|
||||
SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ'
|
||||
FROM marc_tag_structure
|
||||
WHERE frameworkcode="" AND tagfield IN (
|
||||
SELECT tagfield
|
||||
FROM marc_subfield_structure
|
||||
WHERE (
|
||||
kohafield="biblio.title"
|
||||
OR kohafield="biblio.author"
|
||||
OR kohafield="biblioitems.publishercode"
|
||||
OR kohafield="biblioitems.editionstatement"
|
||||
OR kohafield="biblio.copyrightdate"
|
||||
OR kohafield="biblioitems.isbn"
|
||||
OR kohafield="biblio.seriestitle"
|
||||
) AND frameworkcode=""
|
||||
);
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength
|
||||
FROM marc_subfield_structure
|
||||
WHERE frameworkcode=""
|
||||
AND kohafield IN ("biblio.title", "biblio.author", "biblioitems.publishercode", "biblioitems.editionstatement", "biblio.copyrightdate", "biblioitems.isbn", "biblio.seriestitle" );
|
||||
|
|
|
@ -4006,3 +4006,25 @@ SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value,
|
|||
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength FROM marc_subfield_structure WHERE tagfield='952' AND frameworkcode='';
|
||||
|
||||
INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode)
|
||||
SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ'
|
||||
FROM marc_tag_structure
|
||||
WHERE frameworkcode="" AND tagfield IN (
|
||||
SELECT tagfield
|
||||
FROM marc_subfield_structure
|
||||
WHERE (
|
||||
kohafield="biblio.title"
|
||||
OR kohafield="biblio.author"
|
||||
OR kohafield="biblioitems.publishercode"
|
||||
OR kohafield="biblioitems.editionstatement"
|
||||
OR kohafield="biblio.copyrightdate"
|
||||
OR kohafield="biblioitems.isbn"
|
||||
OR kohafield="biblio.seriestitle"
|
||||
) AND frameworkcode=""
|
||||
);
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength
|
||||
FROM marc_subfield_structure
|
||||
WHERE frameworkcode=""
|
||||
AND kohafield IN ("biblio.title", "biblio.author", "biblioitems.publishercode", "biblioitems.editionstatement", "biblio.copyrightdate", "biblioitems.isbn", "biblio.seriestitle" );
|
||||
|
|
|
@ -2218,3 +2218,25 @@ SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value,
|
|||
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength FROM marc_subfield_structure WHERE tagfield='995' AND frameworkcode='';
|
||||
|
||||
INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode)
|
||||
SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ'
|
||||
FROM marc_tag_structure
|
||||
WHERE frameworkcode="" AND tagfield IN (
|
||||
SELECT tagfield
|
||||
FROM marc_subfield_structure
|
||||
WHERE (
|
||||
kohafield="biblio.title"
|
||||
OR kohafield="biblio.author"
|
||||
OR kohafield="biblioitems.publishercode"
|
||||
OR kohafield="biblioitems.editionstatement"
|
||||
OR kohafield="biblioitems.publicationyear"
|
||||
OR kohafield="biblioitems.isbn"
|
||||
OR kohafield="biblio.seriestitle"
|
||||
) AND frameworkcode=""
|
||||
);
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength
|
||||
FROM marc_subfield_structure
|
||||
WHERE frameworkcode=""
|
||||
AND kohafield IN ("biblio.title", "biblio.author", "biblioitems.publishercode", "biblioitems.editionstatement", "biblioitems.publicationyear", "biblioitems.isbn", "biblio.seriestitle" );
|
||||
|
|
|
@ -4228,3 +4228,25 @@ SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value,
|
|||
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength FROM marc_subfield_structure WHERE tagfield='952' AND frameworkcode='';
|
||||
|
||||
INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode)
|
||||
SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ'
|
||||
FROM marc_tag_structure
|
||||
WHERE frameworkcode="" AND tagfield IN (
|
||||
SELECT tagfield
|
||||
FROM marc_subfield_structure
|
||||
WHERE (
|
||||
kohafield="biblio.title"
|
||||
OR kohafield="biblio.author"
|
||||
OR kohafield="biblioitems.publishercode"
|
||||
OR kohafield="biblioitems.editionstatement"
|
||||
OR kohafield="biblio.copyrightdate"
|
||||
OR kohafield="biblioitems.isbn"
|
||||
OR kohafield="biblio.seriestitle"
|
||||
) AND frameworkcode=""
|
||||
);
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength
|
||||
FROM marc_subfield_structure
|
||||
WHERE frameworkcode=""
|
||||
AND kohafield IN ("biblio.title", "biblio.author", "biblioitems.publishercode", "biblioitems.editionstatement", "biblio.copyrightdate", "biblioitems.isbn", "biblio.seriestitle" );
|
||||
|
|
|
@ -2221,4 +2221,26 @@ SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value,
|
|||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength FROM marc_subfield_structure WHERE tagfield='995' AND frameworkcode='';
|
||||
|
||||
INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode)
|
||||
SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ'
|
||||
FROM marc_tag_structure
|
||||
WHERE frameworkcode="" AND tagfield IN (
|
||||
SELECT tagfield
|
||||
FROM marc_subfield_structure
|
||||
WHERE (
|
||||
kohafield="biblio.title"
|
||||
OR kohafield="biblio.author"
|
||||
OR kohafield="biblioitems.publishercode"
|
||||
OR kohafield="biblioitems.editionstatement"
|
||||
OR kohafield="biblioitems.publicationyear"
|
||||
OR kohafield="biblioitems.isbn"
|
||||
OR kohafield="biblio.seriestitle"
|
||||
) AND frameworkcode=""
|
||||
);
|
||||
INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength)
|
||||
SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength
|
||||
FROM marc_subfield_structure
|
||||
WHERE frameworkcode=""
|
||||
AND kohafield IN ("biblio.title", "biblio.author", "biblioitems.publishercode", "biblioitems.editionstatement", "biblioitems.publicationyear", "biblioitems.isbn", "biblio.seriestitle" );
|
||||
|
||||
SET FOREIGN_KEY_CHECKS=1;
|
||||
|
|
Loading…
Reference in a new issue