summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chimere/utils.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/chimere/utils.py b/chimere/utils.py
index 1ee5bc7..f5ddcd5 100644
--- a/chimere/utils.py
+++ b/chimere/utils.py
@@ -1188,9 +1188,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