# HG changeset patch # User cavaliet # Date 1393350387 -3600 # Node ID ebcc7a401ae9b73dbefb63aefbd2c1028d302b7b # Parent 3d524eac1231c8f191080a26cb8ee92555ba3f97 enhance dbpedia overlay and v0.8.5 diff -r 3d524eac1231 -r ebcc7a401ae9 src/egonomy/__init__.py --- a/src/egonomy/__init__.py Tue Feb 25 16:23:48 2014 +0100 +++ b/src/egonomy/__init__.py Tue Feb 25 18:46:27 2014 +0100 @@ -1,4 +1,4 @@ -VERSION = (0, 8, 4, "final", 1) +VERSION = (0, 8, 5, "final", 1) VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2]))) diff -r 3d524eac1231 -r ebcc7a401ae9 src/egonomy/static/egonomy/css/style.css --- a/src/egonomy/static/egonomy/css/style.css Tue Feb 25 16:23:48 2014 +0100 +++ b/src/egonomy/static/egonomy/css/style.css Tue Feb 25 18:46:27 2014 +0100 @@ -413,7 +413,7 @@ /* DBPEDIA OVERLAY */ .dbpedia-overlay { position: absolute; width: 280px; background: #ffffff; border: 1px solid #999999; box-shadow: 5px 5px 10px rgba(0,0,0,.5); - display: none; z-index: 1500; + display: none; z-index: 1500; font-family: 'Lato'; } .dbpedia-close { float: right; font-weight: bold; margin: 5px; line-height: 12px; font-size: 20px; diff -r 3d524eac1231 -r ebcc7a401ae9 src/egonomy/static/egonomy/js/main.js --- a/src/egonomy/static/egonomy/js/main.js Tue Feb 25 16:23:48 2014 +0100 +++ b/src/egonomy/static/egonomy/js/main.js Tue Feb 25 18:46:27 2014 +0100 @@ -189,6 +189,7 @@ }); $sel.mouseleave(hideDbpediaBox); } + bindDbpediaBox(".for-overlay"); $overlay.hover(function() { var $this = $(this), @@ -255,6 +256,8 @@ if(tagit_label.substr(0, 29) == 'http://fr.wikipedia.org/wiki/'){ var label = tagit_label.substr(29).replace(new RegExp("_","g")," "); $(ui.tag.children()[0]).html(label + ' '); + ui.tag.attr("data-dbpedia-uri", "http://fr.dbpedia.org/resource/" + tagit_label.substr(29)); + bindDbpediaBox(ui.tag); } } hideDbpediaBox(); diff -r 3d524eac1231 -r ebcc7a401ae9 src/egonomy/templates/egonomy_view_fragment.html --- a/src/egonomy/templates/egonomy_view_fragment.html Tue Feb 25 16:23:48 2014 +0100 +++ b/src/egonomy/templates/egonomy_view_fragment.html Tue Feb 25 18:46:27 2014 +0100 @@ -157,7 +157,7 @@ {% for t in fragment.tag_list_linked %} {% if t.label != "" %} {% if t.url != "" %} -