From: Yasin Date: Fri, 21 Mar 2014 15:32:10 +0000 (+0100) Subject: Institution: Onelab Specific one X-Git-Tag: myslice-1.1~177^2~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f6f2584a81604fd5f2541871c40627616a493973;p=myslice.git Institution: Onelab Specific one --- diff --git a/portal/templates/onelab/onelab_institution.html b/portal/templates/onelab/onelab_institution.html index ad4f236e..f93d48b4 100644 --- a/portal/templates/onelab/onelab_institution.html +++ b/portal/templates/onelab/onelab_institution.html @@ -82,7 +82,46 @@ authority_row = "
"; authority_row += "
"; authority_row += "authority: "+val.authority_hrn+"
"; + authority_row += "
"; + authority_row += ""+val.name+"
"; + authority_row += "
"; + authority_row += "Address: "+val.address+"
"; + authority_row += "City: "+val.postcode+" "+val.city+"
"; + authority_row += "
"; + authority_row += "Country: "+val.country+"
"; + authority_row += "
"; + authority_row += "
"; + authority_row += "

Contacts

"; + authority_row += "Legal: "; + /* + + TODO: find a way to express JSON correctly given the constrains: CSV / JSON + + legal = jQuery.parseJSON(val.legal); + if($.isArray(legal)){ + $.each(legal, function(k,v){ + authority_row += k+" "+v+"
"; + }); + }else{ + */ + authority_row += val.legal+"
"; + //} + authority_row += "
"; + authority_row += "Scientific: "; + /* + scientific = jQuery.parseJSON(val.scientific); + if($.isArray(scientific)){ + $.each(scientific, function(v){ + authority_row += v+", "; + }); + }else{ + */ + authority_row += val.scientific+"
"; + //} + onelab_membership = "Status: "+val.onelab_membership; + onelab_data.push(onelab_membership); authority_data.push(authority_row); + }); $("div#authority-data").html(authority_data.join( "" )); $("div#onelab-data").html(onelab_data.join( "" ));