Widget:PlaceNamesNavigationMapEnglish: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
mNo edit summary |
||
Line 34: | Line 34: | ||
d.counties = { | d.counties = { | ||
'Bedfordshire': { | 'Bedfordshire': { | ||
'path': 1 | 'path': 1, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Berkshire': { | 'Berkshire': { | ||
'path': 2 | 'path': 2, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Buckinghamshire': { | 'Buckinghamshire': { | ||
'path': 3 | 'path': 3, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Cambridgeshire': { | 'Cambridgeshire': { | ||
'path': 4 | 'path': 4, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Cheshire': { | 'Cheshire': { | ||
'path': 5 | 'path': 5, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Cornwall': { | 'Cornwall': { | ||
'path': 6 | 'path': 6, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Cumberland': { | 'Cumberland': { | ||
'path': 0 | 'path': 0, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Derbyshire': { | 'Derbyshire': { | ||
'path': 7 | 'path': 7, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Devon': { | 'Devon': { | ||
'path': 8 | 'path': 8, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Dorset': { | 'Dorset': { | ||
'path': 9 | 'path': 9, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Durham': { | 'Durham': { | ||
'path': 10 | 'path': 10, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Essex': { | 'Essex': { | ||
'path': 11 | 'path': 11, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Gloucestershire': { | 'Gloucestershire': { | ||
'path': 12 | 'path': 12, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Hampshire': { | 'Hampshire': { | ||
'path': 13 | 'path': 13, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Herefordshire': { | 'Herefordshire': { | ||
'path': 14 | 'path': 14, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Hertfordshire': { | 'Hertfordshire': { | ||
'path': 15 | 'path': 15, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Huntingdonshire': { | 'Huntingdonshire': { | ||
'path': 16 | 'path': 16, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Kent': { | 'Kent': { | ||
'path': 17 | 'path': 17, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Lancashire': { | 'Lancashire': { | ||
'path': 18 | 'path': 18, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Leicestershire': { | 'Leicestershire': { | ||
'path': 19 | 'path': 19, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Lincolnshire': { | 'Lincolnshire': { | ||
'path': 20 | 'path': 20, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Middlesex': { | 'Middlesex': { | ||
'path': 21 | 'path': 21, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Norfolk': { | 'Norfolk': { | ||
'path': 22 | 'path': 22, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Northamptonshire': { | 'Northamptonshire': { | ||
'path': 23 | 'path': 23, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Northumberland': { | 'Northumberland': { | ||
'path': 24 | 'path': 24, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Nottinghamshire': { | 'Nottinghamshire': { | ||
'path': 25 | 'path': 25, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Oxfordshire': { | 'Oxfordshire': { | ||
'path': 38 | 'path': 38, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Rutland': { | 'Rutland': { | ||
'path': 26 | 'path': 26, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Shropshire': { | 'Shropshire': { | ||
'path': 27 | 'path': 27, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Somerset': { | 'Somerset': { | ||
'path': 28 | 'path': 28, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Staffordshire': { | 'Staffordshire': { | ||
'path': 29 | 'path': 29, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Suffolk': { | 'Suffolk': { | ||
'path': 30 | 'path': 30, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Surrey': { | 'Surrey': { | ||
'path': 31 | 'path': 31, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Sussex': { | 'Sussex': { | ||
'path': 32 | 'path': 32, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Warwickshire': { | 'Warwickshire': { | ||
'path': 33 | 'path': 33, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Westmorland': { | 'Westmorland': { | ||
'path': 34 | 'path': 34, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Wiltshire': { | 'Wiltshire': { | ||
'path': 35 | 'path': 35, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Worcestershire': { | 'Worcestershire': { | ||
'path': 36 | 'path': 36, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
}, | }, | ||
'Yorkshire': { | 'Yorkshire': { | ||
'path': 37 | 'path': 37, 'Robin Hood name': 0, 'Local tradition': 0, | ||
'Literary locale': 0, 'Artifacts': 0, 'Miscellaneous': 0, 'total': 0 | |||
} | } | ||
}; | }; | ||
Line 182: | Line 221: | ||
fetch(url).then(res => res.json()).then((jsnCty) => { | fetch(url).then(res => res.json()).then((jsnCty) => { | ||
calcCounties(jsnCty); | calcCounties(jsnCty); | ||
url = "https://www.irhb.org/wiki/api.php?action=ask&query=[[Concept:English%20place-names]]|? | url = "https://www.irhb.org/wiki/api.php?action=ask&query=[[Concept:English%20place-names]]|?Pninterest|?Pnadmdiv|sort=Pnadmdiv&format=json"; | ||
fetch(url).then(res => res.json()).then((jsnPN) => { | fetch(url).then(res => res.json()).then((jsnPN) => { | ||
calcPlaceNames(jsnPN); | calcPlaceNames(jsnPN); |
Revision as of 17:44, 17 May 2019
This widget displays the navigation map on country and administrative division landing pages in the place-names section of IRHB. It takes no parameters.