Changes to Metacat build script to install stylesheets from eml cvs module
Metacat build script currently installs stylesheets from the metacat (xmltodb)
cvs module to the <tomcat_webapp>/<contextname>/style directory.
However, a newer set of stylesheets has recently been added to the eml module
in CVS, (this was done because they need to be distributed with eml, and
they are general - i.e. not metacat-specific). These "general" eml
stylesheets are required for metacat, but some of the stylesheets in the
xmltodb module are also still required for metacat-specific styling ()
eg "login.xsl", "resultset.xsl" etc - it was not appropriate to move these
stylesheets to the eml module, since they are metacat-specific)
The build script should be changed so that, during install, it still pulls the
metacat-specific XSL and CSS files from the xmltodb module, but it also
pulls the "general" XSL files from the eml module. It should do this using a
CVS tag, but should not append a version name to the filenames, since the
xsl files already include the eml version number in their filenames in cvs
(for example, beta6 xsl files all end in "-2.0.0beta6.xsl")
During install, therefore, the build script should:
1) pull all *.xsl files from the cvs eml module's /style directory (using
the "eml-tag" property, which is currently RELEASE_EML_2_0_0_BETA_6_REV1),
2) copy them to the <tomcat_webapp>/<contextname>/style directory.
3) copy the following files from xmltodb/lib/style to
all *.css files
AFAIK, those are the only ones in use, but someone more familiar with Metacat
(Jing?) may know of others?
4) Since there will be more stylesheets in the eml module with each new
release, it would also be good to automatically generate/update the
<tomcat_webapp>/<contextname>/knb.xml file to map each doctype to the
appropriate stylesheet. However, this could be done by hand for now, and this
item could be re-added to bugzilla as an RFE.
#1 Updated by Jing Tao almost 18 years ago
In getdtd target in build.xml, another function copy was added and it will
copy the *.xsl file from checked out eml module to lib/style directory. So eml
style sheet will dynamic get from cvs eml module.
The other style sheet, such as login.xsl, resultset.xsl, generic-morpho.xsl
and all *.css files will still be checked out from cvs xmltodb