<<

NAME

C4::Heading

SYNOPSIS

 use C4::Heading;
 my $heading = C4::Heading->new_from_bib_field($field);
 my $thesaurus = $heading->thesaurus();
 my $type = $heading->type();
 my $display_heading = $heading->display();
 my $search_string = $heading->search_string();

DESCRIPTION

C4::Heading implements a simple class to representing headings found in bibliographic and authority records.

METHODS

new_from_bib_field

  my $heading = C4::Heading->new_from_bib_field($field[, $marc_flavour]);

Given a MARC::Field object containing a heading from a bib record, create a C4::Heading object.

The optional second parameter is the MARC flavour (i.e., MARC21 or UNIMARC); if this parameter is not supplied, it is taken from the Koha application context.

If the MARC field supplied is not a valid heading, undef is returned.

display_form

  my $display = $heading->display_form();

Return the "canonical" display form of the heading.

authorities

  my $authorities = $heading->authorities;

Return a list of authority records for this heading.

preferred_authorities

  my $preferred_authorities = $heading->preferred_authorities;

Return a list of authority records for headings that are a preferred form of the heading.

INTERNAL METHODS

_query_limiters

INTERNAL FUNCTIONS

_marc_format_handler

Returns a C4::Heading::MARC21 or C4::Heading::UNIMARC object depending on the selected MARC flavour.

AUTHOR

Koha Development Team <http://koha-community.org/>

Galen Charlton <galen.charlton@liblime.com>

<<