Project

General

Profile

Bug #536

Changes to Metacat build script to install stylesheets from eml cvs module

Added by Matthew Brooke over 17 years ago. Updated over 17 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
metacat
Target version:
Start date:
06/17/2002
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
536

Description

INTRODUCTION:
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)

SOLUTION:
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")

DETAILS:
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
<tomcat_webapp>/<contextname>/style:

login.xsl
resultset.xsl
generic-morpho.xsl
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.

History

#1 Updated by Jing Tao over 17 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
module/lib/style directly.

#2 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 536

Also available in: Atom PDF