Bugzilla – Attachment 72595 Details for
Bug 19943
Koha::Biblio - Remove GetBiblioItemData
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19943: Remove C4::Biblio::GetBiblioItemData
Bug-19943-Remove-C4BiblioGetBiblioItemData.patch (text/plain), 1.98 KB, created by
Tomás Cohen Arazi (tcohen)
on 2018-03-09 13:58:03 UTC
(
hide
)
Description:
Bug 19943: Remove C4::Biblio::GetBiblioItemData
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2018-03-09 13:58:03 UTC
Size:
1.98 KB
patch
obsolete
>From c2d2a42c61b464a7fa353a007b4fd332ea2d95fc Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 9 Jan 2018 14:38:10 -0300 >Subject: [PATCH] Bug 19943: Remove C4::Biblio::GetBiblioItemData > >It is no longer used. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > C4/Biblio.pm | 29 ----------------------------- > 1 file changed, 29 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index dac065608c..0242a88b56 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -67,7 +67,6 @@ BEGIN { > push @EXPORT, qw( > GetBiblioData > GetMarcBiblio >- GetBiblioItemData > GetBiblioItemInfosOf > GetBiblioItemByBiblioNumber > >@@ -722,34 +721,6 @@ sub GetBiblioData { > return ($data); > } # sub GetBiblioData > >-=head2 GetBiblioItemData >- >- $itemdata = &GetBiblioItemData($biblioitemnumber); >- >-Looks up the biblioitem with the given biblioitemnumber. Returns a >-reference-to-hash. The keys are the fields from the C<biblio>, >-C<biblioitems>, and C<itemtypes> tables in the Koha database, except >-that C<biblioitems.notes> is given as C<$itemdata-E<gt>{bnotes}>. >- >-=cut >- >-sub GetBiblioItemData { >- my ($biblioitemnumber) = @_; >- my $dbh = C4::Context->dbh; >- my $query = "SELECT *,biblioitems.notes AS bnotes >- FROM biblio LEFT JOIN biblioitems on biblio.biblionumber=biblioitems.biblionumber "; >- unless ( C4::Context->preference('item-level_itypes') ) { >- $query .= "LEFT JOIN itemtypes on biblioitems.itemtype=itemtypes.itemtype "; >- } >- $query .= " WHERE biblioitemnumber = ? "; >- my $sth = $dbh->prepare($query); >- my $data; >- $sth->execute($biblioitemnumber); >- $data = $sth->fetchrow_hashref; >- $sth->finish; >- return ($data); >-} # sub &GetBiblioItemData >- > =head2 GetBiblioItemByBiblioNumber > > NOTE : This function has been copy/paste from C4/Biblio.pm from head before zebra integration. >-- >2.16.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 19943
:
70384
|
70385
|
70386
|
72568
|
72569
|
72570
|
72593
|
72594
|
72595
|
72596
|
73189
|
73190
|
73191
|
73192
|
73194
|
73198
|
73199
|
73200