Skip to content
This repository was archived by the owner on Dec 23, 2020. It is now read-only.

RefactoringXSLT

François Prunayre edited this page Jun 13, 2013 · 4 revisions

Goal:

  • Review all services and check the one required
  • Classify UI services and other services
  • Classify admin, search and metadata UI
  • Remove Styling, extra-HTML (eg. tables, divs, ...) and JS from XSLTs
  • Move translation to i18n.xml (and identify client side translation by @js)
  • Define a UI configuration (TODO: could start in XSL variable but could be nice to move that to Settings or even User Settings ?)

Note: That change should not affect legacy or widget apps and could be done in parallel

After refactoring, we should be able to safely remove :

  • images/* (not harvesting, category, logo)
  • loc///* (not i18n.xml)
  • scripts
  • WEB-INF/config-*
  • xsl

Dev branch: https://github.com/fxprunayre/core-geonetwork/tree/refactoring/xslt-and-angularjs

WEB-INF / Service config

Service configuration is defined in WEB-INF/config/config/*.xml (https://github.com/fxprunayre/core-geonetwork/tree/refactoring/xslt-and-angularjs/web/src/main/webapp/WEB-INF/config).

WEB-INF/config.xml include service configuration using (https://github.com/fxprunayre/core-geonetwork/blob/refactoring/xslt-and-angularjs/web/src/main/webapp/WEB-INF/config.xml#L1539)

    <include>config/config-services.xml</include>
    <include>config/config-ui.xml</include>
    <include>config/config-ui-search.xml</include>
    <include>config/config-ui-metadata.xml</include>
    <include>config/config-ui-admin.xml</include>

XSLT folder

During review all XSLTs are moved from the xsl folder to the xslt one (https://github.com/fxprunayre/core-geonetwork/tree/refactoring/xslt-and-angularjs/web/src/main/webapp/xslt).

Guidelines

Clone this wiki locally