1 package Koha::Illrequests;
3 # Copyright PTFS Europe 2016
5 # This file is part of Koha.
7 # Koha is free software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation; either version 3 of the License, or (at your option) any later
12 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along
17 # with Koha; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 use Koha::Illrequest::Config;
26 use base qw(Koha::Objects);
30 Koha::Illrequests - Koha Illrequests Object class
47 return 'Koha::Illrequest';
50 ##### To be implemented Facade
54 my $illRequests = Koha::Illrequests->new();
56 Create an ILLREQUESTS object, a singleton through which we can interact with
57 ILLREQUEST objects stored in the database or search for ILL candidates at API
63 my ( $class, $attributes ) = @_;
65 my $self = $class->SUPER::new($class, $attributes);
67 my $config = Koha::Illrequest::Config->new; # <- Necessary
68 $self->{_config} = $config; # <- Necessary
73 =head3 search_incomplete
75 my $requests = $illRequests->search_incomplete;
77 A specialised version of `search`, returning all requests currently
78 not considered completed.
82 sub search_incomplete {
86 -and => { '!=', 'COMP' }, { '!=', 'GENCOMP' }
93 Alex Sassmannshausen <alex.sassmannshausen@ptfs-europe.com>