Page History
...
The DSpace digital repository supports two user interfaces: one based on JavaServer Pages (JSP) technologies and one based upon the Apache Cocoon framework (XMLUI). This chapter describes those parameters which are specific to the JPSUI interface.
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Configuration
The user will need to refer to the extensive WebUI/JSPUI configurations that are contained in 5.2.36 JSP Web Interface Settings.
...
The JSPs are available in one of two places:
_\[dspace-source\]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/_ - Only exists if you downloaded the full Source Release of DSpaceWiki Markup _\[dspace-source\]/dspace/target/dspace-\[version\].dir/webapps/dspace-jspui-webapp/_ - The location where they are copied after first building DSpace.Wiki Markup
If
...
you
...
wish
...
to
...
modify
...
a
...
particular
...
JSP,
...
place
...
your
...
edited
...
version
...
in
...
the
...
[dspace-source
...
]/dspace/modules/jspui/src/main/webapp/
...
directory
...
(
...
this
...
is
...
the
...
replacement
...
for
...
the
...
pre-1.5
...
/jsp/local
...
directory
...
),
...
with
...
the
...
same
...
path
...
as
...
the
...
original.
...
If
...
they
...
exist,
...
these
...
will
...
be
...
used
...
in
...
preference
...
to
...
the
...
default
...
JSPs.
...
For
...
example:
DSpace default | Locally-modified version |
...
[ |
...
jsp.dir]/community-list.jsp | [jsp.custom-dir]/dspace/modules/jspui/src/main/webapp/community-list.jsp |
...
]]></ac:plain-text-body></ac:structured-macro>
...
[jsp.dir]/mydspace/main.jsp | [jsp.custom-dir]/dspace/modules/jspui/src/main/webapp/mydspace/main.jsp |
...
]]></ac:plain-text-body></ac:structured-macro>
...
Heavy use is made of a style sheet, _ styles.css. jsp_. If you make edits, copy the local version to _\[jsp.custom-dir\]/dspace/modules/jspui/src/main/webapp/styles.css.jsp_, and it will be used automatically in preference to the default, as described above.
Fonts and colors can be easily changed using the stylesheet. The stylesheet is a JSP so that the user's browser version can be detected and the stylesheet tweaked accordingly.
The 'layout' of each page, that is, the top and bottom banners and the navigation bar, are determined by the JSPs _/layout/header-*.jsp_ and _/layout/footer-*.jsp_. You can provide modified versions of these (in _\[jsp.custom-dir\]/dspace/modules/jspui/src/main/webapp/layout_), or define more styles and apply them to pages by using the "style" attribute of the _dspace:layout_ tag. Wiki Markup
Rebuild the DSpace installation package by running the following command from your _\[dspace-source\]/dspace/_ directory:Wiki Markup Code Block unmigrated-wiki-markupmvn package
- Update all DSpace webapps to _\[dspace\]/webapps_ by running the following command from your _\[dspace-source\]/dspace/target/dspace-\[version\]-build.dir_ directory:
Code Block ant -Dconfig=[dspace]/config/dspace.cfg update
- Deploy the the new webapps:
Code Block cp -R /[dspace]/webapps/* /[tomcat]/webapps
- Restart Tomcat Tomcat
When you restart the web server you should see your customized JSPs.