Bugzilla – Attachment 58517 Details for
Bug 17196
Move marcxml out of the biblioitems table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17196 - (QA Followup) Add items() to Koha::Biblioitems
Bug-17196---QA-Followup-Add-items-to-KohaBiblioite.patch (text/plain), 1.01 KB, created by
Nick Clemens (kidclamp)
on 2016-12-29 18:23:45 UTC
(
hide
)
Description:
Bug 17196 - (QA Followup) Add items() to Koha::Biblioitems
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2016-12-29 18:23:45 UTC
Size:
1.01 KB
patch
obsolete
>From 1947b771286bf9e0c2653f5c189f9d169de6295e Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 29 Dec 2016 18:15:40 +0000 >Subject: [PATCH] Bug 17196 - (QA Followup) Add items() to Koha::Biblioitems > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > Koha/Biblioitem.pm | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > >diff --git a/Koha/Biblioitem.pm b/Koha/Biblioitem.pm >index 8d353c8..e6c96d3 100644 >--- a/Koha/Biblioitem.pm >+++ b/Koha/Biblioitem.pm >@@ -33,6 +33,24 @@ Koha::Biblioitem - Koha Biblioitem Object class > > =cut > >+=head3 items >+ >+my @items = $biblioitem->items(); >+my $items = $biblioitem->items(); >+ >+Returns the related Koha::Items object for this biblio in scalar context, >+or list of Koha::Item objects in list context. >+ >+=cut >+ >+sub items { >+ my ($self) = @_; >+ >+ $self->{_items} ||= Koha::Items->search( { biblionumber => $self->biblionumber() } ); >+ >+ return wantarray ? $self->{_items}->as_list : $self->{_items}; >+} >+ > =head3 type > > =cut >-- >2.1.4
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 17196
:
54910
|
54911
|
54912
|
54913
|
54914
|
54918
|
55856
|
55857
|
55858
|
55859
|
55860
|
55904
|
55905
|
55906
|
55907
|
55908
|
55921
|
55922
|
55950
|
55951
|
56038
|
57835
|
57836
|
57837
|
57838
|
57839
|
57840
|
57841
|
57842
|
58000
|
58007
|
58008
|
58023
|
58024
|
58025
|
58026
|
58027
|
58028
|
58029
|
58030
|
58031
|
58032
|
58037
|
58038
|
58039
|
58040
|
58041
|
58042
|
58043
|
58044
|
58045
|
58046
|
58047
|
58048
|
58504
|
58505
|
58506
|
58507
|
58508
|
58509
|
58510
|
58511
|
58512
|
58513
|
58514
|
58516
|
58517
|
58923
|
58924
|
58925
|
58926
|
58927
|
58928
|
58929
|
58930
|
58931
|
58932
|
58933
|
58934
|
58935
|
58936
|
58937
|
58938
|
58939
|
58943
|
58946
|
58947