en:user:sample_interface_modifications
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:user:sample_interface_modifications [2016/05/12 01:53] – [Plain Lists] kjdon | en:user:sample_interface_modifications [2016/05/12 01:53] (current) – removed kjdon | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | ====== Sample Greenstone3 Format and Interface Modifications ====== | ||
| - | This page provides examples of format statements and interface modifications. Many of these changes can be made at either the collection, interface or site level. | ||
| - | |||
| - | ===== General ===== | ||
| - | |||
| - | ==== Footer modification (text on left, image on right) ==== | ||
| - | {{ : | ||
| - | |||
| - | In the '' | ||
| - | in '' | ||
| - | you will see the '' | ||
| - | assumes your image is located in the // | ||
| - | |||
| - | < | ||
| - | <!-- Template controlling the footer. --> | ||
| - | < | ||
| - | <div id=" | ||
| - | <div id=" | ||
| - | Greenstone Digital Library< | ||
| - | </ | ||
| - | <div id=" | ||
| - | <img src=" | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | and (optionally) add style to the footer by modifying '' | ||
| - | adding the following: | ||
| - | |||
| - | < | ||
| - | #gs_footer { | ||
| - | height: 50px; | ||
| - | } | ||
| - | |||
| - | # | ||
| - | width: 50%; | ||
| - | text-align: left; | ||
| - | float: left; | ||
| - | padding-left: | ||
| - | margin-top: -2px; | ||
| - | } | ||
| - | |||
| - | # | ||
| - | width: 49%; | ||
| - | text-align: right; | ||
| - | float: left; | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | To modify the footer for only a specific collection, open the collection in the GLI; in the | ||
| - | **Format Features** section of the **Format** panel, | ||
| - | add the following to the end of the **global** feature (this | ||
| - | assumes your image is located in the // | ||
| - | |||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | |||
| - | <!-- Template controlling the footer. --> | ||
| - | < | ||
| - | <div id=" | ||
| - | <div id=" | ||
| - | Greenstone Digital Library< | ||
| - | University of Waikato | ||
| - | </ | ||
| - | <div id=" | ||
| - | <img src=" | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | |||
| - | To also add style to the footer, create a file called '' | ||
| - | collection' | ||
| - | feature of the **Format Features** section, add: | ||
| - | |||
| - | < | ||
| - | <!-- Template adding stylesheet to html header --> | ||
| - | < | ||
| - | <link href=" | ||
| - | </ | ||
| - | </ | ||
| - | ===== Document Display ===== | ||
| - | ==== Image Display Example ==== | ||
| - | |||
| - | {{ : | ||
| - | |||
| - | < | ||
| - | |||
| - | < | ||
| - | |||
| - | < | ||
| - | |||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - |  | ||
| - | <link href=" | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | <div class=" | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | <div class=" | ||
| - | <p> | ||
| - | <i> | ||
| - | < | ||
| - | </i> | ||
| - | </p> | ||
| - | </ | ||
| - | </ | ||
| - | <div class=" | ||
| - | <h1> | ||
| - | < | ||
| - | </h1> | ||
| - | <ul> | ||
| - | <li> | ||
| - | < | ||
| - | < | ||
| - | </li> | ||
| - | <li> | ||
| - | < | ||
| - | < | ||
| - | </li> | ||
| - | < | ||
| - | </ul> | ||
| - | </ | ||
| - | <br class=" | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | |||
| - | This code provides a nice way to display images with their metadata on the document display page. Provides an example of gsf:switch and gsf:when statements, as well as linking to a CSS file. | ||
| - | |||
| - | This format statement will display any document with a FileFormat (ex.FileFormat) of | ||
| - | " | ||
| - | dc.Title as a heading and the document text. | ||
| - | |||
| - | If you have images of many different formats (png, jpg, jpeg, gif), you could replace the lines: | ||
| - | |||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | With the following: | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | </ | ||
| - | |||
| - | For the image display to appear as shown in the image, | ||
| - | you must include the following CSS in a file called imageDisplay.css in your collection' | ||
| - | |||
| - | < | ||
| - | div.separating-line { | ||
| - | border-bottom: | ||
| - | padding: 5px; | ||
| - | clear: both; | ||
| - | } | ||
| - | |||
| - | div.doc-image { | ||
| - | float: left; | ||
| - | margin-left: | ||
| - | padding-right: | ||
| - | } | ||
| - | |||
| - | div.doc-image img { | ||
| - | border: 1px solid #5d5f60; | ||
| - | padding: 5px; | ||
| - | |||
| - | } | ||
| - | |||
| - | div.doc-quote p { | ||
| - | width: 500px; | ||
| - | } | ||
| - | |||
| - | div.doc-info h4 { | ||
| - | margin-top: 15px; | ||
| - | margin-bottom: | ||
| - | } | ||
| - | |||
| - | div.doc-info ul { | ||
| - | list-style-type: | ||
| - | color: #5d5f60; | ||
| - | margin-top: 0px; | ||
| - |  | ||
| - | } | ||
| - | |||
| - | div.doc-info ul li { | ||
| - | line-height: | ||
| - | |||
| - | } | ||
| - | </ | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
en/user/sample_interface_modifications.1463018006.txt.gz · Last modified: 2016/05/12 01:53 by kjdon
                
                