DSpace:Theme
Ir para navegação
Ir para pesquisar
Editar o arquivo pico /dspace/config/xmlui.xconf
<theme name=”My new theme” path=”[theme-dir]”/>
Restart Tomcat
Índice
Idiomas dos DSPACE
default.locale = pt_BR, en, es xmlui.supported.locales = en, es, pt_BR webui.supported.locales = en, es, pt_BR default.language = pt_BR, en, es
Files:
/dspace/webapps/themes/[theme-dir]/sitemap.xmap (The theme's configuration) /dspace/webapps/themes/[theme-dir]/style.css (CSS stylesheet) /dspace/webapps/themes/[theme-dir]/style-ie.css (CSS stylesheet for IE)
Customização
Customização do arquivo XMLUI.xconf
Alterar o nome do thema
pico /dspace/config/xmlui.xconf
<map:component-configurations>
<global-variables>
<theme-path>RE4</theme-path>
<theme-name>RE4</theme-name>
</global-variables>
</map:component-configurations>
Criar o arquivo com o nome do Thema
Ex: RE4.xsl
<xsl:import href="../dri2xhtml-alt/core/global-variables.xsl"/> <xsl:import href="lib/xsl/core/page-structure.xsl"/>
page-structure.xsl
Estrutura
/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/dri2xhtml-alt/
├── aspect │ ├── administrative │ │ └── harvesting.xsl │ ├── artifactbrowser │ │ ├── COinS.xsl │ │ ├── ORE.xsl │ │ ├── artifactbrowser.xsl │ │ ├── collection-list.xsl │ │ ├── collection-view.xsl │ │ ├── common.xsl │ │ ├── community-list.xsl │ │ ├── community-view.xsl │ │ ├── item-list.xsl │ │ └── item-view.xsl │ └── general │ └── choice-authority-control.xsl ├── core │ ├── attribute-handlers.xsl │ ├── elements.xsl │ ├── forms.xsl │ ├── global-variables.xsl │ ├── navigation.xsl │ ├── page-structure.xsl │ └── utils.xsl └── dri2xhtml.xsl
sitemap.xsl
<map:component-configurations> <global-variables> <theme-path>[theme-dir]</theme-path> <theme-name>[the name of your theme]</theme-name> </global-variables> </map:component-configurations>
Customizar o Cabeçalho e Rodapé
Files:
/dspace/webapps/themes/[theme-dir]/template.xsl (The theme's stylesheet) /dspace/webapps/themes/dri2xhtml/structural.xsl
Referências [[1]]
Customizar noticia inicial do DSPace
pico /dspace/config/news-xmlui.xml