Changes for page Homeopaths

Last modified by Jip-jan Alunkel on March 14, 20:13

From version 10.54
edited by Jip-jan Alunkel
on March 14, 19:59
Change comment: Renamed from xwiki:practices.WebHome
To version 10.59
edited by Jip-jan Alunkel
on March 14, 20:02
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -26,19 +26,6 @@
26 26   #end
27 27   #end
28 28   #set($address = "$doc.getTitle()<br />$x['pmStreet'] $x['pmHousenumber']<br />$x['pmPostcode'] $x['pmCity']<br />$x['pmCounty'] $x['pmState']<br />$x['pmCountry']")
29 -console.log("$address");
30 -#*
31 - #set($addressArray = $result_obj.getProperty("address").value.split(","))
32 - #set($address = "")
33 - #foreach($address_item in $addressArray)
34 - #if($foreach.hasNext)
35 - #set($linebreak = "<br />")
36 - #else
37 - #set($linebreak = "")
38 - #end
39 - #set($address = "${address}${address_item.trim()}${linebreak}")
40 - #end
41 -*#
42 42   #set($info = "<h4><a href='$xwiki.getURL($result_doc.documentReference)'>${stringtool.capitalize($result_doc.getDisplayTitle())}</a></h4><address>${address}</address>")
43 43   #set($discard = $map.put($info, $result_obj.getProperty("latlong").value))
44 44   #end
... ... @@ -48,6 +48,8 @@
48 48   #set($mapJSON = $jsontool.serialize(${map}))
49 49   #end
50 50  
38 + console.log("$mapJSON");
39 +
51 51   var mapJSON = $jsontool.parse($mapJSON),
52 52   markers = [];
53 53   for(const property in mapJSON) {