Ignore:
Timestamp:
2013-11-12T14:17:38+13:00 (10 years ago)
Author:
jlwhisler
Message:

Made a few small changes to wording to make it clearer. Made several changes to how the format statements are presented to try to make it clearer which parts of the format feature you are changing.

File:
1 edited

Legend:

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

    r28600 r28614  
    617617<Version initial="2.60" current="2.86|3.05"/>
    618618<Content>
    619 <NumberedItem>
    620 <Text id="0338aa">Using your Windows file browser, locate the folder <Path>sample_files &rarr; images &rarr; image-e</Path>. Copy this entire folder into your <MajorVersion number="2"><Path>Greenstone &rarr; collect</Path> folder.</MajorVersion><MajorVersion number="3"><Path>Greenstone &rarr; web &rarr; sites &rarr; localsite &rarr; collect</Path> folder.</MajorVersion></Text>
     619<Comment>
     620<Text id="sic-c1">In this tutorial, we create a new collection that is based on the configuration of another collection.</Text>
     621</Comment>
     622<NumberedItem>
     623<Text id="0338aa">In a file browser, locate the folder <Path>sample_files &rarr; images &rarr; image-e</Path>. Copy this entire folder into your <MajorVersion number="2"><Path>Greenstone &rarr; collect</Path> folder.</MajorVersion><MajorVersion number="3"><Path>Greenstone &rarr; web &rarr; sites &rarr; localsite &rarr; collect</Path> folder.</MajorVersion></Text>
    621624</NumberedItem>
    622625<NumberedItem>
     
    12271230<Version initial="2.70" current="2.86|3.05"/>
    12281231<Content>
    1229 <Text id="ep-2">Greenstone converts PDF files to HTML using third-party software: <AutoText text="pdftohtml.pl" type="italics"/>. This lets users view these documents even if they don't have the PDF software installed. Unfortunately, sometimes the formatting of the resulting HTML files is not so good.</Text>
    1230 <Text id="ep-3">This exercise explores some extra options to the PDF plugin which may produce a nicer version for display. Some of these options use the standard pdftohtml program, others use ImageMagick and Ghostscript to convert the file to a series of images. Ghostscript is a program that can convert Postscript and PDF files to other formats. You can download it from <Link>http://www.cs.wisc.edu/~ghost/</Link> (follow the link to the current stable release).</Text>
     1232<Text id="ep-2">Greenstone converts PDF files to HTML using third-party software: <AutoText text="pdftohtml.pl" type="italics"/>. This lets users view these documents even if they don't have the PDF software installed. Unfortunately, sometimes the formatting of the resulting HTML files is not so good. This exercise explores some extra options to the PDF plugin which may produce a nicer version for display.</Text>
    12311233<NumberedItem>
    12321234<Text id="ep-3a">In the Librarian Interface, start a new collection called "PDF collection" and base it on <AutoText key="glidict::NewCollectionPrompt.NewCollection"/>.</Text>
     
    12541256<NumberedItem>
    12551257<Text id="ep-6">In the <AutoText key="glidict::CDM.GUI.Plugins"/> section of the <AutoText key="glidict::GUI.Design"/> panel, configure <AutoText text="PDFPlugin"/>. Switch on the <AutoText text="use_sections"/> option. </Text>
    1256 <Text id="ep-6a">In the <AutoText key="glidict::CDM.GUI.Indexes"/> section, check the <AutoText key="glidict::CDM.LevelManager.Section"/> checkbox to build the indexes on section level as well as document level.</Text>
     1258<Text id="ep-6a">In the <AutoText key="glidict::CDM.GUI.Indexes"/> section, ensure that both the  <AutoText key="glidict::CDM.LevelManager.Section"/> and <AutoText key="glidict::CDM.LevelManager.Document"/> boxes are checked. This will build the indexes on both the section level and the document level.</Text>
    12571259<Text id="ep-7"><b>Build</b> and <b>preview</b> the collection. View the text versions of some of the PDF documents. <MajorVersion number="2">Note that these are now split into a series of pages, and a "go to page" box is provided.
    12581260</MajorVersion>
     
    19051907</Comment>
    19061908<NumberedItem>
    1907 <MajorVersion number="2"><Text id="0475">Delete the contents of the <AutoText key="glidict::CDM.FormatManager.Editor"/> box and replace it with this simpler version:</Text></MajorVersion>
    1908 <MajorVersion number="3"><Text id="0475-3">Replace the <AutoText text="documentNode"/> template of the <AutoText text="browse"/> format feature with:</Text></MajorVersion>
    1909 <Format>
    1910 <MajorVersion number="2">
     1909<MajorVersion number="2">
     1910<Text id="0475">Delete the contents of the <AutoText key="glidict::CDM.FormatManager.Editor"/> box and replace it with this simpler version:</Text>
     1911<Format>
    19111912&lt;td&gt;[link][icon][/link]&lt;/td&gt; <br/>
    19121913&lt;td&gt;[ex.Title]&lt;br&gt;<br/>
    19131914&nbsp;&nbsp;&nbsp;&nbsp;&lt;i&gt;([ex.Source])&lt;/i&gt;<br/>
    19141915&lt;/td&gt;
    1915 </MajorVersion>
    1916 <MajorVersion number="3">
     1916</Format>
     1917</MajorVersion>
     1918<MajorVersion number="3">
     1919<Text id="0475-3">In the <AutoText text="browse"/> format feature, replace the default <AutoText text="documentNode"/> template shown on the left with the simpler version on the right. <i>(The highlighted lines on the left are the ones that have been removed or modified.)</i></Text>
     1920<table>
     1921<th>
     1922<td><Text id="format-tudor-1"><b><Tab n="1"/>Change:</b></Text></td>
     1923<td><Text id="format-tudor-2"><b>To:</b></Text></td>
     1924</th>
     1925<tr>
     1926<td valign="bottom">
     1927<Format>
     1928 &lt;gsf:template match="documentNode"&gt;<br/>
     1929    <Tab n="1"/>&lt;td valign="top"&gt;<br/>
     1930      <Tab n="2"/>&lt;gsf:link type="document"&gt;<br/>
     1931        <Tab n="3"/>&lt;gsf:icon type="document"/&gt;<br/>
     1932      <Tab n="2"/>&lt;/gsf:link&gt;<br/>
     1933    <Tab n="1"/>&lt;/td&gt;<br/>
     1934    <Tab n="1"/><highlight>&lt;td valign="top"&gt;</highlight><br/>
     1935     <Tab n="2"/><highlight>&lt;gsf:link type="source"&gt;</highlight><br/>
     1936        <Tab n="3"/><highlight>&lt;gsf:choose-metadata&gt;</highlight><br/>
     1937          <Tab n="4"/><highlight>&lt;gsf:metadata name="thumbicon"/&gt;</highlight><br/>
     1938          <Tab n="4"/><highlight>&lt;gsf:metadata name="srcicon"/&gt;</highlight><br/>
     1939        <Tab n="3"/><highlight>&lt;/gsf:choose-metadata&gt;</highlight><br/>
     1940      <Tab n="2"/><highlight>&lt;/gsf:link&gt;</highlight><br/>
     1941   <Tab n="1"/><highlight>&lt;/td&gt;</highlight><br/>
     1942   <Tab n="1"/>&lt;td valign="top"&gt;<br/>
     1943     <Tab n="2"/>&lt;gsf:link type="document"&gt;<br/>
     1944 <highlight>&lt;!--</highlight><br/>
     1945 <highlight>Defined in the global format statement</highlight><br/>
     1946 <highlight>--&gt;</highlight><br/>
     1947         <Tab n="3"/><highlight>&lt;xsl:call-template name="choose-title"/&gt;</highlight><br/>
     1948         <Tab n="3"/><highlight>&lt;gsf:switch&gt;</highlight><br/>
     1949           <Tab n="4"/><highlight>&lt;gsf:metadata name="Source"/&gt;</highlight><br/>
     1950           <Tab n="4"/><highlight>&lt;gsf:when test="exists"&gt;</highlight><br/>
     1951           <Tab n="5"/>&lt;br/&gt;<br/>
     1952          <Tab n="5"/>&lt;i&gt;(&lt;gsf:metadata name="Source"/&gt;)&lt;/i&gt;<br/>
     1953           <Tab n="4"/><highlight>&lt;/gsf:when&gt;</highlight><br/>
     1954         <Tab n="3"/><highlight>&lt;/gsf:switch&gt;</highlight><br/>
     1955       <Tab n="2"/>&lt;/gsf:link&gt;<br/>
     1956     <Tab n="1"/>&lt;/td&gt;<br/>
     1957&lt;/gsf:template&gt;<br/>
     1958</Format>
     1959</td>
     1960<td valign="bottom">
     1961<Format>
    19171962  &lt;gsf:template match=&quot;documentNode&quot;&gt;<br/>
    19181963    <Tab n="1"/>&lt;td valign=&quot;top&quot;&gt;<br/>
     
    19201965        <Tab n="3"/>&lt;gsf:icon type=&quot;document&quot;/&gt;<br/>
    19211966      <Tab n="2"/>&lt;/gsf:link&gt;<br/>
    1922     <Tab n="1"/>&lt;/td&gt;<br/>
     1967    <Tab n="1"/>&lt;/td&gt;<br/><br/><br/><br/><br/><br/><br/><br/><br/>
    19231968    <Tab n="1"/>&lt;td valign=&quot;top&quot;&gt;<br/>
    1924       <Tab n="2"/>&lt;gsf:link type="document"&gt;<br/>
    1925         <Tab n="3"/>&lt;gsf:metadata name=&quot;Title&quot;/&gt;<br/>
     1969      <Tab n="2"/>&lt;gsf:link type="document"&gt;<br/><br/><br/><br/>
     1970        <Tab n="3"/>&lt;gsf:metadata name=&quot;Title&quot;/&gt;<br/><br/><br/><br/>
    19261971        <Tab n="3"/>&lt;br/&gt;<br/>
    1927         <Tab n="3"/>&lt;i&gt;(&lt;gsf:metadata name=&quot;Source&quot;/&gt;)&lt;/i&gt;<br/>
     1972        <Tab n="3"/>&lt;i&gt;(&lt;gsf:metadata name=&quot;Source&quot;/&gt;)&lt;/i&gt;<br/><br/><br/>
    19281973      <Tab n="2"/>&lt;/gsf:link&gt;<br/>
    19291974    <Tab n="1"/>&lt;/td&gt;<br/>
    19301975  &lt;/gsf:template&gt;
    1931 </MajorVersion>
    1932 </Format>
     1976</Format>
     1977</td>
     1978</tr>
     1979</table><br/>
     1980</MajorVersion>
    19331981<Text id="0476"><b>Preview</b> the result (you don't need to build the collection, because changes to format statements take effect <MajorVersion number="2">immediately</MajorVersion><MajorVersion number="3">when you press the <b>Preview Collection</b> button</MajorVersion>). Look <MajorVersion number="2">at some search results and </MajorVersion>at the <MajorVersion number="2"><AutoText key="coredm::_Global:labelTitle_"/></MajorVersion><MajorVersion number="3"><AutoText key="gs3::metadata_names::Title.buttonname" /></MajorVersion> list. <MajorVersion number="2">They are</MajorVersion><MajorVersion number="3">It is</MajorVersion> just the same as before! Under most circumstances this far simpler format statement is entirely equivalent to Greenstone's more complex default.</Text>
    1934 <MajorVersion number="3">
    1935 <Text id="0476-3">We can also reduce the <AutoText text="VList classifierNode"/> template of the <AutoText text="browse"/> format feature further, also without changing the display. Replace it with:</Text>
    1936 <Format>
    1937   &lt;gsf:template match=&quot;classifierNode[@classifierStyle = 'VList']&quot;&gt;<br/>
    1938     <Tab n="1"/>&lt;td valign=&quot;top&quot;&gt;<br/>
    1939       <Tab n="2"/>&lt;gsf:link type=&quot;classifier&quot;&gt;<br/>
    1940         <Tab n="3"/>&lt;gsf:icon type=&quot;classifier&quot;/&gt;<br/>
    1941       <Tab n="2"/>&lt;/gsf:link&gt;<br/>
    1942     <Tab n="1"/>&lt;/td&gt;<br/>
    1943     <Tab n="1"/>&lt;td valign=&quot;top&quot;&gt;<br/>
    1944       <Tab n="2"/>&lt;gsf:metadata name=&quot;Title&quot;/&gt;<br/>
    1945       <Tab n="2"/>&lt;br/&gt;<br/>
    1946       <Tab n="2"/>&lt;i&gt;(&lt;gsf:metadata name=&quot;Source&quot;/&gt;)&lt;/i&gt;<br/>
    1947     <Tab n="1"/>&lt;/td&gt;<br/>
    1948   &lt;/gsf:template&gt;
    1949 </Format>
    1950 </MajorVersion>
    19511982<MajorVersion number="2">
    19521983<Comment>
     
    19601991</MajorVersion>
    19611992<MajorVersion number="3">
    1962 <Text id="0482-3">Since we edited the <AutoText text="browse"/> format feature, the same format statements are used for the titles, and all nodes in the subject hierarchy&mdash;including internal nodes (that is, bookshelves). The <AutoText key="glidict::CDM.FormatManager.Feature"/> menu can be used to restrict a format statement to a specific classifier and its nodes. We will override this format statement for the hierarchical <i>subject</i> classifier. In the <AutoText key="glidict::CDM.FormatManager.Feature"/> menu, scroll down to the item that says</Text>
     1993<Text id="0482-3">Since we edited the <AutoText text="browse"/> format feature, the same format statements are used for documents listed in the <b>titles</b> list classifier and under each of the bookshelf nodes in the <b>subject</b> hierarchy classifier. The <AutoText key="glidict::CDM.FormatManager.Feature"/> menu can be used to restrict a format statement to a specific classifier and its nodes. We will override this format statement for the hierarchical <i>subject</i> classifier. In the <AutoText key="glidict::CDM.FormatManager.Feature"/> menu, scroll down to the item that says</Text>
    19631994</MajorVersion>
    19641995<Indent>
     
    19712002</MajorVersion>
    19722003<MajorVersion number="3">
    1973 <Text id="0484-3">Edit the <AutoText key="glidict::CDM.FormatManager.Editor"/> box below to contain the following format statements for the <AutoText text="documentNode"/> and <AutoText text="VList classifierNode"/> templates. (The changes to the <AutoText text="documentNode"/> template are mostly the same as before, but without reference to the Source document. This time, the <AutoText text="VList classifierNode"/> template is simplified further still.)</Text>
    1974 </MajorVersion>
    1975 <Format>
    1976 <MajorVersion number="2">
     2004<Text id="0484-3">Edit the <AutoText key="glidict::CDM.FormatManager.Editor"/> box, replacing the <AutoText text="documentNode"/> template on the left with the one on the right. (The changes are mostly the same as before, but without reference to the Source document name.)</Text>
     2005</MajorVersion>
     2006
     2007<MajorVersion number="2">
     2008<Format>
    19772009&lt;td&gt;[link][icon][/link]&lt;/td&gt;<br/>
    19782010&lt;td&gt;[ex.Title]&lt;/td&gt;
    1979 </MajorVersion>
    1980 <MajorVersion number="3">
    1981 &lt;gsf:template match=&quot;documentNode&quot;&gt;<br/>
     2011</Format>
     2012</MajorVersion>
     2013<MajorVersion number="3">
     2014<table>
     2015<th>
     2016<td><Text id="format-tudor-3"><b><Tab n="1"/>Change:</b></Text></td>
     2017<td><Text id="format-tudor-4"><b>To:</b></Text></td>
     2018</th>
     2019<tr>
     2020<td valign="bottom">
     2021<Format>
     2022 &lt;gsf:template match="documentNode"&gt;<br/>
     2023    <Tab n="1"/>&lt;td valign="top"&gt;<br/>
     2024      <Tab n="2"/>&lt;gsf:link type="document"&gt;<br/>
     2025        <Tab n="3"/>&lt;gsf:icon type="document"/&gt;<br/>
     2026      <Tab n="2"/>&lt;/gsf:link&gt;<br/>
     2027    <Tab n="1"/>&lt;/td&gt;<br/>
     2028    <Tab n="1"/><highlight>&lt;td valign="top"&gt;</highlight><br/>
     2029     <Tab n="2"/><highlight>&lt;gsf:link type="source"&gt;</highlight><br/>
     2030        <Tab n="3"/><highlight>&lt;gsf:choose-metadata&gt;</highlight><br/>
     2031          <Tab n="4"/><highlight>&lt;gsf:metadata name="thumbicon"/&gt;</highlight><br/>
     2032          <Tab n="4"/><highlight>&lt;gsf:metadata name="srcicon"/&gt;</highlight><br/>
     2033        <Tab n="3"/><highlight>&lt;/gsf:choose-metadata&gt;</highlight><br/>
     2034      <Tab n="2"/><highlight>&lt;/gsf:link&gt;</highlight><br/>
     2035   <Tab n="1"/><highlight>&lt;/td&gt;</highlight><br/>
     2036   <Tab n="1"/>&lt;td valign="top"&gt;<br/>
     2037     <Tab n="2"/>&lt;gsf:link type="document"&gt;<br/>
     2038 <highlight>&lt;!--</highlight><br/>
     2039 <highlight>Defined in the global format statement</highlight><br/>
     2040 <highlight>--&gt;</highlight><br/>
     2041         <Tab n="3"/><highlight>&lt;xsl:call-template name="choose-title"/&gt;</highlight><br/>
     2042         <Tab n="3"/><highlight>&lt;gsf:switch&gt;</highlight><br/>
     2043           <Tab n="4"/><highlight>&lt;gsf:metadata name="Source"/&gt;</highlight><br/>
     2044           <Tab n="4"/><highlight>&lt;gsf:when test="exists"&gt;</highlight><br/>
     2045           <Tab n="5"/><highlight>&lt;br/&gt;</highlight><br/>
     2046          <Tab n="5"/><highlight>&lt;i&gt;(&lt;gsf:metadata name="Source"/&gt;)&lt;/i&gt;</highlight><br/>
     2047           <Tab n="4"/><highlight>&lt;/gsf:when&gt;</highlight><br/>
     2048         <Tab n="3"/><highlight>&lt;/gsf:switch&gt;</highlight><br/>
     2049       <Tab n="2"/>&lt;/gsf:link&gt;<br/>
     2050     <Tab n="1"/>&lt;/td&gt;<br/>
     2051&lt;/gsf:template&gt;<br/>
     2052</Format>
     2053</td>
     2054<td valign="bottom">
     2055<Format>
     2056  &lt;gsf:template match=&quot;documentNode&quot;&gt;<br/>
    19822057    <Tab n="1"/>&lt;td valign=&quot;top&quot;&gt;<br/>
    19832058      <Tab n="2"/>&lt;gsf:link type=&quot;document&quot;&gt;<br/>
    19842059        <Tab n="3"/>&lt;gsf:icon type=&quot;document&quot;/&gt;<br/>
    19852060      <Tab n="2"/>&lt;/gsf:link&gt;<br/>
    1986     <Tab n="1"/>&lt;/td&gt;<br/>
     2061    <Tab n="1"/>&lt;/td&gt;<br/><br/><br/><br/><br/><br/><br/><br/><br/>
    19872062    <Tab n="1"/>&lt;td valign=&quot;top&quot;&gt;<br/>
    1988       <Tab n="2"/>&lt;gsf:metadata name=&quot;Title&quot;/&gt;<br/>
    1989     <Tab n="1"/>&lt;/td&gt;<br/>
    1990   &lt;/gsf:template&gt;<br/>
    1991 <br/>
    1992   &lt;gsf:template match=&quot;classifierNode[@classifierStyle = 'VList']&quot;&gt;<br/>
    1993     <Tab n="1"/>&lt;td valign=&quot;top&quot;&gt;<br/>
    1994       <Tab n="2"/>&lt;gsf:link type=&quot;classifier&quot;&gt;<br/>
    1995         <Tab n="3"/>&lt;gsf:icon type=&quot;classifier&quot;/&gt;<br/>
     2063      <Tab n="2"/>&lt;gsf:link type="document"&gt;<br/><br/><br/><br/>
     2064        <Tab n="3"/>&lt;gsf:metadata name=&quot;Title&quot;/&gt;<br/><br/><br/><br/><br/><br/><br/><br/>
    19962065      <Tab n="2"/>&lt;/gsf:link&gt;<br/>
    19972066    <Tab n="1"/>&lt;/td&gt;<br/>
    1998     <Tab n="1"/>&lt;td valign=&quot;top&quot;&gt;<br/>
    1999       <Tab n="2"/>&lt;gsf:metadata name=&quot;Title&quot;/&gt;<br/>
    2000     <Tab n="1"/>&lt;/td&gt;<br/>
    20012067  &lt;/gsf:template&gt;
    2002 </MajorVersion>
    20032068</Format>
    2004 </NumberedItem>
    2005 <NumberedItem>
    2006 <Text id="0486"><b>Preview</b> the <MajorVersion number="2"><AutoText key="coredm::_Global:labelSubject_"/></MajorVersion><MajorVersion number="3"><AutoText key="gs3::metadata_names::Subject.buttonname" /></MajorVersion> list in the collection. <MajorVersion number="2">First, the offending "()" has disappeared from the bookshelves. Second, when</MajorVersion><MajorVersion number="3">When</MajorVersion> you get down to a list of documents in the subject hierarchy, the filename does not appear beside the title, because <AutoText key="metadata::ex.Source"/> is not specified in the format statement and this format statement applies to all nodes in the <i>subject</i> classifier. <MajorVersion number="2">Note that the search results and titles lists have not changed: they still display the filename underneath the title.</MajorVersion><MajorVersion number="3">Note that the titles list has not changed: it still displays the filename underneath the title.</MajorVersion></Text>
     2069</td>
     2070</tr>
     2071</table><br/>
     2072</MajorVersion>
     2073
     2074</NumberedItem>
     2075<NumberedItem>
     2076<MajorVersion number="2">
     2077<Text id="0486-a"><b>Preview</b> the <AutoText key="coredm::_Global:labelSubject_"/> list in the collection. First, the offending "()" has disappeared from the bookshelves. Second, when you get down to a list of documents in the subject hierarchy, the filename does not appear beside the title, because <AutoText key="metadata::ex.Source"/> is not specified in the format statement and this format statement applies to all nodes in the <i>subject</i> classifier. Note that the search results and titles lists have not changed: they still display the filename underneath the title.</Text>
     2078</MajorVersion>
     2079<MajorVersion number="3">
     2080<Text id="0486"><b>Preview</b> the <AutoText key="gs3::metadata_names::Subject.buttonname" /> list in the collection. When you get down to a list of documents in the subject hierarchy, the filename does not appear beside the title, because <AutoText text="Source" /> is not specified in the format statement and this format statement applies to all <b>documentNodes</b> in the <i>subject</i> classifier. Note that the <AutoText key="gs3::metadata_names::Title.buttonname" /> classifier has not changed: it still displays the filename underneath the title.</Text>
     2081</MajorVersion>
    20072082</NumberedItem>
    20082083<NumberedItem>
    20092084<MajorVersion number="2">
    20102085<Text id="0487">Let's change the search results format so that <AutoText key="metadata::dc.Subject"/> metadata is displayed here instead of the filename. In the <AutoText key="glidict::CDM.FormatManager.Feature"/> menu (under <AutoText key="glidict::CDM.GUI.Formats"/> on the <AutoText key="glidict::GUI.Format"/> panel), scroll down to the item <AutoText text="Search"/> and select it. Click <AutoText key="glidict::CDM.FormatManager.Add" type="button"/> to add this format statement to the collection. Change the <AutoText key="glidict::CDM.FormatManager.Editor"/> box below to read</Text>
    2011 </MajorVersion>
    2012 <MajorVersion number="3">
    2013 <Text id="0487-3">Select the <AutoText text="search"/> format feature for some editing. </Text>
    2014 </MajorVersion>
    2015 <MajorVersion number="2">
    20162086<Text id="0487-3-a">Replace the line:</Text>
    20172087<Format>
     
    20232093</MajorVersion>
    20242094<MajorVersion number="3">
    2025 <Text id="0487-3-b">After the final <Format>&lt;/gsf:link&gt;</Format>, add the line:</Text>
    2026 <Format>
    2027   &lt;br /&gt;&lt;gsf:metadata name=&quot;dc.Subject&quot;/&gt;<br/>
     2095<Text id="0487-3">Let's change the search results' format statement so that <AutoText key="metadata::dc.Subject"/> metadata is displayed below the title. Select the <AutoText text="search"/> format feature. Insert the highlighted line:</Text>
     2096<Format>
     2097  &lt;gsf:template match="documentNode"&gt;<br/>
     2098    <Tab n="1"/>&lt;td valign="top"&gt;<br/>
     2099      <Tab n="2"/>&lt;gsf:link type="document"&gt;<br/>
     2100       <Tab n="3"/> &lt;gsf:icon type="document"/&gt;<br/>
     2101      <Tab n="2"/>&lt;/gsf:link&gt;<br/>
     2102    <Tab n="1"/>&lt;/td&gt;<br/>
     2103    <Tab n="1"/>&lt;td&gt;<br/>
     2104      <Tab n="2"/>&lt;gsf:link type="document"&gt;<br/>
     2105       <Tab n="3"/> &lt;xsl:call-template name="choose-title"/&gt;<br/>
     2106      <Tab n="2"/>&lt;/gsf:link&gt;<br/>
     2107        <Tab n="2"/><highlight>&lt;br /&gt;&lt;gsf:metadata name=&quot;dc.Subject&quot;/&gt;</highlight><br/>
     2108    <Tab n="1"/>&lt;/td&gt;<br/>
     2109  &lt;/gsf:template&gt;<br/>
    20282110</Format>
    20292111</MajorVersion>
     
    20382120<table><tr><td><img width='15' height='20' src="../tutorial_files/itext.gif" /></td><td width='408' valign='top'>A discussion of question five from Tudor Quiz: Henry VIII <br/>
    20392121Tudor period|Others</td></tr></table>
    2040 <Text id="0493">(The vertical bar appears because this <AutoText key="metadata::dc.Subject"/> metadata is hierarchical metadata. Unfortunately there is no way to get at individual components of the hierarchy. For most metadata, such as title and author, this isn't a problem.)</Text>
    2041 </NumberedItem>
    2042 <NumberedItem>
    2043 <Text id="0494">Finally, let's return to the <MajorVersion number="2"><AutoText key="coredm::_Global:labelSubject_"/></MajorVersion><MajorVersion number="3"><AutoText key="gs3::metadata_names::Subject.buttonname" /></MajorVersion> hierarchy and learn how to do different things to the bookshelves and to the documents themselves. <MajorVersion number="2">In the <AutoText key="glidict::CDM.FormatManager.Feature"/> menu, re-select the item</MajorVersion><MajorVersion number="3">Reselect the format feature for</MajorVersion></Text>
     2122<Text id="0493">(The vertical bar appears because this <AutoText key="metadata::dc.Subject"/> metadata is hierarchical metadata. Unfortunately there is no easy way to get at individual components of the hierarchy. For most metadata, such as title and author, this isn't a problem.)</Text>
     2123</NumberedItem>
     2124<NumberedItem>
     2125<MajorVersion number="2">
     2126<Text id="0494">Finally, let's return to the <AutoText key="coredm::_Global:labelSubject_"/> hierarchy and learn how to modify the bookshelves. In the <AutoText key="glidict::CDM.FormatManager.Feature"/> menu, re-select the item</Text>
     2127</MajorVersion>
     2128<MajorVersion number="3">
     2129<Text id="0494-a">Finally, let's return to the <AutoText key="gs3::metadata_names::Subject.buttonname" /> hierarchy and modify the bookshelf display. Reselect the format feature for</Text>
     2130</MajorVersion>
    20442131<Indent>
    20452132CL2<MajorVersion number="2">:</MajorVersion> Hierarchy -metadata <AutoText key="metadata::dc.Subject" type="plain"/>
     
    20592146</MajorVersion>
    20602147<MajorVersion number="3">
    2061 <Text id="0495-3">For the <AutoText text="documentNode"/> template, adjust its display of the title to:</Text>
    2062 <Format>
    2063   &lt;td valign=&quot;top&quot;&gt;<br/>
    2064     <Tab n="1"/>&lt;b&gt;Title:&lt;/b&gt; &lt;gsf:metadata name=&quot;Title&quot;/&gt;<br/>
    2065   &lt;/td&gt;
    2066 </Format>
    2067 <Text id="0496-3">Next adjust the title display of the <AutoText text="VList classifierNode"/> template too:</Text>
    2068 <Format>
    2069   &lt;td valign=&quot;top&quot;&gt;<br/>
    2070     <Tab n="1"/>&lt;b&gt;Bookshelf title:&lt;/b&gt; &lt;gsf:metadata name=&quot;Title&quot;/&gt;<br/>
    2071   &lt;/td&gt;
    2072 </Format>
    2073 </MajorVersion>
    2074 </NumberedItem>
    2075 <NumberedItem>
    2076 <Text id="0498"><b>Preview</b> the collection and examine the subject hierarchy again to see the effect of your changes. Bookshelves should say <AutoText text="Bookshelf title:"/> and then the title, while documents will display <AutoText text="Title:"/> and the title.<MajorVersion number="2"> Note that the number of documents in the bookshelf is not displayed: we are using <Format>[numleafdocs]</Format> to test what kind of item in the list we are at, but we are not displaying it.</MajorVersion></Text>
    2077 </NumberedItem>
     2148<Text id="0495-3">Scroll down to the <AutoText text="VList classifierNode"/> template, and add in the highlighted statement:</Text>
     2149<Format>
     2150  &lt;gsf:template match="classifierNode[@classifierStyle = 'VList']"&gt;<br/>
     2151    <Tab n="1"/>&lt;td valign="top"&gt;<br/>
     2152      <Tab n="2"/>&lt;gsf:link type="classifier"&gt;<br/>
     2153        <Tab n="3"/>&lt;gsf:icon type="classifier"/&gt;<br/>
     2154      <Tab n="2"/>&lt;/gsf:link&gt;<br/>
     2155    <Tab n="1"/>&lt;/td&gt;<br/>
     2156    <Tab n="1"/>&lt;td valign="top"&gt;<br/>
     2157   <Tab n="2"/><highlight>&lt;b&gt;Bookshelf title:&lt;/b&gt;</highlight>&lt;gsf:metadata name=&quot;Title&quot;/&gt;<br/>
     2158    <Tab n="1"/>&lt;/td&gt;<br/>
     2159  &lt;/gsf:template&gt;<br/>
     2160</Format>
     2161<Text id="0496-3"><b>Preview</b> the collection and examine the subject hierarchy again to see the effect of your changes. Bookshelves should now say <AutoText text="Bookshelf title:"/> and then the subject name (which is the "title" of the bookshelf).</Text>
     2162</MajorVersion>
     2163</NumberedItem>
     2164<MajorVersion number="2">
     2165<NumberedItem>
     2166<Text id="0498"><b>Preview</b> the collection and examine the subject hierarchy again to see the effect of your changes. Bookshelves should say <AutoText text="Bookshelf title:"/> and then the title, while documents will display <AutoText text="Title:"/> and the title. Note that the number of documents in the bookshelf is not displayed: we are using <Format>[numleafdocs]</Format> to test what kind of item in the list we are at, but we are not displaying it.</Text>
     2167</NumberedItem>
     2168</MajorVersion>
    20782169</Content>
    20792170</Tutorial>
Note: See TracChangeset for help on using the changeset viewer.