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)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 3 Jul 2013 11:18:32 +0000 (04:18 -0700)
commit61103a1f82dc0efd98a4629b0c650fa020ba73c8
tree09b21570fef0a636a8cfc33bb6245568703b3a56
parent58ccb8342b2d7291926fec0076fe68303313da90
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>
installer/data/mysql/en/marcflavour/marc21/mandatory/authorities_normal_marc21.sql