Bug 30677: Use lookahead in regex for biblioitem replacement
This patch takes Andrew's suggested fix using a lookahead regex to correct our biblio vs biblioitem table name replacements. Please use the preceeding unit test patch proposed by Jonathan to test. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
de4fcc91f0
commit
be3bd8af8b
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ UI.
|
|||
sub table_name_fixer {
|
||||
my ( $self, $q ) = @_;
|
||||
|
||||
$q =~ s|biblio\.|biblio\.biblioitem\.|g
|
||||
$q =~ s{biblio\.(?=isbn|ean|publisher)}{biblio\.biblioitem\.}g
|
||||
if $q =~ m/.*(isbn|ean|publisher).*/;
|
||||
|
||||
return $q;
|
||||
|
|
Loading…
Reference in a new issue