Bugzilla – Attachment 43921 Details for
Bug 14670
Add 'cite' option to detail page in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14670: add test for C4::Record::marc2cites
Bug-14670-add-test-for-C4Recordmarc2cites.patch (text/plain), 881 bytes, created by
Katrin Fischer
on 2015-10-24 12:42:39 UTC
(
hide
)
Description:
Bug 14670: add test for C4::Record::marc2cites
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-10-24 12:42:39 UTC
Size:
881 bytes
patch
obsolete
>From ea281bd338d90de260ab224b3986dad92ea179f3 Mon Sep 17 00:00:00 2001 >From: Martin Stenberg <martin@xinxidi.net> >Date: Thu, 22 Oct 2015 16:43:30 +0200 >Subject: [PATCH] Bug 14670: add test for C4::Record::marc2cites > >--- > t/db_dependent/Record.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Record.t b/t/db_dependent/Record.t >index 8e806d7..590719e 100755 >--- a/t/db_dependent/Record.t >+++ b/t/db_dependent/Record.t >@@ -2,7 +2,7 @@ > > use Modern::Perl; > >-use Test::More tests => 12; >+use Test::More tests => 13; > use MARC::Record; > > use C4::Context; >@@ -141,6 +141,9 @@ is ($entity[0], "Björn", "Html umlauts"); > > > >+$marc->field('260')->add_subfields(a => 'Hogwarts'); >+my $cites = marc2cites($marc); >+is ($cites->{'Chicago'}, 'Rowling J.K, . 2011. Harry potter. Hogwarts: Reprints.', 'testing marc2cites'); > > > >-- >1.9.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 14670
:
41441
|
42971
|
43508
|
43770
|
43771
|
43828
|
43829
|
43919
|
43920
|
43921
|
43922
|
43923
|
43924
|
75679
|
75680
|
75681
|
75682
|
75683
|
161600
|
161601
|
161602
|
161603
|
161604
|
161605
|
161606
|
161607
|
166474
|
167528
|
167529
|
167530
|
167531
|
167532
|
167533
|
167534
|
167535
|
173515
|
173516
|
173517
|
173518
|
173519
|
173520
|
173521
|
173522
|
173523
|
173524
|
174453