Bug 7850 - Fix values for hidden in subfields of 952 + maxlength in NORMARC frameworks
authorMagnus Enger <magnus@enger.priv.no>
Fri, 30 Mar 2012 07:59:03 +0000 (09:59 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 4 Apr 2012 12:54:50 +0000 (14:54 +0200)
commit58e98c3c38528e734ec4e5182ce8513f14157a5e
tree630bfea960947b1d9c1a8d4722898462b565ae01
parent91898359cb7581ffaaae0a2dac48273068a9aad7
Bug 7850 - Fix values for hidden in subfields of 952 + maxlength in NORMARC frameworks

This patch does three things:

- Add a copyright comment to normarc_fastadd_framework.sql
- Change the value of marc_subfield_structure.hidden from -1 to 0 for
  several subfields of 952, in both the default and fast add framework,
  using this SQL statement:
  update marc_subfield_structure set hidden = 0 where tagfield = '952' and hidden = -1;
- Add the maxlength column introduced by bug 7263 to all rows in
  marc_subfield_structure, setting the following maxlengths:
  000 = 24
  008 = 40
  all other subfields = 9999

The format of the SQL files is the one that is produced by exporting the
frameworks from the Web UI, with added copyright comments at the top.

To test:
- Install nb-NO
- Run through the web installer in Norwegian on an empty database
- Select NORMARC as the marcflavour
- Be sure to select the fast add framework ("Rammeverk for
  hurtigkatalogisering" under "Valgritt")
- Check in Home › Administration › MARC Frameworks that 000 and 008
  for both frameworks have the right length
- Add a dummy record so you get to the item edit screen and check that
  the form for subfields looks good. The subfields that are shown
  should be 01234578abcdefghjoptuvwyz and all subfields should have
  a text box or a dropdown associated with them. Check this for
  for both the default and fast add frameworks

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Walked through the test plan, seems to work well.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
installer/data/mysql/nb-NO/marcflavour/normarc/Obligatorisk/normarc.sql
installer/data/mysql/nb-NO/marcflavour/normarc/Valgfritt/normarc_fastadd_framework.sql