http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10937
M. Tompsett <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #28576|0 |1 is obsolete| | --- Comment #30 from M. Tompsett <[email protected]> --- Created attachment 28579 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28579&action=edit Bug 10937 - Option to hide and group itemtypes from advanced search It's possible to hide the records and the items, but the advanced search form is a bit trickier. It would be nice if we could specify which itemtypes are offered as search options in the OPAC advanced search form. To solve this, two new columns will be added in the item type. 1) Display in OPAC Default : Yes Set to NO to hide and itemtype in the opac's advanced search. 2) Search category The search category allows library to group some similar itemtypes in a single checkbox in the opac. The categories are defined in an Authorized value. For Example, itemtypes DVD, VHS could use the Video category. Searching for Video in the OPAC would returns the DVD and VHS items. Initial coding by [email protected] with [email protected] providing extra testing, patching, squashing, and rebasing. CURRENT TEST PLAN ------------------ 0) Back up database, so you can reset and retest easily. ;) 1) Run Koha QA tool. 2) Apply the patch SETUP 3) run ./installer/data/mysql/updatedatabase.pl to add the two columns to itemtypes -- Does a meaningful message get printed? Are the columns added? "DESCRIBE itemtypes;" should list hideinopac and searchcategory. 4) You need to add a category to group your item types: a) In Intranet/Koha Admin/Authorized values, select DOCTYPECAT in the 'Show category:' dropdown i) If you do not have a DOCTYPECAT category, create one. b) Click button "New authorized value for DOCTYPECAT" c) Enter Authorized value: HARDWARE Description : Hardware Description (OPAC): Hardware NORMAL USAGE 2) Group your items under that new category a) In Intranet/Koha Admin/Item types, choose (at least) two item types and for each: - Click action/Edit on the right column - Third row (below Description) is the Search category list box, select Hardware - click Save changes at the bottom 3) Select at least one item to be hidden in the OPAC search a) In Intranet/Koha Admin/Item types (again), choose a different item type: - Click action/Edit - Click the checkbox "Hide in OPAC" below the list of icons. FINAL TESTING 4) Go test your modifications a) Go to OPAC/Adv search. b) Validate that all items modified above (hidden or grouped) do not appear in Item type list c) Validate that new item type Hardware does appear instead. d) Select item Hardware, start Search. e) Validate returned items are the of the two types that were grouped into the Hardware category in step 4. Sponsored-by: Vanier college -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
