Ambra Web Application Configuration

Ambra Configuration (defaults.xml, ambra.xml)

Journal Mapping

ambra.virtualJournals.journals
List of all journals in system.
ambra.virtualJournals.default
The default journal.
ambra.virtualJournals.journal_name
Journal-specific configuration. In defaults.xml of each journal.

VirtualJournalContextFilter will look at ambra.virtualJournals.journals and then loop through ambra.virtualJournals.journal_name for each journal to try to map URL to a particular journal. The way mapping is done is specified in ambra.virtualJournals.journal_name.rules. See InstallVirtualJournals. If it doesn't find matching journal, it defaults to what is set in ambra.virtualJournals.default.

For UML Diagrams see AmbraJournalMapping

Struts Configuration (struts.xml)

Ambra Freemarker Results

Most of views in Ambra are rendered using Freemarker templates. They are mapped to Struts action through result classes specified in <result-type>. There are three result types defined using AmbraFreemarkerResult. AmbraFreemarkerResult extends FreemarkerResults? so that it takes one additional parameter templateFile. templateFile is included in main Freemarker template via <#include "${templateFile}">

ambraFreemarker
uses /journals/plosJournals/templates/main_template.ftl
headless
uses /journals/plosJournals/templates/headless_template.ftl
user
uses /journals/plosJournals/templates/user_shared_template.ftl

.ftl files under /templates/ don't seem to be used.