Project

General

Profile

Download (688 Bytes) Statistics
| Branch: | Tag: | Revision:
1

    
2
$(document).ready(function(){
3
	
4
	$("#datasources table .entry").each(function(){
5
		var entry = $(this);
6
		var url = entry.find('.base-url a').attr('href');
7

    
8
		$.getJSON(
9
			"http://wp5.e-taxonomy.eu/registry/oai/providers.php?format=json&callback=?&find="+encodeURIComponent(url),
10
			function(data){
11
				if(data.providers != undefined && data.providers.provider != undefined){
12
					entry.find('.oai-pmh').css('color', 'green').html("Registered");
13
				} else {
14
					entry.find('.oai-pmh').html("<a href=\"mailto:editsupport@bgbm.org?subject=OAI-PHM Provider Registration&body=" + encodeURIComponent(url) + "\">Request for registration</a>");
15
				}
16
			});
17
		
18
		
19
	});
20
});
(3-3/3)