{% load i18n %}

{gettext(title)}

{% trans 'Published' %}: { iso_date || ' - ' } {% trans 'Language' %}: { langDict[language] } {% trans 'Category' %}: {% trans 'Categories' %}: { getCatName(category) }

{% trans 'General Information' %}

{% trans 'Uploaded By' %}: { org_name }

{% trans 'Uploaded By' %}: { org_name }

{% trans 'Description' %}

{ getDescription(narrative) }

{% comment %} {% if resource_add %} {% endif %} {% endcomment %}
var tag = this; tag.decodeFT = function(ff) { return tag.parent.decodeFT(ff); } tag.getCatName = function(cat) { var cat_lookup = tag.parent.categories.find(function(v) { return v.pk == cat; }); if (cat_lookup) { return gettext(cat_lookup.name); } else { return gettext("Other"); } } tag.langDict = { 'en': gettext('English'), 'tm': gettext('Timorese'), } tag.getDescription = function(narr) { var d = narr.find(function(n) { if (n.lang == tag.language) { return gettext(n.description); } }); if (d) { return d; } else if (narr[0].description) { return gettext(narr[0].description); } else { return ""; } } tag.buildExternalUrl = function(url) { if (url.slice(0,4) == "http") { return url; } else { return "http://" + url; } } tag.buildFileUrl = function(url) { return window.location.host + url; }