Bugzilla – Attachment 145301 Details for
Bug 32583
Restore display of only one item in catalogue/moredetails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32583 - Restore display of only one item in catalogue/moredetails
0001-Bug-32583-Restore-display-of-only-one-item-in-catalo.patch (text/plain), 1.27 KB, created by
Michael Hafen
on 2023-01-13 17:51:07 UTC
(
hide
)
Description:
Bug 32583 - Restore display of only one item in catalogue/moredetails
Filename:
MIME Type:
Creator:
Michael Hafen
Created:
2023-01-13 17:51:07 UTC
Size:
1.27 KB
patch
obsolete
>From f4a1f696855e4c18456b6ed691b2ace3af634db0 Mon Sep 17 00:00:00 2001 >From: Michael Hafen <michael.hafen@washk12.org> >Date: Fri, 13 Jan 2023 10:49:46 -0700 >Subject: [PATCH] Bug 32583 - Restore display of only one item in > catalogue/moredetails >Content-Type: text/plain; charset="utf-8" > >Bug 31315 (Remove GetItemsInfo from moredetail) removed the code that limits >the items displayed to only one item if the itemnumber was passed as a >parameter to the page. >This restores that code. > >Test plan: > >1. find a title with multple items. >2. click on an items barcode in the holdings table on the title details page. >3. observe that all items are shown on the catalogue/moredetails page. >4. apply patch. >5. refresh (catalogue/moredetails) page. >6. observe that only the item for the barcode clicked on is shown. >--- > catalogue/moredetail.pl | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl >index 90f2de0b07..e99855a40f 100755 >--- a/catalogue/moredetail.pl >+++ b/catalogue/moredetail.pl >@@ -146,6 +146,9 @@ foreach ( keys %{$data} ) { > $template->param( "$_" => defined $data->{$_} ? $data->{$_} : '' ); > } > >+if ($itemnumber) { >+ @items = (grep {$_->itemnumber == $itemnumber} @items); >+} > my @item_data; > foreach my $item (@items){ > >-- >2.34.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 32583
:
145109
|
145111
|
145227
|
145299
|
145301
|
145585
|
145712