[Koha-bugs] [Bug 10937] Option to hide and group itemtypes from advanced search

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 3 00:47:57 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10937

M. Tompsett <mtompset at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #28579|0                           |1
        is obsolete|                            |
  Attachment #28624|0                           |1
        is obsolete|                            |

--- Comment #32 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 28626
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28626&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.

As C4/Koha was modified, a set of subtests were added to confirm
the changes in t/db_dependent/Koha.t. The two new routines add
a grouping functionality into the OPAC Advanced Search
Item type display area.

Initial coding by philippe.blouin at inlibro.com with
mtompset at hotmail.com providing extra testing, patching,
squashing, and rebasing.

CURRENT TEST PLAN
------------------
0) Back up database, so you can reset and retest easily. ;)
1) Apply the patch
2) Run Koha QA tool.
3) prove -v t/db_dependent/Koha.t
   -- all tests should pass.
4) 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.
5) 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
6) 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
7) 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.
8) 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.


More information about the Koha-bugs mailing list