Bugzilla – Attachment 63125 Details for
Bug 18276
Koha::Biblio - Remove GetBiblioFromItemNumber
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18276: Remove the C4::Biblio::GetBiblioFromItemNumber subroutine
Bug-18276-Remove-the-C4BiblioGetBiblioFromItemNumb.patch (text/plain), 1.99 KB, created by
Jonathan Druart
on 2017-05-04 15:09:37 UTC
(
hide
)
Description:
Bug 18276: Remove the C4::Biblio::GetBiblioFromItemNumber subroutine
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-05-04 15:09:37 UTC
Size:
1.99 KB
patch
obsolete
>From 23b624ad76fd869de4d7868bebbc3d85b9cfce1c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 15 Mar 2017 12:21:16 -0300 >Subject: [PATCH] Bug 18276: Remove the C4::Biblio::GetBiblioFromItemNumber > subroutine > >--- > C4/Biblio.pm | 40 ---------------------------------------- > 1 file changed, 40 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index d52d780..295fad7 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -69,7 +69,6 @@ BEGIN { > GetBiblioItemData > GetBiblioItemInfosOf > GetBiblioItemByBiblioNumber >- GetBiblioFromItemNumber > GetBiblionumberFromItemnumber > > &GetRecordValue >@@ -787,45 +786,6 @@ sub GetBiblionumberFromItemnumber { > return ($result); > } > >-=head2 GetBiblioFromItemNumber >- >- $item = &GetBiblioFromItemNumber($itemnumber,$barcode); >- >-Looks up the item with the given itemnumber. if undef, try the barcode. >- >-C<&itemnodata> returns a reference-to-hash whose keys are the fields >-from the C<biblio>, C<biblioitems>, and C<items> tables in the Koha >-database. >- >-=cut >- >-#' >-sub GetBiblioFromItemNumber { >- my ( $itemnumber, $barcode ) = @_; >- my $dbh = C4::Context->dbh; >- my $sth; >- if ($itemnumber) { >- $sth = $dbh->prepare( >- "SELECT * FROM items >- LEFT JOIN biblio ON biblio.biblionumber = items.biblionumber >- LEFT JOIN biblioitems ON biblioitems.biblioitemnumber = items.biblioitemnumber >- WHERE items.itemnumber = ?" >- ); >- $sth->execute($itemnumber); >- } else { >- $sth = $dbh->prepare( >- "SELECT * FROM items >- LEFT JOIN biblio ON biblio.biblionumber = items.biblionumber >- LEFT JOIN biblioitems ON biblioitems.biblioitemnumber = items.biblioitemnumber >- WHERE items.barcode = ?" >- ); >- $sth->execute($barcode); >- } >- my $data = $sth->fetchrow_hashref; >- $sth->finish; >- return ($data); >-} >- > =head2 GetISBDView > > $isbd = &GetISBDView({ >-- >2.9.3
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 18276
:
61122
|
61123
|
61124
|
61125
|
61126
|
61177
|
61178
|
61179
|
61180
|
61181
|
62081
|
62082
|
62083
|
62084
|
62085
|
62476
|
62477
|
62478
|
62479
|
62480
|
62481
|
63121
|
63122
|
63123
|
63124
|
63125
|
63126
|
63166
|
63294
|
63295
|
63296
|
63297
|
63298
|
63299
|
63300
|
64748
|
64809
|
64810
|
64811
|
64812
|
64813
|
64814
|
64815
|
64816
|
64817
|
64878
|
64879
|
64880
|
64881
|
64882
|
64883
|
64884
|
64885
|
64886
|
64887
|
64974
|
64975