Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions scholia/app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
<script type="text/javascript" src="{{ url_for('static', filename='widgets/select2/js/select2.min.js')}}"></script>

<script type="text/javascript">
if ("{{ q }}" != "") {

{% if q %}
var url = 'https://www.wikidata.org/w/api.php?action=wbgetentities&ids=' +
'{{ q }}' +
'&format=json&callback=?';
Expand Down Expand Up @@ -296,7 +295,7 @@

});

if ("{{ q2 }}" != "") {
{% if q2 %}

var url2 = 'https://www.wikidata.org/w/api.php?action=wbgetentities&ids=' +
'{{ q2 }}' +
Expand All @@ -308,7 +307,7 @@
}
$("#h1").append(' (<a href="https://www.wikidata.org/wiki/{{ q2 }}">{{ q2 }}</a>)');
});
}
{% endif %}

// this query opens the Wikidata item as a different aspect
var endpointUrl = 'https://query.wikidata.org/sparql';
Expand Down Expand Up @@ -433,7 +432,7 @@
$( '#wembedder' ).append( '<hr>' );
}
});
}
{% endif %}

$(document).ready(function () {
let search_text = ""
Expand Down