ShakeMap Metadata module

From AwasuWiki
Jump to: navigation, search

This Metadata module will display any United States Geological Survey (USGS) ShakeMap elements found in your feeds in Channel Summary Templates. The specific ShakeMap elements displayed are <eq:depth />, <eq:region /> and <eq:seconds /> but other ShakeMap 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 shakemap.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 = ShakeMap
Summary = Extracts ShakeMap (earthquake) extension elements

[Description]
This metadata module extracts United States Geological Survey (USGS) ShakeCast (earthquake) extension elements 
that have been embedded into feeds using the 
<a href="http://earthquake.usgs.gov/earthquakes/shakemap/rss_info.php" target="_blank">USGS ShakeMap Vocabulary</a>

[Namespaces]
eq = http://earthquake.usgs.gov/rss/1.0/

[Common Metadata]
eq/seconds = eq:seconds
eq/depth = eq:depth
eq/region = eq:region

[Item Pane Columns]
_AvailabilityMsg=Available for channels that embed GeoRSS information into their feed items.
Seconds=eq/seconds
Depth=eq/depth
Region=eq/region

[Item Details Template Block]
{%?ITEM-METADATA% eq}
    <div class="mm-shakemap">
    {%REPEAT% eq}
        <div><span style="color:red;"><b>Seconds:</b> {%ITEM-METADATA% eq/seconds}</span> <span style="color:green;"><b>Depth:</b> {%ITEM-METADATA% eq/depth}</span> <span style="color:blue;"><b>Region:</b> {%ITEM-METADATA% eq/region}</span></div>
    {%/REPEAT%}
    </div>
{%ENDIF%}

After installing the shakemap.mm Metadata Module and configuring it in the Advanced page of Awasu's Program Options dialog, there will be three new Metadata values that you can add to the Item Pane Depth (eq/depth), Region (eq/region), and Seconds (eq/seconds) as depicted below (along with the geo/latitude and geo/longitude Metadata values).

Awasu's Item Pane dialog box

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

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


Here's a feed that contain ShakeMap elements:

Additional information about ShakeMaps can be found here: