|
Line 0
Link Here
|
| 0 |
- |
1 |
use Modern::Perl; |
|
|
2 |
|
| 3 |
return { |
| 4 |
bug_number => "37446", |
| 5 |
description => "Fix holdingbranch and homebranch facet labels", |
| 6 |
up => sub { |
| 7 |
my ($args) = @_; |
| 8 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
| 9 |
|
| 10 |
# Do not update the label if different from the original one |
| 11 |
my $sth = $dbh->prepare( |
| 12 |
q{ |
| 13 |
UPDATE search_field |
| 14 |
SET label = ? |
| 15 |
WHERE name = ? AND label = ? |
| 16 |
} |
| 17 |
); |
| 18 |
$sth->execute( 'Holding libraries', 'holdingbranch', 'holdinglibrary' ); |
| 19 |
$sth->execute( 'Home libraries', 'homebranch', 'homelibrary' ); |
| 20 |
|
| 21 |
say $out "Updated search field configuration for holdingbranch and homebranch"; |
| 22 |
}, |
| 23 |
}; |