Skip to content

Commit

Permalink
Merge pull request #1595 from gathreya/protocolOnlineReview
Browse files Browse the repository at this point in the history
RESKC-1219: Fixing online review and assign reviewers for protocol.
  • Loading branch information
leoherbie committed Mar 17, 2016
2 parents 8346deb + eb23dee commit aa41635
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class ProtocolOnlineReviewDocument extends ProtocolOnlineReviewDocumentB

public ProtocolOnlineReviewDocument() {
super();
protocolOnlineReviewList = new ArrayList<ProtocolOnlineReview>();
protocolOnlineReviewList = new ArrayList<>();
ProtocolOnlineReview newProtocolReview = new ProtocolOnlineReview();
newProtocolReview.setProtocolOnlineReviewDocument(this);
protocolOnlineReviewList.add(newProtocolReview);
Expand Down Expand Up @@ -149,10 +149,7 @@ public List buildListOfDeletionAwareLists() {

@Override
protected List<RolePersons> getAllRolePersons() {
KcAuthorizationService kraAuthService =
(KcAuthorizationService) KcServiceLocator.getService(KcAuthorizationService.class);
//return kraAuthService.getAllRolePersons(getProtocolOnlineReview());
return new ArrayList<RolePersons>();
return new ArrayList<>();
}

public String getDocumentTypeCode() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ public class ProtocolOnlineReviewServiceImpl extends ProtocolOnlineReviewService
@Override
public boolean isProtocolInStateToBeReviewed(ProtocolBase protocol) {
boolean isReviewable = false;
ProtocolSubmission submission = (ProtocolSubmission)((Protocol) protocol).getProtocolSubmission();
ProtocolSubmission submission = ((Protocol) protocol).getProtocolSubmission();
if (submission != null) {
try {
isReviewable = StringUtils.isNotEmpty(submission.getScheduleId())
|| ProtocolReviewType.EXPEDITED_REVIEW_TYPE_CODE.equals(submission.getProtocolReviewTypeCode())
|| ProtocolReviewType.EXEMPT_STUDIES_REVIEW_TYPE_CODE.equals(submission.getProtocolReviewTypeCode())
|| (ProtocolReviewType.FYI_TYPE_CODE.equalsIgnoreCase(submission.getProtocolReviewTypeCode()) &&
ProtocolSubmissionType.NOTIFY_IRB.equalsIgnoreCase(submission.getProtocolSubmissionType().getSubmissionTypeCode()));
isReviewable &= (StringUtils.equals(submission.getSubmissionStatusCode(), ProtocolSubmissionStatus.SUBMITTED_TO_COMMITTEE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<c:set var="acsAttributes" value="${DataDictionary.ProtocolAssignCmtSchedBean.attributes}" />
<c:set var="expeditedAttributes" value="${DataDictionary.ExpeditedReviewCheckListItem.attributes}" />
<c:set var="exemptAttributes" value="${DataDictionary.ExemptStudiesCheckListItem.attributes}" />
<%--<c:set var="reviewerAttributes" value="${DataDictionary.ProtocolReviewerBean.attributes}" /> --%>
<c:set var="action" value="modifySubmissionAction" />

<kra:permission value="${KualiForm.actionHelper.canModifyProtocolSubmission}">
Expand Down
2 changes: 1 addition & 1 deletion coeus-webapp/src/main/webapp/scripts/kuali_application.js
Original file line number Diff line number Diff line change
Expand Up @@ -1810,7 +1810,7 @@ function displayReviewers(protocolId) {
var protocolReviewTypeCode = dwr.util.getValue('actionHelper.protocolSubmitAction.protocolReviewTypeCode');

// we suppress the reviewer display if a committee is not selected, or if a schedule is not selected in case of a non-expedited review type
if ( ((scheduleId === "") && (protocolReviewTypeCode != '2')) || (committeeId === "") ) {
if ( ((scheduleId === "") && (protocolReviewTypeCode != '2' && protocolReviewTypeCode != '3')) || (committeeId === "") ) {
document.getElementById("reviewers").style.display = 'none';
}
else {
Expand Down

0 comments on commit aa41635

Please sign in to comment.