Hi, I'm planning to add logging to the authorities management. In the 'action_logs' table we have, for biblios:
module : CATALOGUING action : ADD/DELETE/MODIFY for biblios, and other actions for issuing, object : a biblionumber or itemnumber info : string: 'biblio' or 'item' or previous 'marc' field (when MODIFYing) My first thought was that we could use 'CATALOGUING' too, and that instead of 'biblio' in the info field we could use 'authority'. Something like module : CATALOGUING action : ADD/DELETE/MODIFY object : a authid info : string: 'authority' or previous 'marc' field (when MODIFYing) But I realized that it is impossible to differentiate, from tools/viewlog.pl point of view, if we're talking about a biblionumber or an itemnumber (and now an authid) when the operation is MODIFY. Check this from Items.pm: logaction("CATALOGUING", "MODIFY", $itemnumber, $new_item_marc->as_formatted) if C4::Context->preference("CataloguingLog"); In the results in fact, they are all shown as biblios (bug?)! So, adding 'authid' to the mix will make it worse. Should I add AUTHCAT module? Should we split CATALOGUING module into BIBLIOCAT and ITEMCAT? Also: should we avoid logging when calling ModItem from Issues::AddIssue? It looks too much overhead as there is a call to $new_item_marc->as_formatted. Have a nice weekend! To+ _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/