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)
committerSrey Seng <sreyseng@gmail.com>
Thu, 1 May 2014 16:36:54 +0000 (09:36 -0700)
commit9aed4bdd3255844a4bc2f61e1ca5daee14bd8d25
treee557f040aa82c662cce0227ea8f25a18d88016dd
parentd8dc8b4e584b4ab1702e8e8fa9cce21ed9c2878f
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]