--- a/src/hdalab/static/hdalab/js/gomina.js Fri Aug 22 15:02:39 2014 +0200
+++ b/src/hdalab/static/hdalab/js/gomina.js Fri Aug 22 17:17:00 2014 +0200
@@ -267,7 +267,6 @@
if (contentdata && contentdata.length) {
var _htmlCl = '<ul id="contentlist">'
+ contentdata.map(function(_d) {
- console.log("coucou", gomNs, gomNs.urls);
var _dsurl = gomNs.urls.datasheet.replace(/ID$/,_d.hda_id);
var _html = '<li class="content-item"><h3><a href="'
+ _dsurl
@@ -301,7 +300,9 @@
+ (_t.match ? ' class="tagmatch"' : '')
+ '>'
+ _t.translated_label
- + '</a></li>';
+ + '</a>'
+ + ' <a class="mind-map-icon" href="' + gomNs.urls.renkan + '?label=' + _t.label + '" target="_blank">placeholder</a></h3>'
+ + '</li>';
}).join('')
+ '</ul><h4>'+gettext("Annotations")+'</h4><div class="content-annotation" contentid="'
+ _d.id
--- a/src/hdalab/views/profile.py Fri Aug 22 15:02:39 2014 +0200
+++ b/src/hdalab/views/profile.py Fri Aug 22 17:17:00 2014 +0200
@@ -198,7 +198,7 @@
# Get datasheets from ajax filter search
- filter_output = filter_generic(request.GET.get('lang',request.LANGUAGE_CODE), None, ",".join(label_list), ",".join(country_list))
+ filter_output = filter_generic(request.GET.get('lang',request.LANGUAGE_CODE), None, ",".join(label_list), ",".join(country_list), content_count=10)
filter_output = json.loads(filter_output)
#logger.debug("COUCOU")
#logger.debug(json.dumps(filter_output, indent=2))