[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
Mon Jun 30 20:38:10 CEST 2014


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

--- Comment #34 from Maxime Beaulieu <maxime.beaulieu at inlibro.com> ---
Created attachment 29383
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=29383&action=edit
Bug 10947 - Follow-up to: 'Review of attachment 28626'

C4/Koha.pm: Perldoc has been updated to better describe subroutine behaviour
and usage.
itemtypes.tt: The 'IF/ELSE' was used to distiguish between the 'ADD' and
'MODIFY' screens. It has been removed and the same 'select' is now used for
both cases.
opac-advsearch.tt (both files): I've reformatted the code to improve
readability.

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