LP#1312945: authority.calculate_authority_linking and multiple linked tags
authorSrey Seng <sreyseng@gmail.com>
Wed, 30 Apr 2014 22:20:17 +0000 (15:20 -0700)
committerMike Rylander <mrylander@gmail.com>
Wed, 30 Apr 2014 22:38:35 +0000 (18:38 -0400)
commit83659671126be0371f650c24357bbab1f9268294
tree8ea980ffa6ae210ac1709d6285558bb95657c448
parenta68a9a0e21f306190926391aa9f3b683dfd0e8dc
LP#1312945: authority.calculate_authority_linking and multiple linked tags

The function "authority.calculate_authority_linking" is not able to deal with
situations where there are multiple marc tags that are linkable. The function
only process the first tag that contains a linking_subfield and returns that
to be inserted into the authority_linking table, even when there are more than
one of the same tag with linking_subfield.

Added an additional loop to loop through each tag, for situations where there are
multiples of each tag.

Signed-off-by: Srey Seng <sreyseng@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/upgrade/XXXX.function.authority.calculate_authority_linking.sql [new file with mode: 0644]