Changeset 26050
- Timestamp:
- 2012-07-31T16:48:22+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/tutorials/xml-source/tutorial_en.xml
r26037 r26050 911 911 </td><br/> 912 912 </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> 914 914 <Format><gsf:choose-metadata><br/> 915 915 <Tab n="1"/><gsf:metadata name="dc.Title"/><br/> … … 1027 1027 <td valign="top"><br /> 1028 1028 <Tab n="1"/><gsf:link type="document"><br /> 1029 <Tab n="2"/><gsf:choose-metadata><br /> 1030 <Tab n="3"/><gsf:metadata name="dc.Title"/><br /> 1031 <Tab n="3"/><gsf:metadata name="ex.dc.Title"/><br /> 1032 <Tab n="3"/><gsf:metadata name="Title"/><br /> 1033 <Tab n="3"/><gsf:default>Untitled</gsf:default><br /> 1034 <Tab n="2"/></gsf:choose-metadata><br /> 1029 <Tab n="2"/><xsl:call-template name="choose-title"/><br /> 1035 1030 <Tab n="2"/><gsf:switch><br /> 1036 1031 <Tab n="3"/><gsf:metadata name="Source"/><br /> … … 1495 1490 <NumberedItem> 1496 1491 <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> 1498 1493 <MajorVersion number="2"> 1499 1494 <Format> … … 1529 1524 <MajorVersion number="3"> 1530 1525 <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><gsf:choose-metadata/></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><gsf:choose-metadata/></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> 1532 1527 <table> 1533 1528 <th> … … 1548 1543 <td valign="top"><br /> 1549 1544 <Tab n="1"/><gsf:link type="document"><br /> 1550 <Tab n="2"/><gsf:choose-metadata><br /> 1551 <Tab n="3"/><gsf:metadata name="dc.Title"/><br /> 1552 <Tab n="3"/><gsf:metadata name="exp.Title"/><br /> 1553 <Tab n="3"/><gsf:metadata name="ex.dc.Title"/><br /> 1554 <Tab n="3"/><gsf:metadata name="Title"/><br /> 1555 <Tab n="3"/><gsf:default>Untitled</gsf:default><br /> 1556 <Tab n="2"/></gsf:choose-metadata><br /> 1545 <Tab n="2"/><xsl:call-template name="choose-title"/><br /> 1557 1546 <Tab n="1"/></gsf:link><br /> 1558 1547 <Tab n="1"/><gsf:switch><br /> … … 1568 1557 <Format> 1569 1558 <td valign="top"><br /> 1570 <highlight> 1571 <Tab n="1"/><gsf:metadata name="equivDocLink"/><br /> 1572 <Tab n="1"/><gsf:metadata name="equivDocIcon"/><br /> 1573 <Tab n="1"/><gsf:metadata name="/equivDocLink"/> 1574 </highlight><br /> 1559 <highlight><Tab n="1"/><gsf:link type="equivdoc"/></highlight><br /> 1575 1560 </td><br /> 1576 1561 <td valign="top"><br /> 1577 1562 <Tab n="1"/><gsf:link type="document"><br /> 1578 <Tab n="2"/><gsf:choose-metadata><br /> 1579 <Tab n="3"/><gsf:metadata name="dc.Title"/><br /> 1580 <Tab n="3"/><gsf:metadata name="exp.Title"/><br /> 1581 <Tab n="3"/><gsf:metadata name="ex.dc.Title"/><br /> 1582 <Tab n="3"/><gsf:metadata name="Title"/><br /> 1583 <Tab n="3"/><gsf:default>Untitled</gsf:default><br /> 1584 <Tab n="2"/></gsf:choose-metadata><br /> 1563 <Tab n="2"/><xsl:call-template name="choose-title"/><br /> 1585 1564 <Tab n="1"/></gsf:link><br /> 1586 1565 <Tab n="1"/><gsf:switch> … … 2012 1991 </NumberedItem> 2013 1992 <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> 2015 1994 <MajorVersion number="2"> 2016 1995 <Format>[link][icon][/link]</Format> … … 2026 2005 <Text id="0431">with</Text> 2027 2006 <Format> 2028 <gsf:metadata name="weblink"/><br/>2029 <gsf:metadata name="webicon"/><br/>2030 <gsf:metadata name="/weblink"/>2007 <gsf:link type="web"><br /> 2008 <Tab n="1"/><gsf:icon type="web"/><br /> 2009 </gsf:link><br /> 2031 2010 </Format> 2032 2011 </MajorVersion> … … 3593 3572 </NumberedItem> 3594 3573 <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></td></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></td></Format><MajorVersion number="3"> of the <AutoText text="documentNode"/> template</MajorVersion>:</Text> 3596 3575 <Format> 3597 3576 <MajorVersion number="2">{If}{[ex.equivlink],<br>Also available as:[ex.equivlink]}</MajorVersion> … … 3617 3596 <MajorVersion number="2">{Or}{[dc.Title],[exp.Title],[ex.Title],Untitled}</MajorVersion> 3618 3597 <MajorVersion number="3"> 3619 <gsf:choose-metadata><br /> 3620 <Tab n="1"/><gsf:metadata name="dc.Title"/><br /> 3621 <Tab n="1"/><gsf:metadata name="exp.Title"/><br /> 3622 <Tab n="1"/><gsf:metadata name="ex.dc.Title"/><br /> 3623 <Tab n="1"/><gsf:metadata name="Title"/><br /> 3624 <Tab n="1"/><gsf:default>Untitled</gsf:default><br /> 3625 </gsf:choose-metadata> 3598 <xsl:call-template name="choose-title"/> 3626 3599 </MajorVersion> 3627 3600 </Format>
Note:
See TracChangeset
for help on using the changeset viewer.