User Tools

Site Tools


en:user:rss

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:user:rss [2025/08/04 01:48] – [Configuring RSS feed info] kjdonen:user:rss [2025/08/04 02:06] (current) – [Configuring RSS feed info] kjdon
Line 71: Line 71:
 Note, plugouts are the opposite to plugins. Plugins handle converting document formats to Greenstone's internal representation. Plugouts take the internal representation and write them out to file. By default, the import process uses the GreenstoneXMLPlugout, which writes out documents as GreenstoneXML archive files. If you export a collection to another format e.g. MARCXML, then a different plugout will be used. Note, plugouts are the opposite to plugins. Plugins handle converting document formats to Greenstone's internal representation. Plugouts take the internal representation and write them out to file. By default, the import process uses the GreenstoneXMLPlugout, which writes out documents as GreenstoneXML archive files. If you export a collection to another format e.g. MARCXML, then a different plugout will be used.
  
-These plugout options cannot currently be set using GLI. To change them, you will need to edit the collection's configuration file by hand. Make sure the collection is not open in GLI before you start editing the file. Once you have edited the file, save it, and rebuild the collection to regenerate the rss file. Unfortunately, as of Greenstone 3.12, if the collection is opened in GLI, these lines will be removed.+Plugout options can be set by specifying a plugout in the collection's configuration file, along with its options. Unfortunately, there was a bug in Greenstone 3.12 which means that this element is removed from the config file when you open the collection in GLI. 
  
-<tabbox Greenstone3> +Alternatively you can use the import options //-saveas// and //-saveas_options//. 
-There are two ways to specify plugout options. +  * **-saveas** specifies what type of output format to use (default: GreenstoneXML) and therefore which plugout (default GerenstoneXMLPlugout) 
-    1. using import option //-saveas_options//The options specified here get passed to the plugout.+  * **-saveas_options** specifies any options to pass to the plugout.  
  
-In GLI, this is on the Create paneFor example:+You can set these in the import options pane of the Create Pane in GLI - if you do that herethey will only be applied when building the collection through GLI. \\ 
 +You can also set import options directly into the config file using GLI's //Edit->Edit collectionConfig.xml//. If you use this method,  the options will be available for use in GLI and for command line building. 
 + 
 +<tabbox Greenstone3> 
 +The three ways to specify plugout option, for example, setting the -rss_title option: 
 +    1. Create Pane, import option //-saveas_options//
  
 <code> <code>
Line 83: Line 88:
 </code> </code>
  
-   * 2. Add a plugout element into the collectionConfig.xml file.+   * 2. Add importOptions directly into the collectionConfig.xml file.  
 + 
 +In GLI, Edit->Edit collectionConfig.xml. Or open up the file //%%greenstone3/web/sites/localsite/collect/<collname>/etc/collectionConfig.xml%%// in an editor. Add the following as a child node of the top level CollectionConfig element: 
 +<code> 
 +  <importOption name="saveas_options" value="-rss_title dc.Title,Title"/> 
 +</code> 
 + 
 +   * 3. Add a plugout element directly into the collectionConfig.xml file.
  
-Open up the file //%%greenstone3/web/sites/localsite/collect/<collname>/etc/collectionConfig.xml%%//.+In GLI, Edit->Edit collectionConfig.xml. Or open up the file //%%greenstone3/web/sites/localsite/collect/<collname>/etc/collectionConfig.xml%%// in an editor.
 Inside the //%%<import>%%// node, add code like the following: Inside the //%%<import>%%// node, add code like the following:
 <code> <code>
en/user/rss.1754272120.txt.gz · Last modified: 2025/08/04 01:48 by kjdon