]> git.koha-community.org Git - koha.git/commit
Bug 33568: Course reserves
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 20 Apr 2023 06:35:48 +0000 (08:35 +0200)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 5 Apr 2024 13:34:52 +0000 (15:34 +0200)
commitf319dcf9862627fda8981276d0d69f0ebd5c6371
tree31855e693bf6772fdead6dd21cdd8a8d855e7a06
parenta3fa8f04acbd75b366a637d0d11cd714614e6e64
Bug 33568: Course reserves

FIXME We need tests here

FIXME/TODO - Isn't it possible to replace all this mess with the
following Koha::Item method and a new DBIC rs?
sub courses {
    my ($self) = @_;
    return Koha::Courses->search(
        { 'ci.itemnumber' => $self->itemnumber },
        { join            => { course_reserves => 'ci' } }
    );
}

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Course/Reserve.pm
Koha/Item.pm
api/v1/swagger/definitions/item.yaml
api/v1/swagger/paths/biblios.yaml
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt