Bugzilla – Attachment 26720 Details for
Bug 11213
GetItemsInfo() called twice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug_11213: Added XSLTParse4Display() to Items test
bug11213-Added-XSLTParse4Display-to-Items-test.patch (text/plain), 1.71 KB, created by
Srdjan Jankovic
on 2014-04-01 06:17:38 UTC
(
hide
)
Description:
bug_11213: Added XSLTParse4Display() to Items test
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2014-04-01 06:17:38 UTC
Size:
1.71 KB
patch
obsolete
>From e15528f45a7f9f9984c9773948b058a2b57fcdd2 Mon Sep 17 00:00:00 2001 >From: Srdjan <srdjan@catalyst.net.nz> >Date: Tue, 1 Apr 2014 19:15:46 +1300 >Subject: [PATCH] bug_11213: Added XSLTParse4Display() to Items test > >--- > t/db_dependent/Items.t | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t >index 8c7cdf7..196219d 100755 >--- a/t/db_dependent/Items.t >+++ b/t/db_dependent/Items.t >@@ -21,6 +21,7 @@ use Modern::Perl; > use MARC::Record; > use C4::Biblio; > use C4::Branch; >+use C4::XSLT; > > use Test::More tests => 3; > >@@ -34,7 +35,7 @@ my ($branch1, $branch2) = keys %$branches; > > subtest 'General Add, Get and Del tests' => sub { > >- plan tests => 8; >+ plan tests => 10; > > # Start transaction > $dbh->{AutoCommit} = 0; >@@ -54,6 +55,16 @@ subtest 'General Add, Get and Del tests' => sub { > cmp_ok(scalar(@items_infos), '==', 1, "One item for biblionumber."); > cmp_ok($items_infos[0]{biblionumber}, '==', $bibnum, "Item has correct biblionumber."); > >+ C4::Context->set_preference('XSLTResultsDisplay', 'default'); >+ C4::Context->set_preference('OPACXSLTResultsDisplay', 'default'); >+ C4::Context->clear_syspref_cache(); >+ my $record = GetMarcBiblio($bibnum); >+ my $html = XSLTParse4Display($bibnum, $record, "OPACXSLTResultsDisplay", \@items_infos); >+ ok($html, "XSLTParse4Display( OPACXSLTResultsDisplay )"); >+ $html = XSLTParse4Display($bibnum, $record, "XSLTResultsDisplay", \@items_infos); >+ ok($html, "XSLTParse4Display( XSLTResultsDisplay )"); >+ >+ > # Get item. > my $getitem = GetItem($itemnumber); > cmp_ok($getitem->{'itemnumber'}, '==', $itemnumber, "Retrieved item has correct itemnumber."); >-- >1.8.3.2
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 11213
:
22800
|
26394
|
26430
|
26431
|
26499
|
26500
|
26695
|
26696
|
26713
|
26718
|
26719
|
26720
|
26721
|
29557
|
29558
|
29559
|
29560
|
29561
|
29562
|
29563
|
29564
|
38584
|
38585
|
38586
|
38587
|
38588
|
38589
|
38590
|
39023
|
39024
|
39025
|
39026
|
39027
|
39028
|
39029
|
42234
|
42235
|
42236
|
42237
|
42238
|
42239
|
42240
|
42425
|
49750
|
49751
|
49752
|
49753
|
49754
|
49755
|
50163
|
50164
|
50165
|
50166
|
50167
|
50168
|
54447
|
54448
|
54449
|
54450
|
54451
|
54452
|
57578
|
57579
|
57580
|
57581
|
57582
|
57583
|
62434
|
62435
|
62436
|
62437
|
62438
|
62439
|
68646
|
68818
|
68819
|
68820
|
68821
|
68822
|
68823