-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(spa): fix crossref demo in the Explorer (#220)
- Loading branch information
Showing
3 changed files
with
68 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,12 +65,11 @@ | |
key += 1; | ||
showContent = true; | ||
// // Once we've fixed the crossref client, we can uncomment this | ||
// await configureForDoiString( | ||
// doi, | ||
// handleData, | ||
// handleError, | ||
// ); | ||
await configureForDoiString( | ||
doi, | ||
handleData, | ||
handleError, | ||
); | ||
} | ||
function displayWidgetWithDocmapLiteral() { | ||
|
@@ -90,7 +89,7 @@ | |
source: { | ||
preset: 'crossref-api', | ||
client: CreateCrossrefClient({ | ||
politeMailto: '[email protected]', | ||
bePolite: false | ||
}), | ||
}, | ||
publisher: { | ||
|
@@ -132,13 +131,12 @@ | |
show: true, // Always show the widget | ||
props: { doi: requestedDoi, docmap }, | ||
}, | ||
// // Once we've fixed the crossref client, we can uncomment this | ||
// { | ||
// name: 'Crossref Demo', | ||
// component: CrossrefDemo, | ||
// show: !providingPlaintextDocmap, // Only show the crossref demo when we're not providing a docmap via plaintext | ||
// props: { json }, | ||
// }, | ||
{ | ||
name: 'Crossref Demo', | ||
component: CrossrefDemo, | ||
show: !providingPlaintextDocmap, // Only show the crossref demo when we're not providing a docmap via plaintext | ||
props: { json }, | ||
}, | ||
]; | ||
$: if (typeof requestedDoi !== 'undefined' && requestedDoi) { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.