⧼vector-jumptocontent⧽

API:EPrints/Citation/EPC: Difference between revisions

From EPrints Documentation
Pod2wiki (talk | contribs)
No edit summary
Pod2wiki (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
<!-- Pod2Wiki=_private_ --><!-- Pod2Wiki=head_name -->
<!-- Pod2Wiki=_private_ --><!-- Pod2Wiki=head_name -->
==NAME==
==NAME==
'''EPrints::Citation::EPC''' - Loading and rendering of XSL-based  citation styles.
'''EPrints::Citation::EPC''' - Loading and rendering of EPC XML based  citation styles.


<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
Line 17: Line 17:
<!-- Pod2Wiki=head_description -->
<!-- Pod2Wiki=head_description -->
==DESCRIPTION==
==DESCRIPTION==
Loads XSL citation style files and renders citations for the particular data object.
Loads EPC XML citation style files and renders citations for a particular type of data object.


This class inherits from [[API:EPrints/Citation|EPrints::Citation]].
This class inherits from [[API:EPrints/Citation|EPrints::Citation]].
Line 42: Line 42:
  $citation-&gt;load_source
  $citation-&gt;load_source
Load EPC citation source from file.
Load EPC citation source from file.
Returns 1 if citation source was successfully loaded.


<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
Line 54: Line 56:


  $frag = $citation-&gt;render( $dataobj, %opts )
  $frag = $citation-&gt;render( $dataobj, %opts )
Renders a [[API:EPrints/DataObj|EPrints::DataObj]] using this citation style.
Used to render a [[API:EPrints/DataObj|EPrints::DataObj]] using this citation style.
 
Returns a XML document fragment of the citation rendering.


<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>

Latest revision as of 17:24, 16 March 2023

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki


NAME

EPrints::Citation::EPC - Loading and rendering of EPC XML based citation styles.

User Comments


DESCRIPTION

Loads EPC XML citation style files and renders citations for a particular type of data object.

This class inherits from EPrints::Citation.

User Comments


METHODS

User Comments


load_source

$citation->load_source

Load EPC citation source from file.

Returns 1 if citation source was successfully loaded.

User Comments


render

$frag = $citation->render( $dataobj, %opts )

Used to render a EPrints::DataObj using this citation style.

Returns a XML document fragment of the citation rendering.

User Comments


SEE ALSO

EPrints::Citation

User Comments


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/.

User Comments