API:EPrints/Citation
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
Contents
NAME
EPrints::Citation - Loading and rendering of citation styles.
DESCRIPTION
Renders citations for data objects using a paticular style defined in it own configuration file.
This is an abstract class used by EPrints:Citation::EPC and EPrints::Citation::XSL whichb use XML EPC and XSL respecively to define citation style files.
SYNOPSIS
my $citation = $repo->dataset( "eprint" )->citation( "default" ); $ok = $citation->freshen(); $citation->render( $eprint, %opts );
METHODS
new
$citation = EPrints::Citation->new( $filename, %opts )
Returns a new EPrints::Citation object read from $filename.
Options:
dataset - dataset this citation belongs to
freshen
$ok = $citation->freshen()
Attempts to reload the citation source file.
Returns undef if the file could not be loaded.
load_source
$ok = $citation->load_source()
Reads the source file.
render
$frag = $citation->render( $dataobj, %opts )
Renders a EPrints::DataObj using this citation style.
type
$type = $citation->type()
Returns the type of this citation. Only supported value is table_row.
COPYRIGHT
© Copyright 2000-2024 University of Southampton.
EPrints 3.4 is supplied by EPrints Services.
http://www.eprints.org/eprints-3.4/
LICENSE
This file is part of EPrints 3.4 http://www.eprints.org/.
EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.
EPrints 3.4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.