Bug 20722

Summary: Searching only for an ITEMTYPECAT itemtype is impossible
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: SearchingAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: fridolin.somers, jonathan.druart
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19978
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 10937    
Bug Blocks:    
Attachments: Bug 20722: Display search results when searching only by ITEMTYPECAT
Bug 20722: Display search results when searching only by ITEMTYPECAT
Bug 20722: Display search results when searching only by ITEMTYPECAT

Description Katrin Fischer 2018-05-07 17:27:32 UTC
Searching for only the itemtype usually works, but not for itemtypes that are actually ITEMTYPECAT categories grouping several itemtypes together. In this case you will need to add a second search criteria for the search to work. Only searching for the group will return you to the advanced search page.

To test:
- Create an entry for the ITEMTYPECAT authorised value category. 
  Make sure to fill in the OPAC description.
- Go to administration > itemtypes and add the new category to 2 item types.
- Go to the OPAC and check that the advanced search shows your new itemtype
  group instead of the individual itemtypes.
- Check the checkbox and Search.
- You will be returned to the advanced search page without error.
- Search for another ungrouped itemtype, it will return correct search results.
Comment 1 Jonathan Druart 2018-05-07 18:07:47 UTC
Created attachment 75140 [details] [review]
Bug 20722: Display search results when searching only by ITEMTYPECAT

- Create an entry for the ITEMTYPECAT authorised value category.
  Make sure to fill in the OPAC description.
- Go to administration > itemtypes and add the new category to 2 item types.
- Go to the OPAC and check that the advanced search shows your new itemtype
  group instead of the individual itemtypes.
- Check the checkbox and Search.
Comment 2 Mark Tompsett 2018-05-08 13:24:17 UTC
Created attachment 75153 [details] [review]
Bug 20722: Display search results when searching only by ITEMTYPECAT

- Create an entry for the ITEMTYPECAT authorised value category.
  Make sure to fill in the OPAC description.
- Go to administration > itemtypes and add the new category to 2 item types.
- Go to the OPAC and check that the advanced search shows your new itemtype
  group instead of the individual itemtypes.
- Check the checkbox and Search.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Comment 3 Katrin Fischer 2018-05-10 18:07:28 UTC
Created attachment 75241 [details] [review]
Bug 20722: Display search results when searching only by ITEMTYPECAT

- Create an entry for the ITEMTYPECAT authorised value category.
  Make sure to fill in the OPAC description.
- Go to administration > itemtypes and add the new category to 2 item types.
- Go to the OPAC and check that the advanced search shows your new itemtype
  group instead of the individual itemtypes.
- Check the checkbox and Search.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 4 Jonathan Druart 2018-05-11 14:13:17 UTC
Pushed to master for 18.05, thanks to everybody involved!
Comment 5 Katrin Fischer 2018-06-01 11:14:37 UTC
Could this be considered for backporting to 17.11?
Comment 6 Fridolin Somers 2018-06-04 11:11:36 UTC
Pushed to 17.11.x for 17.11.07
Comment 7 Katrin Fischer 2020-04-19 00:59:12 UTC
*** Bug 17531 has been marked as a duplicate of this bug. ***