[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 Oct 15 20:47:49 CEST 2013


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

--- Comment #2 from Blou <philippe.blouin at inlibro.com> ---
Created attachment 22007
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=22007&action=edit
Bug 10937 - Options to group or hide items in adv. search

This allows to group certain item types in a category, to be displayed (and
searched) as such in OPAC's advanced search.  For example, you can group
Reserve 2h and Reserve 12h into a Reserve category.  The 2 and 12h types won't
appear anymore.
This also allows to simply prevent an item type from displaying as a search
option.

Modified:
    C4/Koha.pm    GetItemTypesCategorized
    admin/itemtypes.pl
    koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt
    koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt
    opac/opac-search.pl
    installer/data/mysql/kohastructure.sql  Added two columns, hideinopac and
searchcategory
    installer/data/mysql/updatedatabase.pl

Testing:
    0) run updatedatabase.pl to add the two columns to itemtypes
    1) In Intranet/Koha Admin/Authorized values, select DOCTYPECAT in the
category dropdown
    2) Click button "New authorized value for DOCTYPECAT"
    3) Enter HARDWARE as Atuhorize value, ANything as Description and Hardware
as OPAC description then click SAVE.
    4) In Intranet/Koha Amind/Item types, select (at least) two different items
and proceed with the following steps
      a) Click action/Edit on the right column
      b) Third row is the search category list box, select Hardware
      c) click Save changes at the bottom
    5) In Intranet/Koha Admin/Item types (again), select a different item type
and click the checkbox "Hide in OPAC"
    6) Go to OPAC/Adv search.
    7) Validate that all items modified above do not appear in Item type list
    8) Validate that new item type Hardware does appear instead.
    9) Select item Hardware, start Search.
    10) Validate returned items are the of the two types that were grouped into
the Hardware category in step 4.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list