Koha::MetadataRecord::Authority - class to encapsulate authority records in Koha
Object-oriented class that encapsulates authority records in Koha.
Authority data.
my $auth = Koha::MetadataRecord::Authority->new($record);
Create a new Koha::MetadataRecord::Authority object based on the provided record.
my $auth = Koha::MetadataRecord::Authority->get_from_authid($authid);
Create the Koha::MetadataRecord::Authority object associated with the provided authid. Note that this routine currently retrieves a MARC record because authorities in Koha are MARC records by definition. This is an unfortunate but unavoidable fact.
my $auth = Koha::MetadataRecord::Authority->get_from_authid($authid);
Create the Koha::MetadataRecord::Authority object associated with the provided authid.
my $it = Koha::MetadataRecord::Authority->get_all_authorities_iterator();
This will provide an iterator object that will, one by one, provide the Koha::MetadataRecord::Authority of each authority.
The iterator is a Koha::MetadataIterator object.