Project

General

Profile

« Previous | Next » 

Revision 41640

Added a last update date for the opendoar and re3data lists

View differences:

modules/uoa-repository-manager-gui/trunk/src/main/java/eu/dnetlib/repo/manager/client/datasources/utils/SelectRepositoryWidget.java
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);
modules/uoa-repository-manager-gui/trunk/src/main/webapp/RepositoryManager.html
944 944

  
945 945
            </div>
946 946
            <div class="footer">
947
                <div class="pull-right">
948
                    10GB of <strong>250GB</strong> Free.
949
                </div>
947
                <!--<div class="pull-right">-->
948
                    <!--10GB of <strong>250GB</strong> Free.-->
949
                <!--</div>-->
950 950
                <div>
951 951
                    &copy; 2010&nbsp;-&nbsp;2015 OpenAIRE
952 952
                </div>

Also available in: Unified diff