Ignore:
Timestamp:
Mar 21, 2010, 11:58:42 PM (11 years ago)
Author:
grum
Message:

fix GPS managment with XMP metadata ; and fix some minor bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMetaData/amd_root.class.inc.php

    r5226 r5237  
    398398      return(implode($separator, $tmp));
    399399    }
     400    elseif(preg_match('/\d{1,3}°\s\d{1,2}\'\s(\d{1,2}\.{0,1}\d{0,2}){0,1}.,\s(north|south|east|west)$/i', $value))
     401    {
     402      /* \d{1,3}°\s\d{1,2}\'\s(\d{1,2}\.{0,1}\d{0,2}){0,1}.
     403       *
     404       * keys 'coord' and 'card' are present
     405       *
     406       * assume this is a GPS coordinate
     407       */
     408        return(preg_replace(
     409          Array('/, north$/i', '/, south$/i', '/, east$/i', '/, west$/i'),
     410          Array(" ".L10n::get("North"), " ".L10n::get("South"), " ".L10n::get("East"), " ".L10n::get("West")),
     411          $value)
     412        );
     413    }
    400414    else
    401415    {
Note: See TracChangeset for help on using the changeset viewer.