Examples of DBIC in Koha

From Koha Wiki
Jump to navigation Jump to search

Examples of DBIx::Class (aka DBIC) being used in Koha. Feel free to add more!

Pushed to main

Where it all started

Bug 8798 - Add the use of DBIx::Class

Koha::Schema::Result::Item::effective_itemtype

Adds a new sub called effective_itemtype to Koha/Schema/Result/Item.pm

Tests in t/db_dependent/Items.t

Bug 11518

circ/renew.pl

A new "page" circ/renew.pl in the Intranet that only uses DBIC, not DBI.

Bug 10493

Patron lists

Scripts in the patron_lists directory do not use DBIC, but the new module in Koha/List/Patron.pm does.

Tests in t/db_dependent/PatronLists.t.

Bug 10565

admin/z3950servers.pl

This script was refactored to use DBIC by Bug 12265.

Misc

Smaller bugs that introduce usage of DBIC.

  • Bug 6254 - can't set patron privacy by default

In progress

Bug 8007 - Discharge management

I (Jonathan) tried something on Bug 8007.

Bug 11084 - Delete biblios on Leader 05 =d

Uses DBIC to find the biblios that should be deleted.