User Tools

Site Tools


en:user:gs2_format_statements

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:user:gs2_format_statements [2016/05/12 00:11] kjdonen:user:gs2_format_statements [2023/03/13 01:46] (current) – external edit 127.0.0.1
Line 1: Line 1:
-======Greenstone 2 Format Statements======+ 
 + 
 + 
 +======Greenstone 2 Formatting======
  
  
 =====Site-wide formatting options===== =====Site-wide formatting options=====
-These should be placed in //gsdl/etc/main.cfg//.+These should be placed in //greenstone2/etc/main.cfg//.
  
 Syntax: **SiteFormat <option-name> <option-value>** Syntax: **SiteFormat <option-name> <option-value>**
Line 13: Line 16:
  
 =====Collection-specific formatting options===== =====Collection-specific formatting options=====
-These should be placed in gsdl/collect/<collname>/etc/collect.cfg.+These should be placed in //greenstone2/collect/<collname>/etc/collect.cfg//.
  
 Syntax: **format <option-name> <option-value>** Syntax: **format <option-name> <option-value>**
Line 34: Line 37:
  
 =====Formatting Lists===== =====Formatting Lists=====
-The standard use of format statements is for the lists in search results, classifiers etc. Here is a list of the various lists available for format, and what they control. Note that classifiers are numbered from 1 upwards, in the order that they appear in the config file.+The standard use of format statements is for the lists in search results, classifiers etc. Here is a list of the various lists available for format, and what they control. Note that classifiers are numbered from 1 upwards, in the order that they appear in the config file. The value for all of these is a format string.
  
 ^Item^Description^ ^Item^Description^
Line 48: Line 51:
  
 =====Formatstring items===== =====Formatstring items=====
 +
 +Format strings (for lists, and document display) can contain html, plus the following special format items.
  
 ^Item^Description^ ^Item^Description^
Line 122: Line 127:
 |ew| |ends with| |ew| |ends with|
  
-//Note that only eq and ne are available for Greenstone versions 2.60 and earlier.// 
  
  
Line 132: Line 136:
 ===== Additional Resources ===== ===== Additional Resources =====
  
-As writing format statements can be tricky, we have a [[en:user:sample_format_statements|sample format statements]] page, which provides sample code for the following: +As writing format statements can be tricky, we have a [[en:user:gs2_sample_format_statements|sample format statements]] page, which provides sample code for the following: 
-  * [[en:user:sample_format_statements#Hyperlinking individual metadata elements]] +  * [[en:user:gs2_sample_format_statements#Hyperlinking individual metadata elements]] 
-  * [[en:user:sample_format_statements#Hiding the "This document has no text" dummy text]] +  * [[en:user:gs2_sample_format_statements#Hiding the "This document has no text" dummy text]] 
-  * [[en:user:sample_format_statements#Suppressing link to Greenstone version of a document]] +  * [[en:user:gs2_sample_format_statements#Suppressing link to Greenstone version of a document]] 
-  * [[en:user:sample_format_statements#Reference an associated image]] +  * [[en:user:gs2_sample_format_statements#Reference an associated image]] 
-  * [[en:user:sample_format_statements#Linking to other sections of a document]] +  * [[en:user:gs2_sample_format_statements#Linking to other sections of a document]] 
-  * [[en:user:sample_format_statements#Linking to the next or previous search result from a document page]] +  * [[en:user:gs2_sample_format_statements#Linking to the next or previous search result from a document page]] 
-  * [[en:user:sample_format_statements#Add a Facebook "Like" button]] +  * [[en:user:gs2_sample_format_statements#Add a Facebook "Like" button]] 
-  * [[en:user:sample_format_statements#Displaying file size in kB or MB]] +  * [[en:user:gs2_sample_format_statements#Displaying file size in kB or MB]] 
-  * [[en:user:sample_format_statements#Linking documents in different collections together]]+  * [[en:user:gs2_sample_format_statements#Linking documents in different collections together]]
  
en/user/gs2_format_statements.1463011907.txt.gz · Last modified: 2016/05/12 00:11 by kjdon