Bugzilla – Attachment 110074 Details for
Bug 26458
Get item details using only itemnumber
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26458: Get item details using only itemnumber
Bug-26458-Get-item-details-using-only-itemnumber.patch (text/plain), 1.78 KB, created by
Owen Leonard
on 2020-09-14 18:28:56 UTC
(
hide
)
Description:
Bug 26458: Get item details using only itemnumber
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2020-09-14 18:28:56 UTC
Size:
1.78 KB
patch
obsolete
>From f36f51ce8929e46c3c639afff2795ca176242836 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 14 Sep 2020 16:56:21 +0000 >Subject: [PATCH] Bug 26458: Get item details using only itemnumber > >This patch modifies moredetail.pl so that it can accept an itemnumber as >a single parameter. > >To test, apply the patch and view a bibliographic record in the >catalog which has one or more items. > > - In the table showing holdings, click the barcode to view the item > detail page for that item. > - In the location bar, modify the URL so that it uses only the > itemnumber parameter, e.g. > > /cgi-bin/koha/catalogue/moredetail.pl?itemnumber=1234 > > The page should load correctly, showing information about just that > item. >--- > catalogue/moredetail.pl | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > >diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl >index 9bf2f58ae2..dd913b122f 100755 >--- a/catalogue/moredetail.pl >+++ b/catalogue/moredetail.pl >@@ -72,13 +72,21 @@ if( $query->cookie("searchToOrder") ){ > } > > # get variables >+my $biblionumber; >+my $itemnumber; >+if( $query->param('itemnumber') && !$query->param('biblionumber') ){ >+ $itemnumber = $query->param('itemnumber'); >+ my $item = Koha::Items->find( $itemnumber ); >+ $biblionumber = $item->biblionumber; >+} else { >+ $biblionumber = $query->param('biblionumber'); >+} > >-my $biblionumber=$query->param('biblionumber'); > $biblionumber = HTML::Entities::encode($biblionumber); > my $title=$query->param('title'); > my $bi=$query->param('bi'); > $bi = $biblionumber unless $bi; >-my $itemnumber = $query->param('itemnumber'); >+$itemnumber = $query->param('itemnumber'); > my $data = &GetBiblioData($biblionumber); > my $dewey = $data->{'dewey'}; > my $showallitems = $query->param('showallitems'); >-- >2.11.0
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 26458
:
110074
|
110099
|
110122