Lines 520-525
ok(MARC::Record::new_from_xml($results_hashref->{biblioserver}->{RECORDS}->[0],'
Link Here
|
520 |
my $fw = C4::Biblio::GetFrameworkCode($biblio_id); |
520 |
my $fw = C4::Biblio::GetFrameworkCode($biblio_id); |
521 |
|
521 |
|
522 |
my $dbh = C4::Context->dbh; |
522 |
my $dbh = C4::Context->dbh; |
|
|
523 |
# FIXME This change is revert in END |
523 |
# Hide subfield 'p' in OPAC |
524 |
# Hide subfield 'p' in OPAC |
524 |
$dbh->do(qq{ |
525 |
$dbh->do(qq{ |
525 |
UPDATE marc_subfield_structure |
526 |
UPDATE marc_subfield_structure |
Lines 978-980
subtest 'FindDuplicate' => sub {
Link Here
|
978 |
# Make sure that following tests are not using our config settings |
979 |
# Make sure that following tests are not using our config settings |
979 |
Koha::Caches->get_instance('config')->flush_all; |
980 |
Koha::Caches->get_instance('config')->flush_all; |
980 |
|
981 |
|
981 |
- |
982 |
END { |
|
|
983 |
my $dbh = C4::Context->dbh; |
984 |
# Restore visibility of subfields in OPAC |
985 |
$dbh->do(q{ |
986 |
UPDATE marc_subfield_structure |
987 |
SET hidden=0 |
988 |
WHERE tagfield=952 AND |
989 |
( tagsubfield IN ('p', 'y') ) |
990 |
}); |
991 |
|
992 |
Koha::Caches->get_instance->flush_all; |
993 |
}; |