Project

General

Profile

« Previous | Next » 

Revision 24841ac2

Added by Andreas Kohlbecker almost 11 years ago

start, stop of instances and reload of configuration implemented, see #3471 (cdmlib-remote-webapp instances can be stopped / started individually)

View differences:

src/main/webapp/js/oai-pmh-status.js
1 1

  
2 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 3

  
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
	});
4
  $("#instances 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 20
});

Also available in: Unified diff