If (for some reason) the user has created more than one matching rule
with the 'ISSN' code, the updatedabase.pl script fails, because it was
written with the default data in mind, and didn't consider the scenario
described above.
Thanks Liz for pointing this out!
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
$dbh->do(q{
UPDATE matchpoints
SET search_index='issn'
- WHERE matcher_id=(SELECT matcher_id FROM marc_matchers WHERE code = 'ISSN')
+ WHERE matcher_id IN (SELECT matcher_id FROM marc_matchers WHERE code = 'ISSN')
});
print "Upgrade to $DBversion done (Bug 14472: Wrong ISSN search index in record matching rules)\n";
SetVersion($DBversion);