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

--- Comment #6 from Marcel de Rooy <[email protected]> ---
The code for AllowList is generic now. But we need the ColumnSet to apply it to
Koha objects in various ways.


This is the idea:

Say $city is a Koha object.
$city->filter('opac_ui') returns city data through the opac_ui filter which is
just a set of columns for some purpose.
$city->filter('staff') could return some other subset or even nothing when the
set does not exist.

The sub filter calls Koha::Object::ColumnSet with the requested column set
name. The module calls the corresponding DBIx schema where we add a sub called
column_set_info containing the lists we need like a list for opac_ui.
ColumnSet runs a Koha::AllowList based on that list over the object data.

Hang on a little bit. Submitting some concept code shortly.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to