Difference between revisions of "Citation Format"
Line 1: | Line 1: | ||
− | The citation format files, located in the repository's [[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/cfg/citations|citations]] directory, describe how citations for documents, eprints, and users should be rendered. | + | The citation format files, located in the repository's [[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/cfg/citations|citations]] directory, describe how citations for documents, eprints, and users should be rendered. The name of the directories reflect the name of the dataset, with the filename within the directory (e.g. brief.xml) identifying the name of the citation style. |
+ | |||
+ | == Example == | ||
<cite:citation xmlns="http://www.w3.org/1999/xhtml" | <cite:citation xmlns="http://www.w3.org/1999/xhtml" | ||
Line 6: | Line 8: | ||
<cite:linkhere><span class="ep_document_citation"><epc:print expr='format'/><epc:if test="formatdesc"> <epc:print expr="formatdesc"/>)</epc:if></span></cite:linkhere> | <cite:linkhere><span class="ep_document_citation"><epc:print expr='format'/><epc:if test="formatdesc"> <epc:print expr="formatdesc"/>)</epc:if></span></cite:linkhere> | ||
</cite:citation> | </cite:citation> | ||
+ | |||
+ | Two tags are provided under the citation namespace: cite:citation and cite:linkhere. The former is the root element of the file, and contains the body of the citation as well as any required namespaces. The latter surrounds one or many elements, and renders the content as a link to the item. |
Revision as of 14:29, 4 January 2007
The citation format files, located in the repository's citations directory, describe how citations for documents, eprints, and users should be rendered. The name of the directories reflect the name of the dataset, with the filename within the directory (e.g. brief.xml) identifying the name of the citation style.
Example
<cite:citation xmlns="http://www.w3.org/1999/xhtml" xmlns:cite="http://eprints.org/ep3/citation" xmlns:epc="http://eprints.org/ep3/control"> <cite:linkhere><span class="ep_document_citation"><epc:print expr='format'/><epc:if test="formatdesc"> <epc:print expr="formatdesc"/>)</epc:if></span></cite:linkhere> </cite:citation>
Two tags are provided under the citation namespace: cite:citation and cite:linkhere. The former is the root element of the file, and contains the body of the citation as well as any required namespaces. The latter surrounds one or many elements, and renders the content as a link to the item.