Skip to content

Commit

Permalink
SAK-50917 Peer Review-Rubrics: Instructor does not see the peer revie…
Browse files Browse the repository at this point in the history
…w rubric when grading
  • Loading branch information
adrianfish authored and st-manu committed Feb 6, 2025
1 parent 6fcdc9f commit ec1fbf2
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,12 @@
<div class="textPanel borderPanel">$formattedText.escapeHtmlFormattedText($review.getComment())</div>
#end
<sakai-rubric-student
tool-id="sakai.assignment.grades"
site-id="$!assignment.Context"
entity-id="$assignment.Id"
tool-id="sakai.assignment.grades"
instructor
is-peer-or-self
evaluated-item-id="$review.id.assessorUserId"
instructor="true"
is-peer-or-self="true"
#if ($!assignment.isGroup)
evaluated-item-owner-id="$ownerGroupId"
#else
Expand All @@ -403,8 +404,8 @@
site-id="$!assignment.Context"
entity-id="$assignment.Id"
tool-id="sakai.assignment.grades"
instructor="true"
is-peer-or-self="true"
instructor
is-peer-or-self
#if ($!assignment.isGroup)
evaluated-item-id="$ownerGroupId"
evaluated-item-owner-id="$ownerGroupId"
Expand Down
3 changes: 3 additions & 0 deletions webcomponents/bundle/src/main/bundle/grader_ca.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
done=Fet
no_submission=Sense enviaments
no_submission_for=Sense lliuraments de
peer_reviews=Revisi\u00f3 per part dels companys
reviewer_comments=Comentaris del revisor
reviewer_attachments=Adjunts del revisor
grading_rubric_tooltip=Qualifica el lliurament usant una r\u00fabrica
rubric=R\u00fabrica
autoevaluation=Autoavaluaci\u00f3:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,32 +184,49 @@ export const graderRenderingMixin = Base => class extends Base {
` : nothing }
`}
${this.gradable.allowPeerAssessment && this._submission.peerReviews?.length > 0 ? html`
<div class="mt-4">
<div class="mt-5">
<h3 class="mb-3">${this._i18n.peer_reviews}</h3>
${this._submission.peerReviews.map(pr => html`
<div class="card mb-2">
<div class="card-header fw-bold">${pr.assessorDisplayName}</div>
<div class="card-body">
<div class="card-text">
<div>
<span class="fw-bold me-2">${this._i18n.grade}</span>
<span>${pr.scoreDisplay}</span>
<div class="accordion" id="peer-reviews">
${this._submission.peerReviews.map(pr => html`
<div class="accordion-item">
<h2 class="accordion-header" id="peer-heading-${pr.assessorUserId}">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#peer-collapse-${pr.assessorUserId}" aria-expanded="true" aria-controls="peer-collapse-${pr.assessorUserId}">
${pr.assessorDisplayName}
</button>
</h2>
<div id="peer-collapse-${pr.assessorUserId}" class="accordion-collapse collapse" aria-labelledby="peer-heading-${pr.assessorUserId}" data-bs-parent="#peer-reviews">
<div class="accordion-body">
${this.hasAssociatedRubric === "true" ? html`
<sakai-rubric-student
site-id="${portal.siteId}"
tool-id="${this.toolId}"
entity-id="${this.entityId}"
instructor
is-peer-or-self
evaluated-item-id="${pr.assessorUserId}"
evaluated-item-owner-id="${this._submission.groupId || this._submission.firstSubmitterId}">
</sakai-rubric-student>
<hr class="itemSeparator">
` : nothing}
<div class="mt-2 mb-3">
<span class="fw-bold me-2">${this._i18n.grade}</span>
<span>${pr.scoreDisplay}</span>
</div>
<div class="mt-2 mb-2 fw-bold">${this._i18n.reviewer_comments}</div>
<div>${unsafeHTML(pr.comment)}</div>
${pr.attachmentUrlList?.length > 0 ? html`
<div class="fw-bold mb-2">${this._i18n.reviewer_attachments}</div>
${pr.attachmentUrlList.map((url, i) => html`
<div class="feedback-attachment">
<a href="${url}" title="${this._i18n.feedback_attachment_tooltip}" target="_blank">${this._i18n.attachment} ${i + 1}</a>
</div>
`)}
` : nothing}
</div>
<div class="mt-2 mb-2 fw-bold">${this._i18n.reviewer_comments}</div>
<div>${unsafeHTML(pr.comment)}</div>
${pr.attachmentUrlList && pr.attachmentUrlList.length > 0 ? html`
<div class="fw-bold mb-2">${this._i18n.reviewer_attachments}</div>
${pr.attachmentUrlList.map((url, i) => html`
<div class="feedback-attachment">
<a href="${url}" title="${this._i18n.feedback_attachment_tooltip}" target="_blank">${this._i18n.attachment} ${i + 1}</a>
</div>
`)}
` : nothing}
</div>
</div>
</div>
`)}
`)}
</div>
</div>
` : nothing }
` : nothing }
Expand Down Expand Up @@ -493,8 +510,8 @@ export const graderRenderingMixin = Base => class extends Base {
site-id="${portal.siteId}"
tool-id="${this.toolId}"
entity-id="${this.entityId}"
instructor="true"
is-peer-or-self="true"
instructor
is-peer-or-self
evaluated-item-id="${this._submission.groupId || this._submission.firstSubmitterId}"
evaluated-item-owner-id="${this._submission.groupId || this._submission.firstSubmitterId}">
</sakai-rubric-student>
Expand Down

0 comments on commit ec1fbf2

Please sign in to comment.