Changeset 26050 for documentation

Show
Ignore:
Timestamp:
31.07.2012 16:48:22 (7 years ago)
Author:
ak19
Message:

1. Updated AssocFile? tutorial with reference to gsf:link type=equivdoc, and the Pointing To Docs On The Web tutorial with referene to gsf:link type=web (and gsf:icon of type web). 2. Instead of choose-metadata on title being in the browse format feature, it is in the global format feature under template name choose-title. The browse format feature merely does a call-template on the choose-title template.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • documentation/trunk/tutorials/xml-source/tutorial_en.xml

    r26037 r26050  
    911911    &lt;/td&gt;<br/> 
    912912</Format> 
    913 <Text id="fw-8-3">There is no <i>exp.Title</i> metadata, so remove that element from the following</Text> 
     913<Text id="fw-8-3">Next edit the <AutoText text="global"/> format features: there is no <i>exp.Title</i> metadata, so remove that element from the following</Text> 
    914914<Format>&lt;gsf:choose-metadata&gt;<br/> 
    915915          <Tab n="1"/>&lt;gsf:metadata name=&quot;dc.Title&quot;/&gt;<br/> 
     
    10271027    &lt;td valign=&quot;top&quot;&gt;<br /> 
    10281028      <Tab n="1"/>&lt;gsf:link type=&quot;document&quot;&gt;<br /> 
    1029         <Tab n="2"/>&lt;gsf:choose-metadata&gt;<br /> 
    1030           <Tab n="3"/>&lt;gsf:metadata name=&quot;dc.Title&quot;/&gt;<br /> 
    1031           <Tab n="3"/>&lt;gsf:metadata name=&quot;ex.dc.Title&quot;/&gt;<br /> 
    1032           <Tab n="3"/>&lt;gsf:metadata name=&quot;Title&quot;/&gt;<br /> 
    1033           <Tab n="3"/>&lt;gsf:default&gt;Untitled&lt;/gsf:default&gt;<br /> 
    1034         <Tab n="2"/>&lt;/gsf:choose-metadata&gt;<br /> 
     1029        <Tab n="2"/>&lt;xsl:call-template name=&quot;choose-title&quot;/&gt;<br /> 
    10351030        <Tab n="2"/>&lt;gsf:switch&gt;<br /> 
    10361031          <Tab n="3"/>&lt;gsf:metadata name=&quot;Source&quot;/&gt;<br /> 
     
    14951490<NumberedItem> 
    14961491<Text id="assoc-files-15">Building the collection at this point will have the effect that internally Greenstone will have captured this relationship between the different file versions of the same documents; however, until we make some adjustments to the format statements, none of this will be visible to the end-user. The collection built at this point (with default settings) allows a user to search the text from the Word document, browse by title metadata and so on, but when it comes to the point of viewing a document there will only be the choice of viewing the Word version of the document, or the HTML version that Greenstone automatically generates by processing the Word document.</Text> 
    1497 <Text id="assoc-files-16">To go beyond this, the key change to make is to alter the part of the <MajorVersion number="2">default VList statement that says:</MajorVersion><MajorVersion number="3"><AutoText text="documentNode"/> template of the <AutoText text="browse"/> format statement which chooses between <Format>thumbicon</Format> and <Format>srcicon</Format>, and replace this with a reference to <Format>equivDocIcon</Format> instead.</MajorVersion></Text> 
     1492<Text id="assoc-files-16">To go beyond this, the key change to make is to alter the part of the <MajorVersion number="2">default VList statement that says:</MajorVersion><MajorVersion number="3"><AutoText text="documentNode"/> template of the <AutoText key="coredm::_Global:labelBrowse_"/> format statement which chooses between <Format>thumbicon</Format> and <Format>srcicon</Format>, and replace this with a reference to <Format>equivDocIcon</Format> instead.</MajorVersion></Text> 
    14981493<MajorVersion number="2"> 
    14991494<Format> 
     
    15291524<MajorVersion number="3"> 
    15301525<Text id="assoc-files-20-3">The second (more minor) change in this edit is to simplify the statement a bit. The original uses a <Format>&lt;gsf:choose-metadata/&gt;</Format> statement to show a thumbnail version of the document, if Greenstone has one, in preference over the source icon. Since in this collection we have no thumbnails generated, it has been simplified by eliminating the <Format>&lt;gsf:choose-metadata/&gt;</Format> combination and going straight to the <AutoText text="ex.equivDocIcon" type="italics"/> metadata item.</Text> 
    1531 <Text id="assoc-files-21-3">To make the change then, switch to the <AutoText key="glidict::GUI.Format"/> panel and edit the <AutoText text="documentNode"/> template of the <AutoText text="browse"/> format statement</Text> 
     1526<Text id="assoc-files-21-3">To make the change then, switch to the <AutoText key="glidict::GUI.Format"/> panel and edit the <AutoText text="documentNode"/> template of the <AutoText key="coredm::_Global:labelBrowse_"/> format statement</Text> 
    15321527<table> 
    15331528<th> 
     
    15481543&lt;td valign=&quot;top&quot;&gt;<br /> 
    15491544  <Tab n="1"/>&lt;gsf:link type=&quot;document&quot;&gt;<br /> 
    1550     <Tab n="2"/>&lt;gsf:choose-metadata&gt;<br /> 
    1551       <Tab n="3"/>&lt;gsf:metadata name=&quot;dc.Title&quot;/&gt;<br /> 
    1552       <Tab n="3"/>&lt;gsf:metadata name=&quot;exp.Title&quot;/&gt;<br /> 
    1553       <Tab n="3"/>&lt;gsf:metadata name=&quot;ex.dc.Title&quot;/&gt;<br /> 
    1554       <Tab n="3"/>&lt;gsf:metadata name=&quot;Title&quot;/&gt;<br /> 
    1555       <Tab n="3"/>&lt;gsf:default&gt;Untitled&lt;/gsf:default&gt;<br /> 
    1556     <Tab n="2"/>&lt;/gsf:choose-metadata&gt;<br /> 
     1545    <Tab n="2"/>&lt;xsl:call-template name=&quot;choose-title&quot;/&gt;<br /> 
    15571546  <Tab n="1"/>&lt;/gsf:link&gt;<br /> 
    15581547  <Tab n="1"/>&lt;gsf:switch&gt;<br /> 
     
    15681557<Format> 
    15691558&lt;td valign=&quot;top&quot;&gt;<br /> 
    1570 <highlight> 
    1571   <Tab n="1"/>&lt;gsf:metadata name=&quot;equivDocLink&quot;/&gt;<br /> 
    1572   <Tab n="1"/>&lt;gsf:metadata name=&quot;equivDocIcon&quot;/&gt;<br /> 
    1573   <Tab n="1"/>&lt;gsf:metadata name=&quot;/equivDocLink&quot;/&gt; 
    1574 </highlight><br /> 
     1559  <highlight><Tab n="1"/>&lt;gsf:link type=&quot;equivdoc&quot;/&gt;</highlight><br /> 
    15751560&lt;/td&gt;<br /> 
    15761561&lt;td valign=&quot;top&quot;&gt;<br /> 
    15771562  <Tab n="1"/>&lt;gsf:link type=&quot;document&quot;&gt;<br /> 
    1578     <Tab n="2"/>&lt;gsf:choose-metadata&gt;<br /> 
    1579       <Tab n="3"/>&lt;gsf:metadata name=&quot;dc.Title&quot;/&gt;<br /> 
    1580       <Tab n="3"/>&lt;gsf:metadata name=&quot;exp.Title&quot;/&gt;<br /> 
    1581       <Tab n="3"/>&lt;gsf:metadata name=&quot;ex.dc.Title&quot;/&gt;<br /> 
    1582       <Tab n="3"/>&lt;gsf:metadata name=&quot;Title&quot;/&gt;<br /> 
    1583       <Tab n="3"/>&lt;gsf:default&gt;Untitled&lt;/gsf:default&gt;<br /> 
    1584     <Tab n="2"/>&lt;/gsf:choose-metadata&gt;<br /> 
     1563    <Tab n="2"/>&lt;xsl:call-template name=&quot;choose-title&quot;/&gt;<br /> 
    15851564  <Tab n="1"/>&lt;/gsf:link&gt;<br />  
    15861565  <Tab n="1"/>&lt;gsf:switch&gt; 
     
    20121991</NumberedItem> 
    20131992<NumberedItem> 
    2014 <Text id="0430">To make use of the new URL metadata, the icon link must be changed to serve up the original URL rather than the copy stored in the digital library. Go to the <AutoText key="glidict::GUI.Format"/> panel, select the <AutoText key="glidict::CDM.GUI.Formats"/> section and edit the <MajorVersion number="2"><AutoText text="VList" /></MajorVersion><MajorVersion number="3"><AutoText text="documentNode"/> template of the <AutoText text="browse"/></MajorVersion> format statement by replacing</Text> 
     1993<Text id="0430">To make use of the new URL metadata, the icon link must be changed to serve up the original URL rather than the copy stored in the digital library. Go to the <AutoText key="glidict::GUI.Format"/> panel, select the <AutoText key="glidict::CDM.GUI.Formats"/> section and edit the <MajorVersion number="2"><AutoText text="VList" /></MajorVersion><MajorVersion number="3"><AutoText text="documentNode"/> template of the <AutoText key="coredm::_Global:labelBrowse_"/></MajorVersion> format statement by replacing</Text> 
    20151994<MajorVersion number="2"> 
    20161995<Format>[link][icon][/link]</Format> 
     
    20262005<Text id="0431">with</Text> 
    20272006<Format> 
    2028   &lt;gsf:metadata name=&quot;weblink&quot;/&gt;<br/> 
    2029   &lt;gsf:metadata name=&quot;webicon&quot;/&gt;<br/> 
    2030   &lt;gsf:metadata name=&quot;/weblink&quot;/&gt; 
     2007   &lt;gsf:link type=&quot;web&quot;&gt;<br /> 
     2008     <Tab n="1"/>&lt;gsf:icon type=&quot;web&quot;/&gt;<br /> 
     2009   &lt;/gsf:link&gt;<br /> 
    20312010</Format> 
    20322011</MajorVersion> 
     
    35933572</NumberedItem> 
    35943573<NumberedItem> 
    3595 <Text id="0780">Now select the <AutoText key="glidict::CDM.GUI.Formats"/> section of the <AutoText key="glidict::GUI.Format"/> panel, and select the <MajorVersion number="2"><AutoText text="VList" /></MajorVersion><MajorVersion number="3"><AutoText text="browse"/></MajorVersion> format statement in the list of assigned format statements. Add the following text before the final <Format>&lt;/td&gt;</Format><MajorVersion number="3"> of the <AutoText text="documentNode"/> template</MajorVersion>:</Text> 
     3574<Text id="0780">Now select the <AutoText key="glidict::CDM.GUI.Formats"/> section of the <AutoText key="glidict::GUI.Format"/> panel, and select the <MajorVersion number="2"><AutoText text="VList" /></MajorVersion><MajorVersion number="3"><AutoText key="coredm::_Global:labelBrowse_"/></MajorVersion> format statement in the list of assigned format statements. Add the following text before the final <Format>&lt;/td&gt;</Format><MajorVersion number="3"> of the <AutoText text="documentNode"/> template</MajorVersion>:</Text> 
    35963575<Format> 
    35973576<MajorVersion number="2">{If}{[ex.equivlink],&lt;br&gt;Also available as:[ex.equivlink]}</MajorVersion> 
     
    36173596<MajorVersion number="2">{Or}{[dc.Title],[exp.Title],[ex.Title],Untitled}</MajorVersion> 
    36183597<MajorVersion number="3"> 
    3619       &lt;gsf:choose-metadata&gt;<br /> 
    3620         <Tab n="1"/>&lt;gsf:metadata name=&quot;dc.Title&quot;/&gt;<br /> 
    3621         <Tab n="1"/>&lt;gsf:metadata name=&quot;exp.Title&quot;/&gt;<br /> 
    3622         <Tab n="1"/>&lt;gsf:metadata name=&quot;ex.dc.Title&quot;/&gt;<br /> 
    3623         <Tab n="1"/>&lt;gsf:metadata name=&quot;Title&quot;/&gt;<br /> 
    3624         <Tab n="1"/>&lt;gsf:default&gt;Untitled&lt;/gsf:default&gt;<br /> 
    3625       &lt;/gsf:choose-metadata&gt; 
     3598  &lt;xsl:call-template name=&quot;choose-title&quot;/&gt; 
    36263599</MajorVersion> 
    36273600</Format>