# Changeset 26166

Show
Ignore:
Timestamp:
11.09.2012 14:10:05 (7 years ago)
Message:

Location:
main/trunk/greenstone3/docs/manual
Files:
2 modified

Unmodified
Removed
• ## main/trunk/greenstone3/docs/manual/manual.tex

r26102 r26166
724724\subsection{Formatting the collection}\label{sec:formatstmt}
725725
726\subsubsection{Modifying the format'' xslt templates}
726727Part of collection design involves deciding how the collection should look. \gsiii\  has a default 'look' for a collection, so this is optional. However, the default may not suit the purposes of some collections, so many parts to the look of a collection can be determined by the collection designer.
727728

785786\hline
786787\gst{<gsf:metadata name='Title'/>} & All the values of a metadata element for the current document or section, in this case, Title\\
787 \gst{<gsf:metadata name='Title' select='select-type' [separator='y' pos='first|last|n']/>} & A more extended selection of metadata values. The select field can be one of those shown in Table~\ref{tab:gsf-select-types}. There are two optional attributes: separator gives a String that will be used to separate the fields, default is , , and pos can be set to return either the first, last or nth value for that metadata at each section.\\
788\gst{<gsf:metadata name='Title' select='select-type' [separator='y' prefix="p" suffix="s" pos='first|last|n']/>} & A more extended selection of metadata values. The select field can be one of those shown in Table~\ref{tab:gsf-select-types}. There are some optional attributes: separator gives a String that will be used to separate the fields (default is , ), prefix and suffix give strings that will be output before and after each field, and pos can be set to return either the first, last or nth value for that metadata at each section.\\
789\gst{<gsf:metadata name='Title'> <separator>y</separator> <prefix>p</prefix> <suffix>s</suffix> </gsf:metadata>} & separator, prefix and suffix can all be specified as elements instead of attributes. This format allows for HTML tags to be used. e.g. \gst{<br/>} as a separator. \\
788790\gst{<gsf:metadata name='Date' format='formatDate'/>} & The value of a metadata element for the current document, formatted in some way. Current formatting options available are listed in Table~\ref{tab:gsf-process-types}. \\
789791\hline