&getitemtypeimagedir
&getitemtypeimagesrc
&GetAuthorisedValues
+ &GetAuthorisedValueCategories
&GetKohaAuthorisedValues
&GetAuthValCode
&GetManagedTagSubfields
return \@results; #$data;
}
+=head2 GetAuthorisedValueCategories
+
+$auth_categories = GetAuthorisedValueCategories();
+
+Return an arrayref of all of the available authorised
+value categories.
+
+=cut
+
+sub GetAuthorisedValueCategories {
+ my $dbh = C4::Context->dbh;
+ my $sth = $dbh->prepare("SELECT DISTINCT category FROM authorised_values ORDER BY category");
+ $sth->execute;
+ my @results;
+ while (my $category = $sth->fetchrow_array) {
+ push @results, $category;
+ }
+ return \@results;
+}
+
=head2 GetKohaAuthorisedValues
Takes $kohafield, $fwcode as parameters.