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)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 20 May 2014 23:49:42 +0000 (16:49 -0700)
commit9842029f3d74301c2141dd0e42c0cce9744c5a31
treed3c1df7d29d3f126e96b959c75b80c2dc33ad0a2
parente99c01b381de054b0abafcf6d39724fd1555050e
LP#1312945: authority.calculate_authority_linking and multiple linked tags

The function "authority.calculate_authority_linking" was 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>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/sql/Pg/upgrade/XXXX.function.authority.calculate_authority_linking.sql [new file with mode: 0644]