Bug 24421: Check if subfields are valid using the biblio tag
commit830a6cda7cf74b38f2abd01faf4e17a4ae6e2556
authorNick Clemens <nick@bywatersolutions.com>
Tue, 14 Jan 2020 16:13:25 +0000 (14 16:13 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 6 Feb 2020 16:49:50 +0000 (6 16:49 +0000)
treeb69e121a3f2944f069f0a4eaa5e0def442dd8c19
parent96a0f83a63dc8a2c8150523aaad88e86d2837853
Bug 24421: Check if subfields are valid using the biblio tag

To test:
 1 - Enable the sysprefs
     AutoCreateAuthorities
     BiblioAddsAuthorities
     CatalogModuleRelink
 2 - Open a record with a subject heading with a subdivision and add a new subfield, or add a new unauthroized heading to a record and save it
    e.g. 650$aChess$xOpenings$vFiction.
 3 - Save the record, note the created authority and that field is linked
 4 - Save the record again and note the authority number changes
 5 - Find and view the authority linked to the record
 6 - The record is for 'Chess', not Chess openings'
 7 - Search authorities for 'Chess' - note duplicated records
 8 - Apply patch, restart all
 9 - Save the record, auth number increases again, we shoudl create the correct record this time
10 - Save again, auth number should not change
11 - Search authorities and confirm the generated authority has the correct subfields

Signed-off-by: Myka Kennedy Stephens <mkstephens@lancasterseminary.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 05146daafcb267b312794e572e465692e2107c07)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Biblio.pm