Added intro message

This commit is contained in:
Francesco Mangiacrapa 2020-01-17 16:46:34 +01:00
parent 955d94436d
commit 2e3a3a017b
3 changed files with 20 additions and 3 deletions

View File

@ -13,14 +13,17 @@ import org.gcube.portlets.widgets.ckan2zenodopublisher.shared.wrapped.ZenodoItem
import com.github.gwtbootstrap.client.ui.Alert;
import com.github.gwtbootstrap.client.ui.Button;
import com.github.gwtbootstrap.client.ui.Hero;
import com.github.gwtbootstrap.client.ui.Modal;
import com.github.gwtbootstrap.client.ui.ModalFooter;
import com.github.gwtbootstrap.client.ui.Paragraph;
import com.github.gwtbootstrap.client.ui.constants.AlertType;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.HTML;
/**
* The Class CkanToZendoPublisherWidget.
@ -52,6 +55,13 @@ public class CkanToZendoPublisherWidget {
modal.addStyleName("ckan2zenodo-modal-style");
modal.setCloseVisible(true);
buttonPublish.setEnabled(false);
Hero hero = new Hero();
hero.addStyleName("hero-unit-custom");
hero.add(new Paragraph("By using this process you are transferring selected catalogue item content to the Zenodo Repository (link). "
+ "This will create a new item in Zenodo and a link of the Zenodo item will be added to the catalogue item."));
modal.add(hero);
final LoaderIcon loader = new LoaderIcon("Loading data from service...");
modal.add(loader);
ckanToZenodoService.convertToZenodoItem(item, new AsyncCallback<ZenodoItem>() {

View File

@ -16,8 +16,8 @@
}
.ckan2zenodo-modal-style .modal-body {
height: 730px;
max-height: 730px;
height: 800px;
max-height: 800px;
}
.ckan2zenodo-modal-style .form-horizontal {
@ -58,3 +58,10 @@
.authors-table-spacing td {
padding-bottom: 5px;
}
.hero-unit-custom {
padding: 10px;
margin-bottom: 10px;
line-height: 30px;
color: #222;
}

View File

@ -1,7 +1,7 @@
#Property file to read the fields descriptions to show on GUI side
title=Title of deposition.
description=Abstract or description for deposition.
creators= he creators/authors of the deposition. Name of creator (is required) in the format Family name, Given names
creators=The creators/authors of the deposition. Name of creator (is required) in the format Family name, Given names
access_right=Controlled vocabulary: <br>* open: Open Access<br>* embargoed: Embargoed Access<br>* restricted: Restricted Access<br>* closed: Closed Access Defaults to open.
license=The selected license applies to all files in this deposition, but not to the metadata which is licensed under Creative Commons Zero. Further information about licenses is available at Open Definition Licenses Service. Defaults to cc-by for non-datasets and cc-zero for datasets.
contributors=The contributors of the deposition (e.g. editors, data curators, etc.). Name of creator (is required) in the format Family name, Given names