Changeset 22136


Ignore:
Timestamp:
2010-05-20T17:04:50+12:00 (14 years ago)
Author:
anna
Message:

several changes to the tutorial exercises

File:
1 edited

Legend:

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

    r22113 r22136  
    26022602</NumberedItem>
    26032603<NumberedItem>
    2604 <Text id="0691">The <AutoText key="coredm::_Global:labelDate_" type="italics"/> list groups documents by date. A numeric date is displayed at the end of each document title, for example 18580601. This is in the Greenstone internal date format, which is crucial for the <AutoText text="DateList" /> classifier (CL2) to correctly parse date metadata and generate an ordered date list. However, you can make the date look nice by adding a <AutoText text="[format:]"/> macro to date metadata.</Text>
    2605 </NumberedItem>
    2606 <NumberedItem>
    2607 <Text id="0691a">Now we format the date. In the <AutoText key="glidict::CDM.GUI.Formats"/> section of the <AutoText key="glidict::GUI.Format"/> panel, select the <AutoText text="DateList" /> classifier <i>and set <AutoText key="glidict::CDM.FormatManager.Part"/> to <AutoText text="DateList"/></i>. Replace the last line</Text>
     2604<Text id="0691">The <AutoText key="coredm::_Global:labelDate_" type="italics"/> list groups documents by date. Greenstone's internal date format is YYYYMMDD, for example 18580601, and this is crucial for the <AutoText text="DateList" /> classifier (CL2) to correctly parse date metadata and generate an ordered date list. However, the date has been made to look nice by adding a <AutoText text="[format:]"/> macro to date metadata in the format statement.</Text>
     2605</NumberedItem>
     2606<NumberedItem>
     2607<Text id="0691a">In the <AutoText key="glidict::CDM.GUI.Formats"/> section of the <AutoText key="glidict::GUI.Format"/> panel, select the <AutoText text="DateList" /> classifier <i>and set <AutoText key="glidict::CDM.FormatManager.Part"/> to <AutoText text="DateList"/></i>. Replace the last line</Text>
     2608<Format>
     2609&lt;td&gt;{Or}{[dc.Date],[format:exp.Date],[format:ex.Date]}&lt;/td&gt;
     2610</Format>
     2611<Text id="0691b">with</Text>
    26082612<Format>
    26092613&lt;td&gt;{Or}{[dc.Date],[exp.Date],[ex.Date]}&lt;/td&gt;
    26102614</Format>
    2611 <Text id="0691b">with</Text>
    2612 <Format>
    2613 &lt;td&gt;{Or}{[dc.Date],[exp.Date],[format:ex.Date]}&lt;/td&gt;
    2614 </Format>
    2615 <Text id="0691c">Refresh in the web browser to view the new <AutoText key="coredm::_Global:labelDate_" type="italics"/> list.</Text>
     2615<Text id="0691c">Refresh in the web browser to view the new <AutoText key="coredm::_Global:labelDate_" type="italics"/> list. The dates are now shown in internal format. </Text>
     2616</NumberedItem>
     2617<NumberedItem>
     2618<Text id="0691d">Change the format statement back to reinstate the nicely formatted dates.</Text>
    26162619</NumberedItem>
    26172620<Heading>
     
    26592662<Text id="0690d-1">Set the display text used for the level drop-down menu by going to the <AutoText key="glidict::CDM.GUI.SearchMetadata"/> section on the <AutoText key="glidict::GUI.Format"/> panel. Set the document level text to "newspaper", and the section level text to "page".</Text>
    26602663<Text id="0690d-2">Refresh in your web browser. Compare searching at "newspaper" level with searching at "page" level. A useful search term for this collection is <AutoText text="aroha" type="quoted"/>.</Text>
    2661 </NumberedItem>
    2662 <NumberedItem>
    2663 <Text id="0690f">You will notice that when searching for individual pages, the newspaper image is displayed in the search results. As these images are very large, this is not very useful. Go to <AutoText key="glidict::CDM.GUI.Formats"/> section of the <AutoText key="glidict::GUI.Format"/> panel in the Librarian Interface, choose <AutoText key="glidict::CDM.FormatManager.AllFeatures"/>  in <AutoText key="glidict::CDM.FormatManager.Feature"/> list, and select the <AutoText text="VList"/> format statement from the list of assigned format statements. Remove the second line from the <AutoText key="glidict::CDM.FormatManager.Editor"/>:</Text>
    2664 <Format>
    2665 &lt;td valign="top"&gt;[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]&lt;/td&gt;
    2666 </Format>
    2667 <Text id="0690f-1">The reason why this is causing a problem is that the <AutoText text="PagedImagePlugin"/> does not produce ex.thumbicon, and as a consequence this format statement displays ex.srcicon, which is very large  </Text>
    2668 <Text id="0690f-2">While we are here, let's remove the filename from the display. Remove the following from the last line of the format string:</Text>
     2664<Text id="0690f">You will notice that when searching for individual pages, a thumbnail of the newspaper image is displayed in the search results.</Text>
     2665</NumberedItem>
     2666<NumberedItem>
     2667<Text id="0690f-2">Let's remove the filename from the display. Go to <AutoText key="glidict::CDM.GUI.Formats"/> section of the <AutoText key="glidict::GUI.Format"/> panel in the Librarian Interface, choose <AutoText key="glidict::CDM.FormatManager.AllFeatures"/>  in <AutoText key="glidict::CDM.FormatManager.Feature"/> list, and select the <AutoText text="VList"/> format statement from the list of assigned format statements. Remove the following from the last line of the format string:</Text>
    26692668<Format>
    26702669{If}{[ex.Source],&lt;br&gt;&lt;i&gt;([ex.Source])&lt;/i&gt;}
    26712670</Format>
    2672 <Text id="0690g"><b>Preview</b> the collection&mdash;the search results should be back to normal. </Text>
     2671<Text id="0690g"><b>Preview</b> the collection. </Text>
    26732672</NumberedItem>
    26742673<NumberedItem>
Note: See TracChangeset for help on using the changeset viewer.