User Tools

Site Tools


en:user:gs3_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 revisionBoth sides next revision
en:user:gs3_format_statements [2016/05/23 01:22] – [Greenstone 3 Format Statements] kjdonen:user:gs3_format_statements [2016/10/25 00:32] kjdon
Line 127: Line 127:
  
  
-===== Metadata =====+===== Document Metadata =====
  
 Any metadata that has been extracted from or added to documents can be referenced in format statements using the ''gsf:metadata'' tag. Metadata is referred to by its element name. For example, if you have provided ''dc.Title'' metadata for your documents, ''<gsf:metadata name="dc.Title"/>'' will display these values. Any metadata that has been extracted from or added to documents can be referenced in format statements using the ''gsf:metadata'' tag. Metadata is referred to by its element name. For example, if you have provided ''dc.Title'' metadata for your documents, ''<gsf:metadata name="dc.Title"/>'' will display these values.
  
-If you want to display the file name for documents, ''<gsf:metadata name="Source"/>'' can be used to display them; to display the number of pages/sections in a document, use ''<gsf:metadata name='numDocs'/>'' to display the number of pages/sections in a document. //(Note that the metadata name does not include the ''ex.'' namespace. Extracted metadata is referred to without the namespace in format statements. Metadata in all other namespaces--e.g. ''dc.'', ''gs.'', ''dls.'', etc.--__does__ require the namespace, as shown in the ''dc.Title'' example above.)//+If you want to display the file name for documents, use ''<gsf:metadata name="Source"/>''. //(Note that the metadata name does not include the ''ex.'' namespace. Extracted metadata is referred to without the namespace in format statements. Metadata in all other namespaces--e.g. ''dc.'', ''gs.'', ''dls.'', etc.--__does__ require the namespace, as shown in the ''dc.Title'' example above.)//
  
  
Line 161: Line 161:
   * ''<gsf:metadata name="Title" select="children"/>'' displays the titles for sections 2.5.3.1, 2.5.3.2, etc.   * ''<gsf:metadata name="Title" select="children"/>'' displays the titles for sections 2.5.3.1, 2.5.3.2, etc.
   * ''<gsf:metadata name="Title" select="descendents"/>'' displays the titles for sections 2.5.3.1, 2.5.3.1.1, 2.5.3.1.2, 2.5.3.2, 2.5.3.2.1, etc.   * ''<gsf:metadata name="Title" select="descendents"/>'' displays the titles for sections 2.5.3.1, 2.5.3.1.1, 2.5.3.1.2, 2.5.3.2, 2.5.3.2.1, etc.
 +
 +===== Classifier Metadata =====
 +
 +Metadata for classifiers is referenced in the same way as for a document, like <gsf:metadata name="Title"/>. Classifier nodes only have a very limited set of metadata however.
 +  * Title - the Title metadata gives the name of the classifier or bookshelf. One thing to note is that a bookshelf label is always stored as Title metadata, regardless of what metadata the classifier was built on.
 +  * numleafdocs - this gives the number of documents underneath this part of the classifier.
  
 ===== Conditional ===== ===== Conditional =====
en/user/gs3_format_statements.txt · Last modified: 2023/03/13 20:54 by kjdon