[Koha-bugs] [Bug 4492] New: OPAC item suppression

bugzilla-daemon at kohaorg.ec2.liblime.com bugzilla-daemon at kohaorg.ec2.liblime.com
Wed May 12 16:18:54 CEST 2010


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4492

           Summary: OPAC item suppression
           Product: Koha
           Version: rel_3_0
          Platform: PC
        OS/Version: Windows 2000
            Status: ASSIGNED
          Severity: enhancement
          Priority: P5
         Component: Cataloging
        AssignedTo: kohaprogrammers at ptfs.com
        ReportedBy: jwagner at ptfs.com
                CC: jwagner at ptfs.com
   Estimated Hours: 0.0
 Change sponsored?: ---


Sponsored by East Brunswick Public Library, East Brunswick, NJ, USA.

OPAC suppression was already available for a bib record, but not on an
individual item. This patch tries to create this functionality. In order to
accomplish this, we added a suppress field to the items table by running the
following SQL:

  ALTER TABLE items ADD suppress tinyint(1) NOT NULL DEFAULT 0 AFTER wthdrawn;

A new authorised value category named I_SUPPRESS was also created with a binary
option of 0 - Not Suppressed (blank in authorised_value.description) |1 -
Suppressed. The items.suppress field was then linked to the MARC 952$i field
and the I_SUPPRESS authorised value.

In addition, we added the following to the three Zebra configuration files.

ZEBRADIR=~/koha-dev/etc/zebradb $ZEBRADIR/biblios/etc/bib1.att:att 8033
suppress $ZEBRADIR/ccl.properties:suppress 1=8033
$ZEBRADIR/marc_defs/marc21/biblios/record.abs:melm 952$i suppress,suppress:n

The Koha maintenance utility sync_items_in_marc_bib.pl also needed to be run to
sync the items table to the MARC record. Finally, an index rebuild (i.e.,
rebuild_zebra.pl) was performed. We aren't sure if at least one item needed to
be suppressed for the indexing to work correctly; however, for testing, we did
set at least one item to be suppressed before we ran rebuild_zebra.pl.


-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list