Bug 21261 - OpacResults XSLT does not honor OpacHiddenItems
Summary: OpacResults XSLT does not honor OpacHiddenItems
Status: RESOLVED DUPLICATE of bug 21014
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: master
Hardware: All All
: P5 - low minor (vote)
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-23 13:59 UTC by Caroline Cyr La Rose
Modified: 2020-01-11 18:12 UTC (History)
3 users (show)

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


Attachments
In OPACResults, the withdrawn item is shown (16.77 KB, image/png)
2018-08-23 13:59 UTC, Caroline Cyr La Rose
Details
In OPACDetails, the withdrawn item does not appear (88.41 KB, image/png)
2018-08-23 14:00 UTC, Caroline Cyr La Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Caroline Cyr La Rose 2018-08-23 13:59:56 UTC
Created attachment 78096 [details]
In OPACResults, the withdrawn item is shown

In the case where a record has more than one item and one of them is supposed to be hidden as per opachiddenitems, the record appears in the results list and shows the supposedly hidden item.

Expected result: in the result list, the record should appear and show only the items not hidden

To reproduce :
1- Go to Administration > Global System Preferences
2- Search for opachiddenitems
3- Add the following value to the system preference: withdrawn: [1]
4- Click on "Save all OPAC preferences"
5- In the search bar, click on "Search the catalog"
6- Search for anything
7- Find a record with two (or more) items, OR
7a- Click on "Edit items"
7b- Add an item by filling in the form
8- Change withdrawn status (field 0) for one of the items, the other(s) must be available
9- Go to the OPAC
10- Do a search large enough to get a couple of results in addition to the record modified above
11- In the results list, available items appear in green and the withdrawn item appears in red
12- Go into the detailed record
13- The withdrawn item does not appear
Comment 1 Caroline Cyr La Rose 2018-08-23 14:00:34 UTC
Created attachment 78097 [details]
In OPACDetails, the withdrawn item does not appear
Comment 2 Katrin Fischer 2020-01-11 18:12:04 UTC

*** This bug has been marked as a duplicate of bug 21014 ***