Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
noatgnu committed Nov 25, 2024
1 parent da0a2c1 commit 64678a4
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 43 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
<body>
<app-root></app-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
<link rel="modulepreload" href="chunk-6DCVN2GH.js"><script src="polyfills-LQM4VRV3.js" type="module"></script><script src="scripts-TSGU23AO.js" defer></script><script src="main-MBGDB4ER.js" type="module"></script></body>
<link rel="modulepreload" href="chunk-6DCVN2GH.js"><script src="polyfills-LQM4VRV3.js" type="module"></script><script src="scripts-TSGU23AO.js" defer></script><script src="main-5WY3QW4G.js" type="module"></script></body>
</html>
68 changes: 34 additions & 34 deletions docs/main-MBGDB4ER.js → docs/main-5WY3QW4G.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1732559958054,
"timestamp": 1732560584127,
"index": "/index.html",
"assetGroups": [
{
Expand All @@ -15,7 +15,7 @@
"/chunk-KT2VBPDM.js",
"/favicon.ico",
"/index.html",
"/main-MBGDB4ER.js",
"/main-5WY3QW4G.js",
"/manifest.webmanifest",
"/polyfills-LQM4VRV3.js",
"/scripts-TSGU23AO.js",
Expand Down Expand Up @@ -123,8 +123,8 @@
"/chunk-6DCVN2GH.js": "066732cf764f113fdd1354b5d694386dde1aa957",
"/chunk-KT2VBPDM.js": "513f86e4667b74dc3cbfe0b7141fe6921312b216",
"/favicon.ico": "22f6a4a3bcaafafb0254e0f2fa4ceb89e505e8b2",
"/index.html": "3f07795fb0277c60d312d3d597ae896433d1f960",
"/main-MBGDB4ER.js": "12bb954eba9a0f1b1670d88839cbb1a62a43cdda",
"/index.html": "61727f110a78c96609faca2c4214b2144dcd079a",
"/main-5WY3QW4G.js": "1fea4120c9745b8a8ad5e6dae029d53286147f76",
"/manifest.webmanifest": "0f6d8f1c753e9f503daf4cd303ebecc6b0b0a04b",
"/polyfills-LQM4VRV3.js": "86507a9fae516c507974df2133f98fd48b561462",
"/scripts-TSGU23AO.js": "e172440274ca0257fbf1b7e414f5bd41b03b202f",
Expand Down
24 changes: 21 additions & 3 deletions src/app/components/datacite/datacite.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h5 class="modal-title">DOI Registration</h5>
} @else {
You are not the owner of this Curtain Session. You cannot register a DOI for it.
}
Your account has {{dataCiteMaxQuota-dataCiteQuota}} new DOI(s) registration remaining today. (refresh every 24 hours)
Your account has {{dataCiteQuota}} new DOI(s) registration remaining today. (refresh every 24 hours)
<form [formGroup]="dataCiteForm" class="container d-flex flex-column gap-2 justify-content-center">
<h5>
<b>
Expand Down Expand Up @@ -103,6 +103,12 @@ <h5>
(selectItem)="onAffiliationSelect($event, 'creators', index, affIndex)">
<small class="text-muted">The name of the institution with which the creator is affiliated. Autocomplete information is retrieve from ROR. Please choose the most appropriate option unless your affiliation could not be found.</small>
</div>
<div>
<label>
Affiliation name
</label>
<input class="form-control" formControlName="name">
</div>
<div>
<label>
Affiliation Identifier
Expand Down Expand Up @@ -334,14 +340,20 @@ <h5>
<div class="d-flex gap-2">
<div>
<label>
Affiliation {{affIndex+1}}
Affiliation {{affIndex+1}} Search
</label>
<input type="search" class="form-control" [ngbTypeahead]="searchAffiliations"
[resultFormatter]="resultFormatter" [inputFormatter]="inputFormatter"
[resultTemplate]="rt"
(selectItem)="onAffiliationSelect($event, 'contributors', index, affIndex)">
<small class="text-muted">The name of the institution with which the contributor is affiliated. Autocomplete information is retrieve from ROR. Please choose the most appropriate option unless your affiliation could not be found.</small>
</div>
<div>
<label>
Affiliation name
</label>
<input class="form-control" formControlName="name">
</div>
<div>
<label>
Affiliation Identifier
Expand Down Expand Up @@ -556,14 +568,20 @@ <h5>
<div class="d-flex flex-column gap-2">
<div>
<label>
Funder Name
Funder Search
</label>
<input type="search" class="form-control" [ngbTypeahead]="searchFunder"
[resultFormatter]="resultFormatter" [inputFormatter]="inputFormatter"
[resultTemplate]="rt"
(selectItem)="onFunderSelect($event, index)">
<small class="text-muted">The name of the entity that provided the funding. Autocomplete information is retrieved from CrossRef. If your organization could not be found, please manually input the data.</small>
</div>
<div>
<label>
Funder Name
</label>
<input class="form-control" formControlName="funderName" required>
</div>
<div>
<label>
Funder Identifier
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/datacite/datacite.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class DataciteComponent {
this.accountsService.curtainAPI.getRandomDataCiteSuffix().then((value) => {
this.dataCiteForm.controls.suffix.setValue("curtain."+value.data.suffix)
// update permission token
this.accountsService.curtainAPI.getDataCiteTimeLimitedPermissionToken("curtain."+value.data.suffix).then((value) => {
this.accountsService.curtainAPI.getDataCiteTimeLimitedPermissionToken(value.data.suffix).then((value) => {
this.permissionToken = value.data.token
this.permissionTokenLastUpdated = new Date()
})
Expand Down

0 comments on commit 64678a4

Please sign in to comment.