Changeset 26073 for documentation/trunk
- Timestamp:
- 2012-08-06T17:42:50+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/tutorials/xml-source/tutorial_en.xml
r26059 r26073 2078 2078 </NumberedItem> 2079 2079 <NumberedItem> 2080 <Text id="0533d"><b>Rebuild</b> the collection and <b>preview</b> the results. Notice the extra field in the < AutoText key="coredm::_query:textinfield_"/> drop-down menus in the search form. You can do quite complicated queries by searching for words in different fields at the same time.</Text>2080 <Text id="0533d"><b>Rebuild</b> the collection and <b>preview</b> the results. Notice the extra field in the <MajorVersion number="2"><AutoText key="coredm::_query:textinfield_"/></MajorVersion><MajorVersion number="3"><AutoText text="in field"/></MajorVersion> drop-down menus in the search form. You can do quite complicated queries by searching for words in different fields at the same time.</Text> 2081 2081 </NumberedItem> 2082 2082 <NumberedItem> … … 2118 2118 <MajorVersion number="3"> 2119 2119 <Format> 2120 <gsf:choose-metadata><br/> 2121 <Tab n="1"/><gsf:metadata name="dc.Title"/><br/> 2122 <Tab n="1"/><gsf:metadata name="exp.Title"/><br/> 2123 <Tab n="1"/><gsf:metadata name="ex.dc.Title"/><br/> 2124 <Tab n="1"/><gsf:metadata name="Title"/><br/> 2125 <Tab n="1"/><gsf:default>Untitled</gsf:default><br/> 2126 </gsf:choose-metadata> 2127 </Format> 2128 The above format statement is found in the <AutoText text="choose-title"/> template defined in the <AutoText text="global"/> format feature, which is included by the <AutoText text="browse"/> format statements. 2120 <gsf:template name="choose-title"><br/> 2121 <Tab n="1"/><gsf:choose-metadata><br/> 2122 <Tab n="2"/><gsf:metadata name="dc.Title"/><br/> 2123 <Tab n="2"/><gsf:metadata name="exp.Title"/><br/> 2124 <Tab n="2"/><gsf:metadata name="ex.dc.Title"/><br/> 2125 <Tab n="2"/><gsf:metadata name="Title"/><br/> 2126 <Tab n="2"/><gsf:default>Untitled</gsf:default><br/> 2127 <Tab n="1"/></gsf:choose-metadata><br /> 2128 </gsf:template> 2129 </Format> 2130 The above <AutoText text="choose-title"/> template, defined in the <AutoText text="global"/> format features, is included by the <AutoText text="browse"/> format statements. 2129 2131 </MajorVersion> 2130 2132 <Text id="0533-11c">Since there is no <AutoText key="metadata::dc.Title"/> metadata and because <AutoText key="metadata::exp.Title"/> comes before <AutoText key="metadata::ex.Title"/>, the exploded titles will be displayed.</Text> … … 2137 2139 <Text id="0533-12b">We need to modify the collection design to take note of these changes.</Text> 2138 2140 <NumberedItem> 2139 <Text id="0533-13">In the <AutoText key="glidict::CDM.GUI.Indexes"/> section, change the Title index to use <AutoText key="metadata::exp.Title"/>: select the Title index in the <AutoText key="glidict::CDM.IndexManager.Indexes"/> list and click <AutoText key="glidict::CDM.IndexManager.Edit_Index" type="button"/>. Deselect <AutoText key="metadata::dc.Title"/> , <AutoText key="metadata::ex.dc.Title"/>and <AutoText key="metadata::ex.Title"/> in the list of metadata, and select <AutoText key="metadata::exp.Title"/>. Click <AutoText key="glidict::CDM.IndexManager.Replace_Index" type="button"/>.</Text>2141 <Text id="0533-13">In the <AutoText key="glidict::CDM.GUI.Indexes"/> section, change the Title index to use <AutoText key="metadata::exp.Title"/>: select the Title index in the <AutoText key="glidict::CDM.IndexManager.Indexes"/> list and click <AutoText key="glidict::CDM.IndexManager.Edit_Index" type="button"/>. Deselect <AutoText key="metadata::dc.Title"/> and <AutoText key="metadata::ex.Title"/> in the list of metadata, and select <AutoText key="metadata::exp.Title"/>. Click <AutoText key="glidict::CDM.IndexManager.Replace_Index" type="button"/>.</Text> 2140 2142 </NumberedItem> 2141 2143 <NumberedItem> … … 2149 2151 </NumberedItem> 2150 2152 <NumberedItem> 2151 <Text id="0533-15">To explicitly use the <AutoText key="metadata::exp.Title"/> metadata, in the <AutoText key="glidict::CDM.GUI.Classifiers"/> section, change the < AutoText text="dc.Title;ex.Title"/> <AutoText text="List"/> to use <AutoText key="metadata::exp.Title"/> metadata. Double click the <AutoText text="dc.Title;ex.Title"/><AutoText text="List"/> in the <AutoText key="glidict::CDM.ClassifierManager.Assigned"/> list, and change the <AutoText text="metadata"/> option to use <AutoText key="metadata::exp.Title"/>. Click <AutoText key="glidict::General.OK" type="button"/>. Do the same thing for the Subject <AutoText text="AZCompactList"/>, changing <AutoText key="metadata::dc.Subject"/> to <AutoText key="metadata::exp.Subject"/>.</Text>2153 <Text id="0533-15">To explicitly use the <AutoText key="metadata::exp.Title"/> metadata, in the <AutoText key="glidict::CDM.GUI.Classifiers"/> section, change the <MajorVersion number="2"><AutoText text="dc.Title;ex.Title"/></MajorVersion><MajorVersion number="3"><AutoText text="dc.Title;Title"/></MajorVersion> <AutoText text="List"/> to use <AutoText key="metadata::exp.Title"/> metadata. Double click the <MajorVersion number="2"><AutoText text="dc.Title;ex.Title"/></MajorVersion><MajorVersion number="3"><AutoText text="dc.Title;Title"/></MajorVersion> <AutoText text="List"/> in the <AutoText key="glidict::CDM.ClassifierManager.Assigned"/> list, and change the <AutoText text="metadata"/> option to use <AutoText key="metadata::exp.Title"/>. Click <AutoText key="glidict::General.OK" type="button"/>. Do the same thing for the Subject <AutoText text="AZCompactList"/>, changing <AutoText key="metadata::dc.Subject"/> to <AutoText key="metadata::exp.Subject"/>.</Text> 2152 2154 </NumberedItem> 2153 2155 <NumberedItem> … … 2155 2157 </NumberedItem> 2156 2158 <NumberedItem> 2157 <Text id="0533-16">In the <AutoText key="glidict::CDM.GUI.Formats"/> section of the <AutoText key="glidict::GUI.Format"/> panel, select <AutoText text="VList"/> in the list of assigned format statements.</Text> 2159 <Text id="0533-16"> 2160 <MajorVersion number="2">In the <AutoText key="glidict::CDM.GUI.Formats"/> section of the <AutoText key="glidict::GUI.Format"/> panel, select <AutoText text="VList"/> in the list of assigned format statements.</MajorVersion> 2161 <MajorVersion number="3">Switch to the <AutoText key="glidict::CDM.GUI.Formats"/> section of the <AutoText key="glidict::GUI.Format"/> panel to make the following adjustments.</MajorVersion> 2162 </Text> 2158 2163 <BulletList> 2159 2164 <Bullet> … … 2165 2170 <Format> 2166 2171 <gsf:choose-metadata><br/> 2167 <Tab n="1"/> <gsf:metadata name="dc.Title"/><br/>2172 <Tab n="1"/><highlight><gsf:metadata name="dc.Title"/></highlight><br/> 2168 2173 <Tab n="1"/><gsf:metadata name="exp.Title"/><br/> 2169 <Tab n="1"/> <gsf:metadata name="ex.dc.Title"/><br/>2174 <Tab n="1"/><highlight><gsf:metadata name="ex.dc.Title"/></highlight><br/> 2170 2175 <Tab n="1"/><gsf:metadata name="Title"/><br/> 2171 2176 <Tab n="1"/><gsf:default>Untitled</gsf:default><br/> … … 2190 2195 <Text id="0533-16b-3">There are no source or thumb icons, so in the <AutoText text="documentNode"/> and <AutoText text="classifierNode"/> templates of the <AutoText text="browse"/> format feature, remove the occurrences of the following section:</Text> 2191 2196 <Format> 2192 <gsf:link type="source"><br /> 2193 <Tab n="1"/><gsf:choose-metadata><br /> 2194 <Tab n="2"/><gsf:metadata name="thumbicon"/><br /> 2195 <Tab n="2"/><gsf:metadata name="srcicon"/><br /> 2196 <Tab n="1"/></gsf:choose-metadata><br /> 2197 </gsf:link><br /> 2197 <td valign="top"><br /> 2198 <Tab n="1"/><gsf:link type="source"><br /> 2199 <Tab n="2"/><gsf:choose-metadata><br /> 2200 <Tab n="3"/><gsf:metadata name="thumbicon"/><br /> 2201 <Tab n="3"/><gsf:metadata name="srcicon"/><br /> 2202 <Tab n="2"/></gsf:choose-metadata><br /> 2203 <Tab n="1"/></gsf:link><br /> 2204 </td> 2198 2205 </Format> 2199 2206 </MajorVersion> … … 2232 2239 </MajorVersion> 2233 2240 <MajorVersion number="3"> 2234 <Text id="0533-19-3">The record Title will be displayed as part of the default <AutoText text="documentContent"/> format, so we override the <AutoText text="documentHeading"/> format statement (which displays the Title) with one that does not do anything. Go to the <AutoText text="display"/> format feature in the <AutoText key="glidict::CDM.FormatManager.Editor"/> and add the following :</Text>2241 <Text id="0533-19-3">The record Title will be displayed as part of the default <AutoText text="documentContent"/> format, so we override the <AutoText text="documentHeading"/> format statement (which displays the Title) with one that does not do anything. Go to the <AutoText text="display"/> format feature in the <AutoText key="glidict::CDM.FormatManager.Editor"/> and add the following just after the <Format><gsf:option name="TOC" value="true"/></Format>:</Text> 2235 2242 <Format><gsf:template name="documentHeading"/></Format> 2236 2243 </MajorVersion> … … 2238 2245 <NumberedItem> 2239 2246 <MajorVersion number="2"> 2240 <Text id="0533-20">Next, edit the <AutoText text="DocumentText"/> format statement. Delete the contents and replace it with </Text>2247 <Text id="0533-20">Next, edit the <AutoText text="DocumentText"/> format statement. Delete the contents and replace it with the following (which can be copied from <Path>sample_files → marc → format_tweaks → document_text.txt</Path>).</Text> 2241 2248 <Format> 2242 2249 <table><br/> … … 2248 2255 </MajorVersion> 2249 2256 <MajorVersion number="3"> 2250 <Text id="0533-20-3">Next, override the default <AutoText text="documentContent"/> behaviour by creating a format statement for this. Still in the <AutoText text="display"/> format features, a dd:</Text>2257 <Text id="0533-20-3">Next, override the default <AutoText text="documentContent"/> behaviour by creating a format statement for this. Still in the <AutoText text="display"/> format features, after the <AutoText text="documentHeading"/>, add the following format statement (which can be copied from <Path>sample_files → marc → format_tweaks → document_content.txt</Path>):</Text> 2251 2258 <Format> 2252 2259 <gsf:template name="documentContent"><br /> … … 2302 2309 </NumberedItem> 2303 2310 <NumberedItem> 2304 <Text id="is-1 2"><b>Rebuild</b> and <b>preview</b> the collection. </Text>2311 <Text id="is-11"><b>Rebuild</b> and <b>preview</b> the collection. </Text> 2305 2312 </NumberedItem> 2306 2313 <NumberedItem> 2307 2314 <MajorVersion number="2"> 2308 <Text id="is-1 1">In the <AutoText key="glidict::CDM.GUI.Formats"/> section of the <AutoText key="glidict::GUI.Format"/> panel, change the <AutoText text="VList"/> format statement to display <AutoText text="Photographer"/> and <AutoText text="Notes"/> metadata. Change it to look like:</Text>2315 <Text id="is-12">In the <AutoText key="glidict::CDM.GUI.Formats"/> section of the <AutoText key="glidict::GUI.Format"/> panel, change the <AutoText text="VList"/> format statement to display <AutoText text="Photographer"/> and <AutoText text="Notes"/> metadata. Change it to look like:</Text> 2309 2316 <Format> 2310 2317 <td valign=top>[link][icon][/link]</td><br/> … … 2313 2320 </MajorVersion> 2314 2321 <MajorVersion number="3"> 2315 <Text id="is-1 1">In the <AutoText key="glidict::CDM.GUI.Formats"/> section of the <AutoText key="glidict::GUI.Format"/> panel, change the <AutoText text="browse"/> format statement to display <AutoText text="Photographer"/> and <AutoText text="Notes"/> metadata. Change its <AutoText text="documentNode"/> template to look like:</Text>2322 <Text id="is-12-3">In the <AutoText key="glidict::CDM.GUI.Formats"/> section of the <AutoText key="glidict::GUI.Format"/> panel, change the <AutoText text="browse"/> format statement to display <AutoText text="Photographer"/> and <AutoText text="Notes"/> metadata. Change its <AutoText text="documentNode"/> template to look like:</Text> 2316 2323 <Format> 2317 2324 <gsf:template match="documentNode"><br /> … … 2329 2336 </gsf:template> 2330 2337 </Format> 2338 <Text id="is-12a-3">The above format can be copied from <Path>sample_files → isis → format_tweaks → browse_tweak.txt</Path>. If you want search results to be displayed in a similar manner, make the same changes to the <AutoText text="documentNode"/> template of the <AutoText text="search"/> format features too.</Text> 2331 2339 </MajorVersion> 2332 2340 </NumberedItem> 2333 2341 <MajorVersion number="2"> 2334 2342 <NumberedItem> 2335 <Text id="is-1 1a">Make fielded searching the default by changing the <AutoText text="SearchTypes"/> format statement to <AutoText text="form,plain"/> (instead of <AutoText text="plain,form"/>).</Text>2343 <Text id="is-12b">Make fielded searching the default by changing the <AutoText text="SearchTypes"/> format statement to <AutoText text="form,plain"/> (instead of <AutoText text="plain,form"/>).</Text> 2336 2344 </NumberedItem> 2337 2345 </MajorVersion> … … 2348 2356 <Text id="is-16">Finally, lets link to the raw record, which is stored as <AutoText text="ISISRawRecord"/> metadata. 2349 2357 <MajorVersion number="2">Edit the <AutoText text="DocumentText"/> format statement to look like the following. (This format can be copied from <Path>sample_files → isis → format_tweaks → document_text.txt</Path>.)</MajorVersion> 2350 <MajorVersion number="3">Add the following to the <AutoText text="display"/> format statement, to adjust the <AutoText text="documentContent"/>. This now makes use of a predefined Greenstone javascript function to toggle between displaying and hiding the raw record.</MajorVersion></Text> 2358 <MajorVersion number="3">Add the following to the <AutoText text="display"/> format statement (which can be copied from <Path>sample_files → isis → format_tweaks → document_content.txt</Path>), to adjust the <AutoText text="documentContent"/>. This now makes use of a predefined Greenstone javascript function to toggle between displaying and hiding the raw record.</MajorVersion> 2359 </Text> 2351 2360 <MajorVersion number="2"> 2352 2361 <Format> … … 3342 3351 </NumberedItem> 3343 3352 <NumberedItem> 3344 <Text id="0707">During the copy operation, a popup window appearsasking whether to add <AutoText text="OAIPlugin" /> to the list of plug-ins used in the collection, because the Librarian Interface has not found an existing plug-in that can handle this file type. Press the <AutoText key="glidict::CDM.PlugInManager.QuickAdd" type="button"/> button to include it.</Text>3353 <Text id="0707">During the copy operation, a popup window may appear asking whether to add <AutoText text="OAIPlugin" /> to the list of plug-ins used in the collection, because the Librarian Interface has not found an existing plug-in that can handle this file type. Press the <AutoText key="glidict::CDM.PlugInManager.QuickAdd" type="button"/> button to include it.</Text> 3345 3354 <Text id="0707a">The files for this collection consist of a set of images (in <Path>JCDLPICS → srcdocs</Path>) and a set of OAI records (in <Path>JCDLPICS</Path>) which contain metadata for the images.</Text> 3346 3355 </NumberedItem> … … 3396 3405 </MajorVersion> 3397 3406 <MajorVersion number="3"> 3398 <Text id="0719">In the <AutoText key="glidict::GUI.Format"/> panel, select <AutoText key="glidict::CDM.GUI.Formats"/>. First, in the <AutoText text="browse" /> format statement, replace the templates for <AutoText text="documentNode"/> and <AutoText text="classifierNode"/> for <AutoText text="VList"/>s with the following .</Text>3407 <Text id="0719">In the <AutoText key="glidict::GUI.Format"/> panel, select <AutoText key="glidict::CDM.GUI.Formats"/>. First, in the <AutoText text="browse" /> format statement, replace the templates for <AutoText text="documentNode"/> and <AutoText text="classifierNode"/> for <AutoText text="VList"/>s with the following (which can be copied from <Path>sample_files → oai → format_tweaks → browse_tweak.txt</Path>).</Text> 3399 3408 <Format> 3400 3409 <gsf:template match="documentNode"><br /> … … 3429 3438 </NumberedItem> 3430 3439 <NumberedItem> 3431 <Text id="0722">Next, select <MajorVersion number="2"><AutoText text="DocumentHeading"/></MajorVersion><MajorVersion number="3">the <AutoText text="documentHeading"/> in the <AutoText text="display"/> format statement </MajorVersion> from the <AutoText key="glidict::CDM.GUI.Formats"/> list and change its format statement to:</Text> 3440 <Text id="0722"> 3441 <MajorVersion number="2">Next, select <AutoText text="DocumentHeading"/> from the <AutoText key="glidict::CDM.GUI.Formats"/> list and change its format statement to:</MajorVersion> 3442 <MajorVersion number="3">Next, select the <AutoText text="display"/> format statement from the <AutoText key="glidict::CDM.GUI.Formats"/> list and add the following to create a custom <AutoText text="documentHeading"/> format statement:</MajorVersion> 3443 </Text> 3432 3444 <MajorVersion number="2"> 3433 3445 <Format><h3>[ex.dc.Subject]</h3></Format> … … 3436 3448 <Format> 3437 3449 <gsf:template name="documentHeading"><br /> 3438 <h3><br />3439 3440 </h3><br />3450 <Tab n="1"/><h3><br /> 3451 <Tab n="2"/><gsf:metadata name="ex.dc.Subject"/><br /> 3452 <Tab n="1"/></h3><br /> 3441 3453 </gsf:template> 3442 3454 </Format> … … 3461 3473 </MajorVersion> 3462 3474 <MajorVersion number="3"> 3463 <Text id="0727"> Finally, select <AutoText text="display"/> in the <AutoText key="glidict::CDM.GUI.Formats"/> list and use the following as itsformat statement:</Text>3475 <Text id="0727">Still in the <AutoText text="display"/> format in the <AutoText key="glidict::CDM.GUI.Formats"/> list, add the following (which can be copied from <Path>sample_files → oai → format_tweaks → document_content.txt</Path>) to create a custom <AutoText text="documentContent"/> format statement:</Text> 3464 3476 <Format> 3465 3477 <gsf:template name="documentContent"><br />
Note:
See TracChangeset
for help on using the changeset viewer.