Bug 4492 - OPAC item suppression
Summary: OPAC item suppression
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: rel_3_0
Hardware: PC All
: PATCH-Sent (DO NOT USE) enhancement (vote)
Assignee: Galen Charlton
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-12 02:18 UTC by Jane Wagner
Modified: 2012-10-26 00:40 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Cormack 2010-05-21 01:27:49 UTC


---- Reported by jwagner@ptfs.com 2010-05-12 14:18:54 ----

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.



---- Additional Comments From jwagner@ptfs.com 2010-05-12 14:19:20 ----

The fix for this bug (in ptfs-harley) can be pulled from the public git repository at http://github.com/Koha-PTFS, branch ItemSuppress





--- Bug imported by chris@bigballofwax.co.nz 2010-05-21 01:27 UTC  ---

This bug was previously known as _bug_ 4492 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4492

Unknown operating system Windows 2000. Setting to default OS "All".
Actual time not defined. Setting to 0.0
The original reporter of this bug does not have
   an account here. Reassigning to the person who moved
   it here: chris@bigballofwax.co.nz.
   Previous reporter was jwagner@ptfs.com.
The original assignee of this bug does not have
   an account here. Reassigning to the default assignee
   for the component, gmcharlt@gmail.com.
   Previous assignee was kohaprogrammers@ptfs.com.
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.
Bug reassigned, setting status to "NEW".
   Previous status was "ASSIGNED".
CC member jwagner@ptfs.com does not have an account here

Comment 1 Chris Cormack 2010-12-14 08:16:32 UTC
This will need to be rebased onto master before it can go through QA
Comment 2 Stéphane Delaune 2011-04-05 11:43:13 UTC
This is a modification implemented early but not in actual version