Bugzilla – Attachment 88672 Details for
Bug 8995
Show OpenURL links in OPAC search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8995: (follow-up) Add one more test fot get_openurl
Bug-8995-follow-up-Add-one-more-test-fot-getopenur.patch (text/plain), 1.34 KB, created by
Josef Moravec
on 2019-04-24 22:11:38 UTC
(
hide
)
Description:
Bug 8995: (follow-up) Add one more test fot get_openurl
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-04-24 22:11:38 UTC
Size:
1.34 KB
patch
obsolete
>From d46431032cab2515c57f997cb278b43399f8383b Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Wed, 13 Mar 2019 08:30:32 +0000 >Subject: [PATCH] Bug 8995: (follow-up) Add one more test fot get_openurl > >Test plan: >prove t/db_dependent/Koha/Biblio.t > >Signed-off-by: Magnus Enger <magnus@libriotech.no> >--- > t/db_dependent/Koha/Biblio.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Biblio.t b/t/db_dependent/Koha/Biblio.t >index 86bcbf0b08..6b3faf94df 100644 >--- a/t/db_dependent/Koha/Biblio.t >+++ b/t/db_dependent/Koha/Biblio.t >@@ -111,7 +111,7 @@ subtest 'items() tests' => sub { > > subtest 'get_coins and get_openurl' => sub { > >- plan tests => 2; >+ plan tests => 3; > > $schema->storage->txn_begin; > >@@ -134,5 +134,12 @@ subtest 'get_coins and get_openurl' => sub { > 'Koha::Biblio->get_openurl returned right URL' > ); > >+ t::lib::Mocks::mock_preference("OpenURLResolverURL", "https://koha.example.com/?client_id=ci1"); >+ is( >+ $biblio->get_openurl, >+ 'https://koha.example.com/?client_id=ci1&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', >+ 'Koha::Biblio->get_openurl returned right URL' >+ ); >+ > $schema->storage->txn_rollback; > }; >-- >2.17.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8995
:
13141
|
22753
|
23625
|
23626
|
23627
|
24087
|
24088
|
24089
|
26899
|
26900
|
26901
|
29357
|
29358
|
29359
|
30385
|
30386
|
30387
|
30388
|
30389
|
30390
|
35747
|
35916
|
40647
|
44639
|
48371
|
48372
|
55131
|
55132
|
55133
|
55134
|
55135
|
55136
|
55882
|
64513
|
64514
|
64515
|
64516
|
64517
|
64518
|
64519
|
64532
|
64533
|
64534
|
64535
|
64536
|
64537
|
64538
|
86483
|
86484
|
86485
|
86486
|
86487
|
86488
|
86489
|
86490
|
86491
|
86492
|
86541
|
86542
|
86557
|
86558
|
86559
|
86601
|
86602
|
86603
|
86604
|
86605
|
86606
|
86607
|
86608
|
86609
|
86610
|
88665
|
88666
|
88667
|
88668
|
88669
|
88670
|
88671
|
88672
|
88673
|
88735
|
88736
|
88737
|
88738
|
88739
|
88740
|
88741
|
88742
|
88743
|
88744
|
89012
|
89013
|
89014
|
89015
|
89120