Difference between revisions of "GeoRSS Metadata module"

From AwasuWiki
Jump to: navigation, search
(GeoRSS Metadata module)
(Creating your Metadata module)
Line 4: Line 4:
 
The specific GeoRSS-Simple elements displayed are '''<georss:point/>''' and '''<georss:elev>''' but other GeoRSS elements counld easily be added.
 
The specific GeoRSS-Simple elements displayed are '''<georss:point/>''' and '''<georss:elev>''' but other GeoRSS elements counld easily be added.
  
==Creating your 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.

Revision as of 06:20, 1 December 2009

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 counld easily be added.

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.

In Awasu select Options from the

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}<span style="color:blue;"> {%ITEM-METADATA% georss/elev}</span></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} <span style="color:green;"><b>Elevation:</b> {%ITEM-METADATA% georss/elev}</span></div>
    {%/REPEAT%}
    </div>
{%ENDIF%}

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.

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

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