Bug 10488 - New MARC21 authority tags and subfields should be propagated to non-defau...
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Thu, 27 Jun 2013 01:27:14 +0000 (22:27 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sat, 6 Jul 2013 23:59:02 +0000 (20:59 -0300)
commit76a126ee3d169912a92a54d5982bb345679c795c
tree719f30def67a793a9712456674b20698b59f6b94
parent3446a86f80313316c5f939e10b983c8703095030
Bug 10488 - New MARC21 authority tags and subfields should be propagated to non-default frameworks

As proposed by the report creator, this patch
rewites authorities_normal_marc21.sql
using default authority framework to build all
current authtypes, then deleting irrelevant tags.

It also updates default authority framework
to last update (April 2013) adding new or
updated tags/subtags.

All new tags/subtags from Bug 9826 and this
one are included in all authtypes.

Deleted tags reflect current situation except
for 7XX tags thatl must be present for all authtypes.

Only for new installs

To test:
1) Apply patch
2) Delete all authtypes
exec in database
    delete from auth_types;
    delete from auth_tag_structure;
    delete from auth_subfield_structure;
3) Insert new auth framework
4) Verify absent tags. This can be done running

    select tagfield as from auth_tag_structure
    where authtypecode ='' and tagfield not in
    (select tagfield from auth_tag_structure
    where authtypecode = 'AUTH_TYPE')

for each authtype ( UNIF_TITLE, TOPIC_TERM, etc.)
The attached PDF could be used as a reference,
all that is white or green for each authtype must be
in the list (except for white 7XX tags)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 61103a1f82dc0efd98a4629b0c650fa020ba73c8)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
installer/data/mysql/en/marcflavour/marc21/mandatory/authorities_normal_marc21.sql