Policy failures:   
Code warning
- failed on resource ListReportController.java. Reason: ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized, line 74
- failed on resource ListReportController.java. Reason: ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized, line 98
- failed on resource ListReportController.java. Reason: List is a raw type. References to generic type List<E> should be parameterized, line 74
- failed on resource ListReportController.java. Reason: List is a raw type. References to generic type List<E> should be parameterized, line 98
- failed on resource ListReportController.java. Reason: Type safety: The method add(Object) belongs to the raw type List. References to generic type List<E> should be parameterized, line 102
... and more.  
Override reason:   
huhu
This commit is contained in:
Frederic Debuire
2008-02-25 10:32:50 +00:00
parent 15a2f365a6
commit 3fd37463d9
9 changed files with 244 additions and 62 deletions

View File

@@ -14,12 +14,12 @@
<div style="border: 1px solid orange;">
<table style="width: 100%">
<tr>
<td colspan="2" align="center">
<td colspan="3" align="center">
<a title="To see the detail and download" href="<c:url value="/detailArticle.htm"><c:param name="id" value="${article.article.id}"/></c:url>"><b>${article.article.title}</b></a> by ${article.article.mainAuthor.firstName} ${article.article.mainAuthor.lastName}
</td>
</tr>
<tr>
<td align="left">
<td align="left" width="33%">
<c:choose>
<c:when test="${not empty article.referee}">
Delegated to:<br />
@@ -31,8 +31,18 @@
&nbsp;
</c:otherwise>
</c:choose>
</td>
<td align="center" width="33%">
<c:choose>
<c:when test="${article.article.state == 'EVALUATED' or article.article.state == 'REJECTED' or article.article.state == 'ACCEPTED'}">
<a href="<c:url value="listReport.htm?id=${article.article.id}"/>"><fmt:message key="validate.report" /></a>
</c:when>
<c:otherwise>
&nbsp;
</c:otherwise>
</c:choose>
</td>
<td align="right">
<td align="right" width="33%">
<c:if test="${article.evaluated == false and empty article.referee}">
<c:if test="${article.article.state != 'REJECTED' and article.article.state != 'ACCEPTED'}">
<a title="Click to evaluate" href="<c:url value="evaluation.htm?id=${article.article.id}"/>">Evaluate <img src="./images/button_follow_32x32.png" alt="Click to evaluate" /></a>

View File

@@ -0,0 +1,52 @@
<%@ include file="/WEB-INF/decorators/include.jsp"%>
<html>
<head></head>
<body>
<h4 class="title"><fmt:message key="report.headPage" /></h4>
<c:choose>
<c:when test="${empty listReport}">
<div class="warningBox">
There is no report for this article at the moment.
</div>
</c:when>
<c:otherwise>
<c:forEach items="${listReport}" var="report" varStatus="current">
<table>
<tr>
<td><fmt:message key="report.referee" />: ${report.referee.firstName} ${report.referee.lastName}</td>
</tr>
<tr>
<td><fmt:message key="evaluation.titleArticle" /></td>
<td>${report.article.title}</td>
</tr>
<c:forEach items="${container[current.index]}" var="rating">
<tr>
<td><fmt:message key="evaluation.note" /></td>
<td>${rating.criterion.name} is:</td>
<td>${rating.value}</td>
</tr>
</c:forEach>
<tr>
<td><fmt:message key="evaluation.commentAuthor" /></td>
<td>${report.commentAuthor}</td>
</tr>
</table>
<hr>
</c:forEach>
</c:otherwise>
</c:choose>
<br />
<a class="back_link" href="<c:url value="${whereIcome}"/>"><fmt:message key="form.link.back" /></a>
</body>
</html>

View File

@@ -54,9 +54,19 @@
</tr>
<tr>
<td colspan="2" align="center">
<a class="manage_link" id="articleURL${i.index}" title="Download" href="<c:url value="/download.htm"><c:param name="articleId" value="${article.id}"/></c:url>">Download<img src="./images/cc-download_manager-32x32.png" alt="Download" /></a>
<a class="manage_link" id="modifyArticle${i.index}" title="Modify" href="<c:url value="/submissionArticle.htm"><c:param name="action" value="modify"/><c:param name="articleID" value="${article.id}"/></c:url>">Modify<img src="./images/cc-kedit-32x32.png" alt="Modify" /></a>
<a class="manage_link" id="suppressArticle${i.index}" title="Delete" href="javascript:deleteArticle(${article.id});">Delete<img src="./images/cc-button_cancel-32x32.png" alt="Delete"/></a>
<a class="manage_link" id="articleURL${i.index}" title="Download" href="<c:url value="/download.htm"><c:param name="articleId" value="${article.id}"/></c:url>">Download<img src="./images/cc-download_manager-32x32.png" alt="Download" /></a>
<c:if test="${article.state != 'EVALUATED' and article.state != 'REJECTED' and article.state != 'ACCEPTED'}">
<a class="manage_link" id="modifyArticle${i.index}" title="Modify" href="<c:url value="/submissionArticle.htm"><c:param name="action" value="modify"/><c:param name="articleID" value="${article.id}"/></c:url>">Modify<img src="./images/cc-kedit-32x32.png" alt="Modify" /></a>
<a class="manage_link" id="suppressArticle${i.index}" title="Delete" href="javascript:deleteArticle(${article.id});">Delete<img src="./images/cc-button_cancel-32x32.png" alt="Delete"/></a>
</c:if>
<c:choose>
<c:when test="${article.state == 'EVALUATED' or article.state == 'REJECTED' or article.state == 'ACCEPTED'}">
<br/><a href="<c:url value="listReportAuthor.htm?id=${article.id}"/>"><fmt:message key="validate.report" /></a>
</c:when>
<c:otherwise>
&nbsp;
</c:otherwise>
</c:choose>
</td>
</tr>
</tbody>

View File

@@ -306,7 +306,12 @@ function showArticleReferee() {
${referee.firstName} ${referee.lastName}<br/>
</c:forEach>
</c:when>
<c:otherwise>
<c:otherwise>
&nbsp;
</c:otherwise>
</c:choose>
</td>
<td>
<c:if test="${article.evaluated == false}">
<c:if test="${article.state != 'REJECTED' and article.state != 'ACCEPTED'}">
To evaluate
@@ -322,10 +327,7 @@ function showArticleReferee() {
</c:if>
<c:if test="${article.state == 'ACCEPTED'}">
Accepted
</c:if>
</c:otherwise>
</c:choose>
</c:if>
</td>
<td align="center" width="25%">
<a href="chooseConference.htm?idConf=${article.conference.id}">${article.conference.title}</a>