Changeset 28549 in osm
- Timestamp:
- 2012-08-15T14:15:41+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/tag2link
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tag2link/resources/tag2link_sources.xml
r28546 r28549 21 21 <!-- Global --> 22 22 23 <s ourcename="Common">23 <src name="Common"> 24 24 <rule> 25 25 <condition k="(contact:)?website" /> … … 34 34 <link name="Send Email" href="mailto:%v%" /> 35 35 </rule> 36 </s ource>36 </src> 37 37 38 <s ourcename="Wikipedia">38 <src name="Wikipedia"> 39 39 <rule> 40 40 <condition k="wikipedia(?::(\p{Lower}{2,}))?" v="(?:(\p{Lower}{2,}):)?(.*)" /> 41 41 <link name="View %name% article" href="http://%k.1:v.1:en%.wikipedia.org/wiki/%v.2:v.1%" /> 42 42 </rule> 43 </s ource>43 </src> 44 44 45 <s ourcename="WHC">45 <src name="WHC"> 46 46 <rule> 47 47 <condition k="ref:whc" v="[0-9-]+" /> 48 48 <link name="View UNESCO sheet" href="http://whc.unesco.org/%lang(en,fr):en%/list/%v%" /> 49 49 </rule> 50 </s ource>50 </src> 51 51 52 52 <!-- Only for France --> 53 53 54 <s ourcename="SANDRE" country-code="FR">54 <src name="SANDRE" country-code="FR"> 55 55 <rule> 56 56 <condition k="ref:(FR:)?sandre" v="[A-Z0-9-]{8}" /> 57 57 <link name="View %name% sheet of river" href="http://services.sandre.eaufrance.fr/Courdo/Fiche/client/fiche_courdo.php?CdSandre=%v%" /> 58 58 </rule> 59 </s ource>59 </src> 60 60 61 <s ourcename="INSEE" country-code="FR">61 <src name="INSEE" country-code="FR"> 62 62 <rule> 63 63 <condition k="admin_level" v="8"/> … … 96 96 <link name="View %name% list of regions" href="http://www.insee.fr/fr/methodes/nomenclatures/cog/region.asp" /> 97 97 </rule> 98 </s ource>98 </src> 99 99 100 <s ourcename="CEF" country-code="FR">100 <src name="CEF" country-code="FR"> 101 101 <rule> 102 102 <condition k="ref:(FR:)?CEF" v="[A-Z0-9_]{8}" /> 103 103 <link name="View %name% sheet of church" href="http://www.messesinfo.catholique.fr/public/fiche.php?valcode=%v%" /> 104 104 </rule> 105 </s ource>105 </src> 106 106 107 <s ourcename="MHS" country-code="FR">107 <src name="MHS" country-code="FR"> 108 108 <rule> 109 109 <condition k="ref:(FR:)?mhs" v="\p{Upper}{2}\p{Digit}{8}" /> … … 114 114 <link name="View Mérimée list for this municipality" href="http://www.culture.gouv.fr/public/mistral/merimee_fr?ACTION=CHERCHER&FIELD_1=cmer1&VALUE_1=%v%" /> 115 115 </rule> 116 </s ource>116 </src> 117 117 118 <s ourcename="IGN" country-code="FR">118 <src name="IGN" country-code="FR"> 119 119 <!-- 120 120 http://geodesie.ign.fr/fiches/index.php?module=e&action=fichepdf&source=carte&sit_no=4509302&geo_cid=0&lambda=1.90024744&phi=48.03041621 … … 137 137 <link name="View %name% sheet of geodesic site" href="http://geodesie.ign.fr/fiches/index.php?module=e&action=fichepdf&source=carte&sit_no=%ref.v.1%" /> 138 138 </rule> 139 </s ource>139 </src> 140 140 141 <s ourcename="Education Nationale" country-code="FR">141 <src name="Education Nationale" country-code="FR"> 142 142 <rule> 143 143 <condition k="ref:(FR:)?UAI" /> 144 144 <link name="View UAI sheet of school/college" href="http://www.education.gouv.fr/bce/avancee/fiche.php?NUMERO_UAI=%v%&type_info=UAI_all" /> 145 145 </rule> 146 </s ource>146 </src> 147 147 148 148 <!-- social facility --> 149 <s ourcename="FINESS" country-code="FR">149 <src name="FINESS" country-code="FR"> 150 150 <rule> 151 151 <condition k="ref:(FR:)?FINESS" v="[A-Z0-9-]{9}" /> 152 152 <link name="View %name% sheet of hospital/home" href="http://finess.sante.gouv.fr/finess/jsp/actionDetailEtablissement.do?noFiness=%v%" /> 153 153 </rule> 154 </s ource>154 </src> 155 155 156 156 </tag2link> -
applications/editors/josm/plugins/tag2link/src/org/openstreetmap/josm/plugins/tag2link/io/SourcesReader.java
r28547 r28549 144 144 int event = parser.next(); 145 145 if (event == XMLStreamConstants.START_ELEMENT) { 146 if (parser.getLocalName().equals("s ource")) {146 if (parser.getLocalName().equals("src")) { 147 147 result.add(parseSource()); 148 148 } else {
Note:
See TracChangeset
for help on using the changeset viewer.