[Koha-bugs] [Bug 15537] Hide records on Leader 05 = d in OPAC

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 12 03:26:44 CET 2016


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

--- Comment #3 from David Cook <dcook at prosentient.com.au> ---
Created attachment 46509
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46509&action=edit
Bug 15537 - Hide records on Leader 05 = d in OPAC

Currently, if a bibliographic record has a record status of "deleted"
(ie LDR05=d), it shows up in the catalogue.

This patch indexes the LDR05 character into the Record-status
index (already defined in bib1.att). It creates a CCL qualifier
for that index, and it adds a condition to OPAC queries where
it only returns records that do not have a LDR05 of "d".

Test Conditions:

1) With QueryParser
2) Without QueryParser
3) With OpacSuppression
4) Without OpacSuppression

Test Plan:

Before applying patch:
1) Choose a bibliographic record and change the LDR05 to "d"
2) Try searching for that record in the OPAC
3) Note that it appears in the search results (or takes you directly to the
record)

Apply patch.

After applying patch:
4) Try searching for that record in the OPAC
5) Note that the record doesn't appear in the search results
6) Re-try steps 4 & 5 with each of the 4 test conditions outlined above.
It should work the same regardless of using the QueryParser or OpacSuppression.

NOTE: When using the QueryParser, you might need to vary your syntax. For
instance,
w/ QP you'd need "local-number:492 || local-number:495" whereas w/o QP you'd
need
"local-number:492 or local-number:495".

NOTE: For extra points, double-check the staff client to make sure that you
can still find records that have a LDR05 of "d".

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


More information about the Koha-bugs mailing list