[Koha-bugs] [Bug 15198] New: Make OpacSuppression work even if there are no records suppressed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 17 01:05:04 CET 2015


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

            Bug ID: 15198
           Summary: Make OpacSuppression work even if there are no records
                    suppressed
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Searching
          Assignee: gmcharlt at gmail.com
          Reporter: dcook at prosentient.com.au
        QA Contact: testopia at bugs.koha-community.org

At the moment, if you turn on OpacSuppression and try to search for records
without having at least one record with 942$n = 1 indexed, you'll get zero
results back.

However, the special Zebra attribute 14 allows you to get around this problem.
Attribute 14: 

"Specifies whether un-indexed fields should be ignored. A zero value (default)
throws a diagnostic when an un-indexed field is specified. A non-zero value
makes it return 0 hits."
(http://www.indexdata.com/zebra/doc/querymodel-zebra.html)

Now the description is a bit vague... you can't try something like "@attr 14=1
@attr 1=9999 1" to work. You'll still get a diagnostic error. However, you can
try something like "@attr 14=1 @attr 1=9011 1" to work as 9011 is a valid use
attribute in bib1.att.

Anyway, by adding 14=1 to the Suppress qualifier in ccl.properties, we can make
it so that OpacSuppression queries still work even when there are no suppressed
records in Zebra.

Cool, n'est-ce pas? 

No... it's not cool, but it's handy.

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


More information about the Koha-bugs mailing list