Bug 32583: Restore display of only one item in catalogue/moredetails
authorMichael Hafen <michael.hafen@washk12.org>
Fri, 13 Jan 2023 17:49:46 +0000 (10:49 -0700)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 27 Jan 2023 19:21:37 +0000 (16:21 -0300)
commitd88e966adadc332b21c30993fd9d5edd5e907c0f
treedd0f65ba16fb41afb0ee58b69e73735904af074d
parent0f2cf9f44018cd52a2616a104aa94d02148786c2
Bug 32583: Restore display of only one item in catalogue/moredetails

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.

Signed-off-by: Amaury GAU <amaury.gau@bulac.fr>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
catalogue/moredetail.pl