Lines 574-580
subtest 'MarcFieldForCreatorAndModifier' => sub {
Link Here
|
574 |
Koha::Caches->get_instance->clear_from_cache( "MarcSubfieldStructure-" ); |
574 |
Koha::Caches->get_instance->clear_from_cache( "MarcSubfieldStructure-" ); |
575 |
$schema->storage->txn_rollback; |
575 |
$schema->storage->txn_rollback; |
576 |
|
576 |
|
577 |
subtest 'GetCOinSBiblio and GetOpenURLResolverURL' => sub { |
577 |
subtest 'GetCOinSBiblio and get_openurl' => sub { |
578 |
plan tests => 2; |
578 |
plan tests => 2; |
579 |
|
579 |
|
580 |
$schema->storage->txn_begin; |
580 |
$schema->storage->txn_begin; |
Lines 595-603
subtest 'GetCOinSBiblio and GetOpenURLResolverURL' => sub {
Link Here
|
595 |
); |
595 |
); |
596 |
|
596 |
|
597 |
is( |
597 |
is( |
598 |
C4::Biblio::GetOpenURLResolverURL($record), |
598 |
$biblio->get_openurl, |
599 |
'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', |
599 |
'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', |
600 |
'GetOpenURLResolverURL returned right URL' |
600 |
'Koha::Biblio->get_openurl returned right URL' |
601 |
); |
601 |
); |
602 |
|
602 |
|
603 |
$schema->storage->txn_rollback; |
603 |
$schema->storage->txn_rollback; |
604 |
- |
|
|