Skip to content

Commit

Permalink
Fix for custom submission modal
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonKowalski committed Aug 2, 2023
1 parent 5a2ba47 commit c122b17
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/app/shared/submission-modal/submission-modal.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ <h4>Please sign in with your Cornell NetID to continue.</h4>
<ds-log-in authMethod="shibboleth"></ds-log-in>
</div>

<div class="clearfix" *ngIf="(isAuthenticated | async)">
<div class="clearfix" *ngIf="!(isAuthenticated | async)">
<h4>Presubmission Checklist</h4>
<ol class="pl-4">
<li>If you are new to eCommons, we suggest you review our <a
href="https://guides.library.cornell.edu/ecommons/help">help pages for submitters</a>.
</li>

<li>Identify the collection to which you wish to submit. Request permission to submit to an <a
href="/community-list">existing collection</a> if the one you want does not appear in
the dropdown menu below by <a href="/page/contact">contacting the eCommons
Administrators</a>.
</li>

<li>If you are depositing data, we suggest you contact the <a
href="https://data.research.cornell.edu/contact">Research Data Management Service
Group</a> for assistance and consult their information on <a
Expand All @@ -37,12 +43,6 @@ <h4>Presubmission Checklist</h4>
a requirement</a>.
</li>

<li>Identify the collection to which you wish to submit. Request permission to submit to an <a
href="/community.html">existing collection</a> if the one you want does not appear in
the dropdown menu below by <a href="/page/contact">contacting the ecommons
administrators</a>.
</li>

<li>Complete the <a href="https://cornell.qualtrics.com/jfe/form/SV_dcZgmcBJ5D4Qq3z">eCommons
New Collection Request Form</a>, if a new collection is needed.
</li>
Expand All @@ -54,7 +54,7 @@ <h4>Presubmission Checklist</h4>
</li>

<li>Have your <a href="https://guides.library.cornell.edu/ecommons/metadata">metadata</a> and <a
href="http://guides.library.cornell.edu/ecommons/contentpolicy">files</a> ready.
href="https://guides.library.cornell.edu/ecommons/contentpolicy">files</a> ready.
</li>

</ol>
Expand All @@ -76,7 +76,7 @@ <h4>Please select the collection you wish to submit an item to.</h4>
<div class="alert alert-info" role="alert">
<h4 class="alert-heading">No collections found? Read this!</h4>
<p>If you don't see the collection you want to submit to, please <a
href="https://ecommons.cornell.edu/page/contact" target="_blank">contact the eCommons
href="/info/feedback" target="_blank">contact the eCommons
Administrators</a> to request access.</p>
<hr>
<p class="mb-0">Does the collection you are looking for not exist? Request a new collection by
Expand Down
8 changes: 8 additions & 0 deletions src/app/shared/submission-modal/submission-modal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ export class SubmissionModalComponent implements OnInit {
}

selectObject(dso: DSpaceObject) {
document.getElementById('submissionModal').style.removeProperty('display');
document.querySelector('body').style.removeProperty('modal-open');

let mdbackdrop = document.querySelector('.modal-backdrop');
if (mdbackdrop){
mdbackdrop.classList.remove('modal-backdrop', 'show');
}

this.navigate(dso);
}

Expand Down

0 comments on commit c122b17

Please sign in to comment.