Bugzilla – Attachment 138090 Details for
Bug 29697
Replace GetMarcBiblio occurrences with $biblio->metadata->record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29697: Fix t/db_dependent/Search.t
Bug-29697-Fix-tdbdependentSearcht.patch (text/plain), 2.17 KB, created by
Tomás Cohen Arazi
on 2022-07-25 13:17:22 UTC
(
hide
)
Description:
Bug 29697: Fix t/db_dependent/Search.t
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2022-07-25 13:17:22 UTC
Size:
2.17 KB
patch
obsolete
>From 24b7675dac561ae34bf4bbf0295fbf7d008c3e8a Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 25 Jul 2022 10:16:48 -0300 >Subject: [PATCH] Bug 29697: Fix t/db_dependent/Search.t > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > C4/Search.pm | 6 ++++++ > .../marc21/zebraexport/large_biblio/exported_records.xml | 4 ++++ > 2 files changed, 10 insertions(+) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 0ee8b5b8d0..5abf66b842 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1800,6 +1800,12 @@ sub searchResults { > foreach my $code ( keys %subfieldstosearch ) { > $item->{$code} = $field->subfield( $subfieldstosearch{$code} ); > } >+ >+ unless ( $item->{itemnumber} ) { >+ warn "MARC item without itemnumber retrieved for biblio ($oldbiblio->{biblionumber})"; >+ next; >+ } >+ > $item->{description} = $itemtypes{ $item->{itype} }{translated_description} if $item->{itype}; > > # OPAC hidden items >diff --git a/t/db_dependent/data/marc21/zebraexport/large_biblio/exported_records.xml b/t/db_dependent/data/marc21/zebraexport/large_biblio/exported_records.xml >index 4a58f8678e..10d79a1f98 100644 >--- a/t/db_dependent/data/marc21/zebraexport/large_biblio/exported_records.xml >+++ b/t/db_dependent/data/marc21/zebraexport/large_biblio/exported_records.xml >@@ -1662,18 +1662,22 @@ > <datafield tag="952" ind1=" " ind2=" "> > <subfield code="p">aaabbb</subfield> > <subfield code="7">1</subfield> >+ <subfield code="9">123</subfield> > </datafield> > <datafield tag="952" ind1=" " ind2=" "> > <subfield code="p">bbbccc</subfield> > <subfield code="7">0</subfield> >+ <subfield code="9">124</subfield> > </datafield> > <datafield tag="952" ind1=" " ind2=" "> > <subfield code="p">cccddd</subfield> > <subfield code="7">1</subfield> >+ <subfield code="9">125</subfield> > </datafield> > <datafield tag="999" ind1=" " ind2=" "> > <subfield code="c">300</subfield> > <subfield code="d">300</subfield> >+ <subfield code="9">126</subfield> > </datafield> > </record> > </collection> >-- >2.37.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 29697
:
129757
|
129758
|
129759
|
129760
|
129761
|
131868
|
131869
|
131870
|
131871
|
131872
|
131873
|
134066
|
134067
|
134068
|
134069
|
134070
|
134071
|
135574
|
135575
|
135576
|
135577
|
135578
|
135579
|
135580
|
135662
|
135663
|
135664
|
135665
|
135666
|
135667
|
135668
|
135669
|
135670
|
135671
|
135672
|
135673
|
135797
|
135798
|
135799
|
135800
|
135801
|
135802
|
135978
|
135979
|
135980
|
135981
|
135982
|
137835
|
137836
|
137837
|
137838
|
137839
|
137840
|
137894
|
137918
|
137919
|
137920
|
137921
|
137922
|
137923
|
137924
|
137948
|
138057
|
138076
|
138077
|
138078
|
138079
|
138080
|
138081
|
138089
| 138090 |
138804
|
139127
|
140007
|
140008