en:user:expanding_on_gs3_customisation_tutorials
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:user:expanding_on_gs3_customisation_tutorials [2020/09/04 00:15] – [Adding support for collection groups] anupama | en:user:expanding_on_gs3_customisation_tutorials [2023/03/13 01:46] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | |||
======Expanding on the GS3 Customisation tutorials====== | ======Expanding on the GS3 Customisation tutorials====== | ||
This wiki explains how to introduce support for other Greenstone 3 features into the custom '' | This wiki explains how to introduce support for other Greenstone 3 features into the custom '' | ||
- | =====Adding support for collection groups====== | + | =====Displaying |
If you have edited '' | If you have edited '' | ||
Line 106: | Line 109: | ||
- | =====Adding | + | ==== Advanced: if laying out groups column-wise in table cells of an html table ==== |
+ | There is some complexity if you want every 2 groups (or collections) appearing in a separate ''< | ||
+ | |||
+ | The following modifications to '' | ||
+ | |||
+ | These modifications also optionally provide | ||
+ | |||
+ | First follow | ||
+ | |||
+ | 1. Locate: | ||
+ | < | ||
+ | Replace with: | ||
+ | < | ||
+ | <!-- < | ||
+ | |||
+ | <!-- output the groups, the following outputs them column wise --> | ||
+ | < | ||
+ | <!-- then output the collectionList in a final column --> | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | 2. Locate: | ||
+ | < | ||
+ | Replace with: | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | 3. Locate: | ||
+ | < | ||
+ | Replace with: | ||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | 4. Before the '' | ||
+ | < | ||
+ | <!-- To organise table cells, <td>, one column at a time: | ||
+ | https:// | ||
+ | will not work, since we have an if-statement inside the for loop to filter for groups. | ||
+ | Instead, counting only the groups using Borodin' | ||
+ | https:// | ||
+ | |||
+ | While that gives us a proper counter not dependent on position(), it doesn' | ||
+ | that we need to open a tag (td) on odd count and close it on even. | ||
+ | For that, the solution is at: | ||
+ | https:// | ||
+ | |||
+ | General: https:// | ||
+ | --> | ||
+ | < | ||
+ | < | ||
+ | <xsl:if test=" | ||
+ | <td style=" | ||
+ | < | ||
+ | <!-- calls the template match=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <!-- We want collections to appear in a separate and single column. | ||
+ | So we don't do even odd columns here. --> | ||
+ | < | ||
+ | <td style=" | ||
+ | < | ||
+ | <!-- why does calling the template match=" | ||
+ | attr this time NOT work? --> | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | If yo were to set a '' | ||
+ | |||
+ | |||
+ | =====Adding the Depositor link and Depositor | ||
1. Edit '' | 1. Edit '' | ||
< | < | ||
Line 194: | Line 281: | ||
Refresh your digital library page in your browser, visit a collection and look for the new dropdown in the basic search form area. | Refresh your digital library page in your browser, visit a collection and look for the new dropdown in the basic search form area. | ||
- | ==== Adding in links to available search forms ==== | + | =====Adding in links to available search forms===== |
Collections tend to have text, fielded and advanced search forms turned on by default. The perrin interface provides links to these in a dropdown in the navigation bar for the collection. | Collections tend to have text, fielded and advanced search forms turned on by default. The perrin interface provides links to these in a dropdown in the navigation bar for the collection. | ||
en/user/expanding_on_gs3_customisation_tutorials.1599178507.txt.gz · Last modified: 2020/09/04 00:15 by anupama