]> git.evergreen-ils.org Git - working/Evergreen.git/commit
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 22:53:41 +0000 (15:53 -0700)
commit663715d525dd21959cea463a705c619220b3afdd
treee61db51801650ae86691374ed69623ea1c432ce1
parent89f8e98846f4defbde632abafdb2a019151d6088
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]