Difference between revisions of "GeoRSS Metadata module"

From AwasuWiki
Jump to: navigation, search
(Creating your Metadata module)
m (GeoRSS Metadata module)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=GeoRSS Metadata module=
+
This Metadata module will display any GeoRSS-Simple elements found in your feeds in Channel Summary Templates.
 +
The specific GeoRSS-Simple elements displayed are '''<georss:point/>''' and '''<georss:elev>''' but other GeoRSS elements could easily be added.
 +
 
 +
'''''Note:''' You must have [http://www.microsoft.com/downloads/details.aspx?FamilyID=3144b72b-b4f2-46da-b4b6-c5d7485f2b42&DisplayLang=en MSXML] installed for metadata modules to work.''
  
This Metadata module will display any GeoRSS-Simple elements found in your feeds in Channel Summary Templates.
+
'''''Note:''' This metadata module requires Awasu 2.4.1 or later.''
The specific GeoRSS-Simple elements displayed are '''<georss:point/>''' and '''<georss:elev>''' but other GeoRSS elements counld easily be added.
 
  
 
==Creating the Metadata module==
 
==Creating the Metadata module==
 
# Copy the text in the box below and paste it into a new text file named '''georss.mm'''.
 
# Copy the text in the box below and paste it into a new text file named '''georss.mm'''.
 
# Save it in your \Resources\Metadata Modules\ sub-directory under your Awasu installation directory.
 
# Save it in your \Resources\Metadata Modules\ sub-directory under your Awasu installation directory.
In Awasu select Options from the 
 
  
Instructions for configuring Metadata modules can be found here: [http://www.awasu.com/help/2.4/Advanced%20features/02-MetadataModules.html Awasu 2.4 Metadata module help topic]
+
Instructions for configuring Metadata modules can be found here: [http://www.awasu.com/help/2.4/goto.php?url=Advanced%20features/02-MetadataModules.html Awasu 2.4 Metadata module help topic]
 
<pre>
 
<pre>
 
[Config]
 
[Config]
Line 35: Line 36:
 
     <div class="mm-georss">
 
     <div class="mm-georss">
 
     {%REPEAT% georss}
 
     {%REPEAT% georss}
         <div>{%ITEM-METADATA% georss/point}<span style="color:blue;">&nbsp;{%ITEM-METADATA% georss/elev}</span></div>
+
         <div>{%ITEM-METADATA% georss/point}&nbsp;{%ITEM-METADATA% georss/elev}</div>
 
     {%/REPEAT%}
 
     {%/REPEAT%}
 
     </div>
 
     </div>
Line 44: Line 45:
 
     <div class="mm-georss">
 
     <div class="mm-georss">
 
     {%REPEAT% georss}
 
     {%REPEAT% georss}
         <div><b>Latitude Longitude:</b> {%ITEM-METADATA% georss/point}&nbsp;<span style="color:green;"><b>Elevation:</b> {%ITEM-METADATA% georss/elev}</span></div>
+
         <div><b>Latitude Longitude:</b> {%ITEM-METADATA% georss/point}&nbsp<b>Elevation:</b> {%ITEM-METADATA% georss/elev}</div>
 
     {%/REPEAT%}
 
     {%/REPEAT%}
 
     </div>
 
     </div>
Line 50: Line 51:
 
</pre>
 
</pre>
  
After installing the '''georss.mm''' Metadata Module and configuring it in the Advanced page of Awasu's Program Options dialog, there will be two new Metadata values that you can add to the Item Pane '''georss/point''' and '''georss/elev'''.
+
After installing the '''georss.mm''' Metadata Module and enabling it in the Advanced page of Awasu's Program Options dialog, there will be two new Metadata values that you can add to the Item Pane: '''Elevation''' (georss/elev) and '''Point''' (georss/point) as depicted below (''along with the geo/latitude and geo/longitude'' Metadata values).
  
For additional help on adding columns to the Item Pane see the [http://www.awasu.com/help/2.4/Configuring%20channels/01-ChannelProperties-Channel.html Channel settings help topic].
+
[[image:GeoRSSItemPaneDialog.jpg]]
 +
 
 +
For additional help on adding columns to the Item Pane see the [http://www.awasu.com/help/2.4/goto.php?url=Configuring%20channels/01-ChannelProperties-Channel.html Channel settings help topic].
 +
 
 +
Once the GeoRSS Metadata values have been added to Awasu's Item Pane it should look like this:
 +
[[image:GeoRSSItemPane.jpg|602x361px|Awasu's Item Pane displaying GeoRSS Metadata values]]
  
 
Here are a couple of sample feeds that contain GeoRSS-Simple elements:
 
Here are a couple of sample feeds that contain GeoRSS-Simple elements:
 
* [http://earthquake.usgs.gov/earthquakes/catalogs/1day-M2.5.xml USGS M2.5+ Earthquakes]
 
* [http://earthquake.usgs.gov/earthquakes/catalogs/1day-M2.5.xml USGS M2.5+ Earthquakes]
 
* [http://www.bing.com/maps/GeoCommunity.aspx?action=retrieverss&mkt=en-us&ss=&bbox=-123.09910900890827,37.93636400745027,-122.94015057384968,38.03418455724422&startindex=0&order=date Pt. Reyes, user-contributed places]
 
* [http://www.bing.com/maps/GeoCommunity.aspx?action=retrieverss&mkt=en-us&ss=&bbox=-123.09910900890827,37.93636400745027,-122.94015057384968,38.03418455724422&startindex=0&order=date Pt. Reyes, user-contributed places]
 +
 +
 +
For other ways to extend Awasu with GeoRSS support, click this link: [[GeoRSS]]

Latest revision as of 21:24, 23 June 2010

This Metadata module will display any GeoRSS-Simple elements found in your feeds in Channel Summary Templates. The specific GeoRSS-Simple elements displayed are <georss:point/> and <georss:elev> but other GeoRSS elements could easily be added.

Note: You must have MSXML installed for metadata modules to work.

Note: This metadata module requires Awasu 2.4.1 or later.

Creating the Metadata module

  1. Copy the text in the box below and paste it into a new text file named georss.mm.
  2. Save it in your \Resources\Metadata Modules\ sub-directory under your Awasu installation directory.

Instructions for configuring Metadata modules can be found here: Awasu 2.4 Metadata module help topic

[Config]
Name = GeoRSS
Summary = Extracts GeoRSS-Simple geocodes (point/elev).

[Description]
This metadata module extracts global map locations that have been embedded into feeds
using the <a href="http://www.georss.org/Main_Page" target="_blank">GeoRSS-Simple Vocabulary</a>

[Namespaces]
georss = http://www.georss.org/georss

[Common Metadata]
georss/point = georss:point
georss/elev = georss:elev

[Item Pane Columns]
_AvailabilityMsg=Available for channels that embed GeoRSS information into their feed items.
Point=georss/point
Elevation=georss/elev

[Channel Details Template Block]
{%?CHANNEL-METADATA% georss}
    <div class="mm-georss">
    {%REPEAT% georss}
        <div>{%ITEM-METADATA% georss/point} {%ITEM-METADATA% georss/elev}</div>
    {%/REPEAT%}
    </div>
{%ENDIF%}

[Item Details Template Block]
{%?ITEM-METADATA% georss}
    <div class="mm-georss">
    {%REPEAT% georss}
        <div><b>Latitude Longitude:</b> {%ITEM-METADATA% georss/point}&nbsp<b>Elevation:</b> {%ITEM-METADATA% georss/elev}</div>
    {%/REPEAT%}
    </div>
{%ENDIF%}

After installing the georss.mm Metadata Module and enabling it in the Advanced page of Awasu's Program Options dialog, there will be two new Metadata values that you can add to the Item Pane: Elevation (georss/elev) and Point (georss/point) as depicted below (along with the geo/latitude and geo/longitude Metadata values).

GeoRSSItemPaneDialog.jpg

For additional help on adding columns to the Item Pane see the Channel settings help topic.

Once the GeoRSS Metadata values have been added to Awasu's Item Pane it should look like this: Awasu's Item Pane displaying GeoRSS Metadata values

Here are a couple of sample feeds that contain GeoRSS-Simple elements:


For other ways to extend Awasu with GeoRSS support, click this link: GeoRSS