Page History
...
Rebuild the DSpace installation package by running the following command from your [dspace-source]/dspace/ directory:
Code Block mvn package
Update all DSpace webapps to [dspace]/webapps by running the following command from your [dspace-source]/dspace/target/dspace-installer 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
When you restart the web server you should see your customized JSPs.
Styling the Simple Item View
DSpace offers following CSS classes in the HTML output to style metadata labels and values in the simple item view, :
- metadataFieldLabel
- metadataFieldValue
Each label and value gets enhanced by a CSS class identifying the metadata field by its schema, element and qualifier. The pattern for this classes is: schema_element_qualifier. Examples:
- Select the CSS classes metadataFieldValue and dc_title to style the title element.
- Select the CSS classes metadataFieldValue and dc_description_abstract to style the abstract element
Code Block | ||
---|---|---|
| ||
/* Make title bold */
.metadataFieldValue.dc_title {
font-weight: bold;
}
/* Make abstract italic and enforce the display of its line breaks */
.metadataFieldValue.dc_description_abstract {
white-space: pre-line;
font-style: italic;
} |
Overview
Content Tools