summaryrefslogtreecommitdiff
path: root/chimere/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/utils.py')
-rw-r--r--chimere/utils.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/chimere/utils.py b/chimere/utils.py
index 11c9c4e..8096315 100644
--- a/chimere/utils.py
+++ b/chimere/utils.py
@@ -1240,9 +1240,13 @@ class HtmlXsltManager(ImportManager):
"point" not in item and not ("lat" in item and item['lat']):
return
cls = None
+ origin = self.importer_instance.origin
+ origin_lnk = item.get('link')
+ if origin_lnk:
+ origin = u"<a href='%s' target='_blank'>%s</a>" % (
+ origin_lnk, origin)
dct = {
- 'origin': "<a href='%s' target='_blank'>%s</a>" % (
- item.get('link') or '#', self.importer_instance.origin),
+ 'origin': origin,
'license': self.importer_instance.license,
'name': item['name']}
category = None