Skip to content

Commit

Permalink
Merge pull request #310 from ec-jrc/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
unaibrrgn authored Sep 22, 2023
2 parents ae1f247 + 43feaa8 commit df316d3
Show file tree
Hide file tree
Showing 6 changed files with 1,354 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,8 @@ bulkimport.error.itemreference=Some items linking to references could not be ins

bulk.import.success=The bulk import has been complete with success.
bulk.import.error=The bulk import has been complete with the following errors:
bulk.import.error.emptyfile=The bulk import cannot be complete because the file does not contain any item.
bulk.import.error.emptyfile=The bulk import cannot be complete because the file does not contain any item.
bulk.import.error.emptyrequired=The bulk cannot be complete because the file does not contain data on required field: {fields} on line: {line}.
bulk.import.error.file=The bulk import has been complete with errors. The file could not be processed because of a wrong format.
bulk.import.error.header.localid=The header of the file does not contain the "LocalID" column.
bulk.import.error.header.language=The header of the file does not contain the "Language" column.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -656,21 +656,28 @@
</div>
</div>
</div>
<div class="modal-footer">
<div id="browseLoaderModalFooter" class="modal-footer">
<div class="col-sm-6">
<button type="reset" class="btn btn-danger width100"><i class="fas fa-sync-alt"></i> ${localization.getString("reset")}</button>
</div>
<div class="col-sm-6">
<button type="submit" class="btn btn-primary width100">
<button id="btnStartBulkImport" type="submit" class="btn btn-primary width100">
<i class="fas fa-upload"></i> ${localization.getString("label.start.bulkimport")}
</button>
</div>
<script>
$(document).on('click', '#btnStartBulkImport', function (e) {
$('#bufferLoader').html('<div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div>');
});
</script>

</div>

</div>
<div id="bufferLoader"></div>
</div>
</form>
</div>
</div>

</div>
<% } else { %>
<div class="col-sm-6"></div>
<%}%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<!DOCTYPE html>
<html lang="${localization.getString("property.localeid")}" role="document">
<%@include file="includes/head.inc.jsp" %>
<link rel="stylesheet" href="res/css/css-loader.css">
<body>
<%@include file="includes/header.inc.jsp"%>

Expand Down Expand Up @@ -129,7 +130,7 @@
<h5 class="card-title"></h5>
<p class="card-text">${localization.getString("label.solrdescription")}</p>
<% if (SolrHandler.checkSolrCompleteIndexinglRunning()) { %>
<p class="card-text mt-3 alert alert-warning">${localization.getString("label.solrrunning")}</p>
<div class="card-text mt-3 alert alert-warning"><p>${localization.getString("label.solrrunning")}</p> <div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div> </div>
<% } else {%>
<a id="startSolrIndexing" class="btn btn-primary btn-md<%=buttonDisabled%>" href="?<%=BaseConstants.KEY_REQUEST_STARTINDEX%>=<%=BaseConstants.KEY_BOOLEAN_STRING_TRUE%>" role="button">${localization.getString("label.solrstartindexing")}</a>
<script>
Expand Down Expand Up @@ -157,8 +158,9 @@
<div class="card-body">
<h5 class="card-title"></h5>
<p class="card-text">${localization.getString("label.cachingdescription")}</p>
<% if (CacheHelper.checkCacheCompleteRunning()) { %>
<p class="card-text mt-3 alert alert-warning">${localization.getString("label.cacheallrunning")}</p>
<% if (CacheHelper.checkCacheCompleteRunning()) {
%>
<div class="card-text mt-3 alert alert-warning"><p>${localization.getString("label.cacheallrunning")}</p> <div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div> </div>
<% } else {%>
<div class="row">
<div class="col-sm-4">
Expand Down
64 changes: 64 additions & 0 deletions sources/Re3gistry2/src/main/webapp/res/css/css-loader.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css to edit this template
*/
/*
Created on : 08-sep-2023, 9:45:16
Author : ubarrigon
*/
.lds-ellipsis {
display: flex;
position: relative;
width: 80px;
height: 80px;
margin: 0 auto;
}
.lds-ellipsis div {
position: absolute;
top: 33px;
width: 13px;
height: 13px;
border-radius: 50%;
background: #ccc;
animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
left: 8px;
animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
left: 8px;
animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
left: 32px;
animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
left: 56px;
animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes lds-ellipsis3 {
0% {
transform: scale(1);
}
100% {
transform: scale(0);
}
}
@keyframes lds-ellipsis2 {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(24px, 0);
}
}
Loading

0 comments on commit df316d3

Please sign in to comment.