View | Details | Raw Unified | Return to bug 18212
Collapse All | Expand All

(-)a/Koha/AuthorisedValue.pm (+4 lines)
Lines 159-167 sub _avb_resultset { Link Here
159
}
159
}
160
160
161
=head3 GetAuthValues
161
=head3 GetAuthValues
162
162
my @AuthValues = Koha::AuthorisedValue->GetAuthValues($authcat);
163
my @AuthValues = Koha::AuthorisedValue->GetAuthValues($authcat);
163
164
164
s subroutine retrieves and returns all fields from the authorised_values table where the category is equal to the parameter $authcat, and orders the records by the value of the lib field
165
s subroutine retrieves and returns all fields from the authorised_values table where the category is equal to the parameter $authcat, and orders the records by the value of the lib field
166
165
=cut
167
=cut
166
168
167
sub GetAuthValues {
169
sub GetAuthValues {
Lines 177-185 sub GetAuthValues { Link Here
177
};
179
};
178
180
179
=head3 GetDistinctCat
181
=head3 GetDistinctCat
182
180
my @DistinctAuthValues = Koha::AuthorisedValue->GetDistinctCat();
183
my @DistinctAuthValues = Koha::AuthorisedValue->GetDistinctCat();
181
184
182
This subroutine retrieves and returns all the different category values starting with 'a' in the authorised_values table
185
This subroutine retrieves and returns all the different category values starting with 'a' in the authorised_values table
186
183
=cut
187
=cut
184
188
185
sub GetDistinctCat {
189
sub GetDistinctCat {
(-)a/Koha/ItemType.pm (+2 lines)
Lines 105-113 sub can_be_deleted { Link Here
105
}
105
}
106
106
107
=head3 GetItemTypes
107
=head3 GetItemTypes
108
108
my $sth = Koha::ItemType->GetItemTypes($dbh);
109
my $sth = Koha::ItemType->GetItemTypes($dbh);
109
110
110
This subroutine retrieves and returns all the values for the fields: itemtype and description from the itemtypes table.
111
This subroutine retrieves and returns all the values for the fields: itemtype and description from the itemtypes table.
112
111
=cut
113
=cut
112
114
113
sub GetItemTypes{
115
sub GetItemTypes{
(-)a/t/db_dependent/Koha/ItemTypes.t (-2 / +1 lines)
Lines 19-25 Link Here
19
19
20
use Modern::Perl;
20
use Modern::Perl;
21
21
22
use Test::More tests => 24;
22
use Test::More tests => 25;
23
use Data::Dumper;
23
use Data::Dumper;
24
use Koha::Database;
24
use Koha::Database;
25
use t::lib::Mocks;
25
use t::lib::Mocks;
26
- 

Return to bug 18212