Bug 9427 - Withdrawn items show as available in staff client search results
Summary: Withdrawn items show as available in staff client search results
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Galen Charlton
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-18 16:44 UTC by Owen Leonard
Modified: 2014-12-07 20:02 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Example from master (40.07 KB, image/jpeg)
2013-01-22 16:52 UTC, Kyle M Hall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Leonard 2013-01-18 16:44:31 UTC
If a title has withdrawn items, those items are grouped with available ones in the staff client search results screen. The template expects to be able to handle withdrawn items:

[% IF ( SEARCH_RESULT.othercount ) %]
  <span class="unavailable">[% SEARCH_RESULT.othercount %] unavailable:</span>
  <ul>
  [% FOREACH other_items_loo IN SEARCH_RESULT.other_items_loop %]

...

[% IF ( other_items_loo.wthdrawn ) %](Withdrawn)[% END %]

I assume based on this that the problem is happening somewhere in Search.pm where these results are built.
Comment 1 Kyle M Hall 2013-01-22 16:52:13 UTC
Created attachment 14753 [details]
Example from master
Comment 2 Kyle M Hall 2013-01-22 16:53:58 UTC
Owen, this appears to be working in master. Can you take a look at the screenshot I've uploaded and verify that it looks correct?