Index: documentation/trunk/tutorials/xml-source/tutorial_en.xml
===================================================================
--- documentation/trunk/tutorials/xml-source/tutorial_en.xml (revision 26058)
+++ documentation/trunk/tutorials/xml-source/tutorial_en.xml (revision 26059)
@@ -3352,5 +3352,5 @@
-You will need to specify which document the OAI metadata values should be attached to. In the panel, select the section, then select the and click . Locate the option in the popup window and select from the drop-down list. Click . Finally, move the above the .
+You will need to specify which document the OAI metadata values should be attached to. In the panel, select the section, then select the and click . Locate the option in the popup window and type (it may not be available in the drop-down list until after building). Click . Finally, you may want to remove the to speed up building (since it's not going to extract metadata relevant to this tutorial anyway).
@@ -3368,5 +3368,5 @@
-Add an classifier based on metadata. Configure it with as the .
+Add an classifier based on metadata. Configure it with as the .
@@ -3375,5 +3375,5 @@
-In the section of the panel, delete all indexes and add a new one based on metadata. Set the for the index by going to the section in the panel and changing its label to "_labelDescription_". Using a macro for an index name means that it will display in the correct language (assuming that the macro has been translated). You can check Greenstone → macros → english.dm to see which macros are available.
+In the section of the panel, delete all indexes and add a new one based on metadata. Set the for the index by going to the section in the panel and changing its label to "_labelDescription_". Using a macro for an index name means that it will display in the correct language (assuming that the macro has been translated). You can check Greenstone → macros → english.dm to see which macros are available."descriptions".
@@ -3384,4 +3384,5 @@
+
In the panel, select . First replace the format statement with the following (which can be copied from the file vlist_tweak.txt in the sample_files → oai →format_tweaks folder).
@@ -3390,19 +3391,61 @@
</td>
<td valign=middle>
- {If}{[numleafdocs],[Title],<i>[dc.Description]</i>}
+ {If}{[numleafdocs],[Title],<i>[ex.dc.Description]</i>}
</td>
+
+
+
+In the panel, select . First, in the format statement, replace the templates for and for s with the following.
+
+ <gsf:template match="documentNode">
+ <td valign="top">
+ <gsf:link type="document">
+ <gsf:metadata name="thumbicon"/>
+ </gsf:link>
+ </td>
+ <td valign="middle">
+ <i>
+ <gsf:metadata name="ex.dc.Description"/>
+ </i>
+ </td>
+ </gsf:template>
+
+
+ <gsf:template match="classifierNode[@classifierStyle = 'VList']">
+ <td valign="top">
+ <gsf:link type="classifier">
+ <gsf:icon type="classifier"/>
+ </gsf:link>
+ </td>
+ <td valign="top">
+ <xsl:call-template name="choose-title"/>
+ </td>
+ </gsf:template>
+
+
+
+This format statement customizes the appearance of vertical lists such as the search results and captions lists to show a thumbnail icon followed by Description metadata.
+
+
+
+Next, select the in the format statement from the list and change its format statement to:
+
+<h3>[ex.dc.Subject]</h3>
+
+
+
+ <gsf:template name="documentHeading">
+ <h3>
+ <gsf:metadata name="ex.dc.Subject"/>
+ </h3>
+ </gsf:template>
-
-This format statement customizes the appearance of vertical lists such as the search results and captions lists to show a thumbnail icon followed by Description metadata.
-
-
-
-Next, select from the pull-down list and change its format statement to:
-<h3>[ex.dc.Subject]</h3>
-
-The document heading appears above the and buttons when you get to a document in the collection. By default displays the document's metadata. In this particular set of OAI exported records, titles are filenames of JPEG images, and the filenames are particularly uninformative (for example, 01dla14). You can see them in the panel if you select an image in oai → JCDLPICS → srcdocs and check its and metadata. The above format statement displays metadata instead.
-
-
-
+
+
+The document heading appears above the and buttons when you get to a document in the collection. By default displays the document's metadata. In this particular set of OAI exported records, titles are filenames of JPEG images, and the filenames are particularly uninformative (for example, 01dla14). You can see them in the panel if you select an image in oai → JCDLPICS → srcdocs and check its and metadata. The above format statement displays metadata instead.
+
+
+
+
Finally, you will have noticed that where the document itself should appear, you see only . To rectify this, select in the pull-down list and use the following as its format statement (this text is in doctxt_tweak.txt in the format_tweaks folder mentioned earlier):
<center><table width=_pagewidth_ border=1>
@@ -3414,7 +3457,46 @@
<tr><td>Subject:</td><td> [ex.dc.Subject]</td></tr>
<tr><td>Publisher:</td><td> [ex.dc.Publisher]</td></tr>
- <tr><td>Rights:<td> [ex.dc.Rights]</td></tr>
-</table></center>
-This format statement alters how the document view is presented. It includes a screen-sized version of the image that hyperlinks back to the original larger version available on the web. Factual information extracted from the image, such as width, height and type, is also displayed.
+ <tr><td>Rights:</td><td> [ex.dc.Rights]</td></tr>
+</table></center>
+
+
+Finally, select in the list and use the following as its format statement:
+
+ <gsf:template name="documentContent">
+ <table>
+ <tr>
+ <td colspan="2" align="center">
+ <a><xsl:attribute name="href">
+ <gsf:metadata name="ex.dc.OrigURL"/>
+ </xsl:attribute>
+ <gsf:metadata name="screenicon"/>
+ </a>
+ </td>
+ </tr>
+ <tr>
+ <td>Caption:</td>
+ <td><i><gsf:metadata name="ex.dc.Description"/></i><br/>
+ <a><xsl:attribute name="href"><gsf:metadata name="ex.dc.OrigURL"/></xsl:attribute>
+ original <gsf:metadata name="ImageWidth"/>x<gsf:metadata name="ImageHeight"/> <gsf:metadata name="ImageType"/> available
+ </a>
+ </td>
+ </tr>
+ <tr>
+ <td>Subject:</td>
+ <td><gsf:metadata name="ex.dc.Subject"/></td>
+ </tr>
+ <tr>
+ <td>Publisher:</td>
+ <td><gsf:metadata name="ex.dc.Publisher"/></td>
+ </tr>
+ <tr>
+ <td>Rights:</td>
+ <td><gsf:metadata name="ex.dc.Rights"/></td>
+ </tr>
+ </table>
+ </gsf:template>
+
+
+This format statement alters how the document view is presented. It includes a screen-sized version of the image that hyperlinks back to the original larger version available on the web. Factual information extracted from the image, such as width, height and type, is also displayed. It uses XSLT to construct the hyperlink which makes use of the greenstone metadata containing the link to the original image.