Changes for page Homeopaths

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

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

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -26,6 +26,18 @@
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 +#*
30 + #set($addressArray = $result_obj.getProperty("address").value.split(","))
31 + #set($address = "")
32 + #foreach($address_item in $addressArray)
33 + #if($foreach.hasNext)
34 + #set($linebreak = "<br />")
35 + #else
36 + #set($linebreak = "")
37 + #end
38 + #set($address = "${address}${address_item.trim()}${linebreak}")
39 + #end
40 +*#
29 29   #set($info = "<h4><a href='$xwiki.getURL($result_doc.documentReference)'>${stringtool.capitalize($result_doc.getDisplayTitle())}</a></h4><address>${address}</address>")
30 30   #set($discard = $map.put($info, $result_obj.getProperty("latlong").value))
31 31   #end
... ... @@ -35,8 +35,6 @@
35 35   #set($mapJSON = $jsontool.serialize(${map}))
36 36   #end
37 37  
38 - console.log($mapJSON);
39 -
40 40   var mapJSON = $jsontool.parse($mapJSON),
41 41   markers = [];
42 42   for(const property in mapJSON) {