[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
Fri May 30 17:01:39 CEST 2014


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #28575|0                           |1
        is obsolete|                            |

--- Comment #26 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 28576
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28576&action=edit
Bug 10937 - Option to hide and group itemtypes from advanced search

Rebased, squashed, and fixed whitespace.
Added AFTER to updatedatabase.pl, so order will match
 kohastructure.sql
Fixed GetItemTypesCategorized, so that partially hidden search
 categories still appear in the item type list.
HOWEVER, THIS CREATES A PROBLEM. SEARCHING ON A CATEGORY MAY
 RETURN THINGS WHICH ARE NOT SUPPOSED TO BE SHOWN.
SEE FURTHER COMMENTS.

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
   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.


Current status: In Discussion

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


More information about the Koha-bugs mailing list