68 |
68 |
|
69 |
69 |
infoLabel.addStyleName("alert alert-info");
|
70 |
70 |
if(mode.equals(Constants.REPOSITORY_MODE_OPENDOAR)) {
|
71 |
|
infoLabel.setHTML("Please make sure your repository is registered in <a href=\"http://www.opendoar.org\" " +
|
72 |
|
"target=\"_blank\"><i class=\"fa fa-external-link\" style=\"margin-right:3px\"></i>OpenDOAR</a>.");
|
|
71 |
|
|
72 |
repositoryService.getLatestUpdateDateOfList(mode, new AsyncCallback<String>() {
|
|
73 |
|
|
74 |
@Override
|
|
75 |
public void onFailure(Throwable caught) {
|
|
76 |
infoLabel.setHTML("Please make sure your repository is registered in <a href=\"http://www.opendoar.org\" " +
|
|
77 |
"target=\"_blank\"><i class=\"fa fa-external-link\" style=\"margin-right:3px\"></i>OpenDOAR</a>.");
|
|
78 |
}
|
|
79 |
|
|
80 |
@Override
|
|
81 |
public void onSuccess(String result) {
|
|
82 |
infoLabel.setHTML("Please make sure your repository is registered in <a href=\"http://www.opendoar.org\" " +
|
|
83 |
"target=\"_blank\"><i class=\"fa fa-external-link\" style=\"margin-right:3px\"></i>OpenDOAR</a>.<br>" +
|
|
84 |
"<b>Last Updated: </b>" + result);
|
|
85 |
}
|
|
86 |
});
|
|
87 |
|
73 |
88 |
} else if(mode.equals(Constants.REPOSITORY_MODE_RE3DATA)) {
|
74 |
|
infoLabel.setHTML("Please make sure your repository is registered in <a href=\"http://www.re3data.org\" " +
|
75 |
|
"target=\"_blank\"><i class=\"fa fa-external-link\" style=\"margin-right:3px\"></i>Re3data</a>.");
|
|
89 |
|
|
90 |
repositoryService.getLatestUpdateDateOfList(mode, new AsyncCallback<String>() {
|
|
91 |
|
|
92 |
@Override
|
|
93 |
public void onFailure(Throwable caught) {
|
|
94 |
infoLabel.setHTML("Please make sure your repository is registered in <a href=\"http://www.re3data.org\" " +
|
|
95 |
"target=\"_blank\"><i class=\"fa fa-external-link\" style=\"margin-right:3px\"></i>Re3data</a>.");
|
|
96 |
}
|
|
97 |
|
|
98 |
@Override
|
|
99 |
public void onSuccess(String result) {
|
|
100 |
infoLabel.setHTML("Please make sure your repository is registered in <a href=\"http://www.re3data.org\" " +
|
|
101 |
"target=\"_blank\"><i class=\"fa fa-external-link\" style=\"margin-right:3px\"></i>Re3data</a>.<br>" +
|
|
102 |
"<b>Last Updated: </b>" + result);
|
|
103 |
}
|
|
104 |
});
|
76 |
105 |
}
|
77 |
106 |
|
78 |
107 |
selectRepositoryPanel.add(infoLabel);
|
Added a last update date for the opendoar and re3data lists