Bug 28321

Summary: Use template block for display of items in search results
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: david, kyle
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
21.11.00
Bug Depends on:    
Bug Blocks: 31071    
Attachments: Bug 28321: Use template block for display of items in search results
Bug 28321: Use template block for display of items in search results
Bug 28321: Use template block for display of items in search results
Bug 28321: Use template block for display of items in search results

Description Owen Leonard 2021-05-11 15:42:49 UTC
The staff interface search results template has three blocks of template markup which are essentially duplicates of each other. We can simplify the page by creating a reusable block for this.

In doing so I plan to add additional markup to improve options for styling and add some CSS to handle some inline styles.
Comment 1 Owen Leonard 2021-05-12 10:49:40 UTC Comment hidden (obsolete)
Comment 2 David Nind 2021-09-25 04:28:38 UTC Comment hidden (obsolete)
Comment 3 Owen Leonard 2021-09-27 17:23:59 UTC Comment hidden (obsolete)
Comment 4 David Nind 2021-09-28 12:20:57 UTC Comment hidden (obsolete)
Comment 5 Katrin Fischer 2021-10-03 15:05:10 UTC
Created attachment 125684 [details] [review]
Bug 28321: Use template block for display of items in search results

This patch updates the staff interface catalog search results to use
a new reusable BLOCK for displaying item information: Available items,
checked-out items, and unavailable items.

Some style has been updated, and an old GIF image has been replaced with
an SVG. The hold ratios template has been updated to accommodate this
change.

To test, apply the patch and rebuild the staff interface CSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client).

- Perform a catalog search in the staff interface which will return
  multiple results with multiple items each. For thorough testing, some
  records should have items which are checked out, available, or
  lost/notforloan.
- On the search results page, confirm that item information is accurate
  and readable.
- Test with  item-level_itypes on and off.
- Test with noItemTypeImages on and off.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 6 Jonathan Druart 2021-10-06 08:37:27 UTC
Pushed to master for 21.11, thanks to everybody involved!