Lines 591-597
subtest 'ModBiblio called from linker test' => sub {
Link Here
|
591 |
Koha::Caches->get_instance->clear_from_cache( "MarcSubfieldStructure-" ); |
591 |
Koha::Caches->get_instance->clear_from_cache( "MarcSubfieldStructure-" ); |
592 |
$schema->storage->txn_rollback; |
592 |
$schema->storage->txn_rollback; |
593 |
|
593 |
|
594 |
subtest 'GetCOinSBiblio and GetOpenURLResolverURL' => sub { |
594 |
subtest 'GetCOinSBiblio and get_openurl' => sub { |
595 |
plan tests => 2; |
595 |
plan tests => 2; |
596 |
|
596 |
|
597 |
$schema->storage->txn_begin; |
597 |
$schema->storage->txn_begin; |
Lines 612-620
subtest 'GetCOinSBiblio and GetOpenURLResolverURL' => sub {
Link Here
|
612 |
); |
612 |
); |
613 |
|
613 |
|
614 |
is( |
614 |
is( |
615 |
C4::Biblio::GetOpenURLResolverURL($record), |
615 |
$biblio->get_openurl, |
616 |
'https://koha.example.com/?ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Title%201&rft.au=Author%201', |
616 |
'https://koha.example.com/?ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Title%201&rft.au=Author%201', |
617 |
'GetOpenURLResolverURL returned right URL' |
617 |
'Koha::Biblio->get_openurl returned right URL' |
618 |
); |
618 |
); |
619 |
|
619 |
|
620 |
$schema->storage->txn_rollback; |
620 |
$schema->storage->txn_rollback; |
621 |
- |
|
|