Bug 14504: Add delete_items.pl: a command line batch deletion tool
[koha.git] / Koha / AuthorisedValues.pm
index 55c7266..d0eea2a 100644 (file)
@@ -29,7 +29,7 @@ use base qw(Koha::Objects);
 
 =head1 NAME
 
-Koha::Borrower - Koha Borrower Object class
+Koha::AuthorisedValues - Koha Authorised value Object set class
 
 =head1 API
 
@@ -59,11 +59,7 @@ sub search {
       }
       : {};
     my $join = $branchcode ? { join => 'authorised_values_branches' } : {};
-    my $rs = $self->_resultset()
-      ->search( { %$params, %$or, }, $join );
-
-    my $class = ref($self);
-    return wantarray ? $self->_wrap( $rs->all() ) : $class->_new_from_dbic($rs);
+    return $self->SUPER::search( { %$params, %$or, }, $join );
 }
 
 sub categories {
@@ -83,7 +79,7 @@ sub categories {
 
 =cut
 
-sub type {
+sub _type {
     return 'AuthorisedValue';
 }