Bug 13516

Summary: Display issue for search results with items both checkout out and lost
Product: Koha Reporter: Kyle M Hall (khall) <kyle>
Component: SearchingAssignee: Kyle M Hall (khall) <kyle>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: chris, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 13516 - Tidy relevant code black
Bug 13516 - Display issue for search results with items both checkout out and lost
Bug 13516 - Tidy relevant code block
Bug 13516 - Display issue for search results with items both checkout out and lost
[SIGNED OFF] Bug 13516 - Tidy relevant code block
[SIGNED OFF] Bug 13516 - Display issue for search results with items both checkout out and lost
[PASSED QA] Bug 13516 - Display issue for search results with items both checkout out and lost
[PASSED QA] Bug 13516 - Tidy relevant code block
[PASSED QA] Bug 13516 - Display issue for search results with items both checkout out and lost

Description Kyle M Hall (khall) 2015-01-05 15:10:45 UTC
In the staff search results, if an item is both checked out and lost, the result will appears as two item lines like this:

http://screencast.com/t/2Hczv1jhL

when it should look like this:

http://screencast.com/t/JDV2cGNq
Comment 1 Kyle M Hall (khall) 2015-01-05 15:14:24 UTC Comment hidden (obsolete)
Comment 2 Kyle M Hall (khall) 2015-01-05 15:14:31 UTC Comment hidden (obsolete)
Comment 3 Kyle M Hall (khall) 2015-01-05 15:20:22 UTC Comment hidden (obsolete)
Comment 4 Kyle M Hall (khall) 2015-01-05 15:20:29 UTC Comment hidden (obsolete)
Comment 5 Nick Clemens (kidclamp) 2015-01-09 23:06:12 UTC Comment hidden (obsolete)
Comment 6 Nick Clemens (kidclamp) 2015-01-09 23:06:27 UTC Comment hidden (obsolete)
Comment 7 Katrin Fischer 2015-01-21 07:14:47 UTC
I am not sure I understand this correctly. 

1) With and without the patch my staff result list for the checked out item with lost status = 1 looks the same:

2 items, 1 available:

    Books Midway Book Cart (1)
    Books

1 on loan:

    Computer Files Midway Book Cart (1) date due: 11/01/2015
    Computer Files


Should we not include the information that the item is lost somehow?

Please take a look and explain!
Comment 8 Kyle M Hall (khall) 2015-04-16 15:33:28 UTC
This patch fixes the mangled display. With the patch, you will still see the lost status. See this screenshot: http://content.screencast.com/users/kylemhall/folders/Jing/media/891a082f-1c71-4207-b01c-44b27b465fd8/00000017.png

(In reply to Katrin Fischer from comment #7)
> I am not sure I understand this correctly. 
> 
> 1) With and without the patch my staff result list for the checked out item
> with lost status = 1 looks the same:
> 
> 2 items, 1 available:
> 
>     Books Midway Book Cart (1)
>     Books
> 
> 1 on loan:
> 
>     Computer Files Midway Book Cart (1) date due: 11/01/2015
>     Computer Files
> 
> 
> Should we not include the information that the item is lost somehow?
> 
> Please take a look and explain!
Comment 9 Katrin Fischer 2015-05-03 16:24:12 UTC Comment hidden (obsolete)
Comment 10 Katrin Fischer 2015-05-03 16:25:17 UTC
Created attachment 38777 [details] [review]
[PASSED QA] Bug 13516 - Tidy relevant code block

Signed-off-by: Nick <nick@quecheelibrary.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 11 Katrin Fischer 2015-05-03 16:25:36 UTC
Created attachment 38778 [details] [review]
[PASSED QA] Bug 13516 - Display issue for search results with items both checkout out and lost

If the staff search results, if an item is both checked out and lost,
the result will appear as two item lines where one line has the lost
status and the other line has the rest of the item's data.

Test Plan:
1) Check an item out to a patron
2) Mark the item as lost *without* removing the item from the patron's
   record, either by using longoverdue.pl or by editing the itemlost
   field in the database directly.
3) Perform a search where that item will be in the results
4) Note the improper display of the item's data
5) Apply this patch set
6) Reload the search restults
7) Note the item now displays correctly

Signed-off-by: Nick <nick@quecheelibrary.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 12 Tomás Cohen Arazi (tcohen) 2015-05-07 15:35:38 UTC
Patches pushed to master.

Thanks Kyle!
Comment 13 Chris Cormack 2015-05-17 06:52:05 UTC
Pushed to 3.18.x will be in 3.18.7