Eprint render.pl: Difference between revisions
mNo edit summary |
m Removed category configuration as provided by cfgd template. |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{dirs}} | |||
eprint_render.pl defines the configuration for rendering EPrint abstract/summary pages. There are various aspects to this configuration file. | {{cfgd}} | ||
'''eprint_render.pl''' defines the configuration for rendering EPrint abstract/summary pages. There are various aspects to this configuration file. | |||
== Summary Page Metadata == | == Summary Page Metadata == | ||
| Line 21: | Line 23: | ||
$c->{eprint_render} | $c->{eprint_render} | ||
By default this function returns three XHTML DOM trees. One for the content of the page, one for the title of the page and the final for menu links. | By default this function returns three XHTML DOM trees. One for the content of the page, one for the title of the page and the final for menu links. | ||
Latest revision as of 08:49, 31 January 2022
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
eprint_render.pl defines the configuration for rendering EPrint abstract/summary pages. There are various aspects to this configuration file.
Summary Page Metadata[edit]
Abstract/summary pages display a table of metadata fields for an EPrint. This by default appears just after the abstract. The fields that appear in this table can be defined in
$c->{summary_page_metadata}. The default configration for this is:
$c->{summary_page_metadata} = [qw/
commentary
note
keywords
subjects
divisions
sword_depositor
userid
datestamp
lastmod
/];
Only the fields that have values set for them will be displayed in this summary table.
EPrint Render Function[edit]
This is the main function that renders the abstract summary page. It builds the various flags and fragments that will then be used by the citations/eprint/summary_page.xml. This function comes under the configuration setting:
$c->{eprint_render}
By default this function returns three XHTML DOM trees. One for the content of the page, one for the title of the page and the final for menu links.