[Koha-bugs] [Bug 31035] Script to update OPACSuppression field depending on hidden items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 24 08:36:51 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31035

--- Comment #3 from Fridolin Somers <fridolin.somers at biblibre.com> ---
(In reply to David Cook from comment #2)
> This script would break the functionality introduced by the syspref
> "OpacHiddenItemsExceptions" though, unfortunately.
Indeed I will add this to doc.

> 
> I thought about this a bunch while working on bug 19704. 
> 
> In theory, you could enqueue a background job, when "OpacHiddenItems" is
> saved, which could process every record with items and then update a
> "biblio.hidden" field (so that it can be queried for SQL searches and not
> just Search Engine searches), if "OpacHiddenItemsHidesRecord" is set.
Sure, a data field in biblio whould be really great.
Maybe biblio.opac_hidden.

> 
> --
> 
> Maybe the solution is to get rid of "OpacHiddenItemsExceptions" and then
> either use a cronjob or a background job to update the 942$n/biblio.hidden.
Indeed the complexity is hard with this feature.
We should ask who uses it.

> 
> It would be great to be able to eliminate the post-processing of
> records/items caused by "OpacHiddenItems", so generally speaking I'm on
> board for what you're trying to do!

With this script actually you can not manually hide on purpose a biblio record.
I was thinking we could define a special value for the OPACSuppress field, like
"2".
Value "1" would be used to manually hide biblio record.

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


More information about the Koha-bugs mailing list