-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a codemeta.json file and a bibtext citation.
The codemeta.json file is included in the HTML of the generated book, and the Bobtex entry is made available through a 'Copy Bibtex' button.
- Loading branch information
Showing
5 changed files
with
156 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<script type='application/ld+json'> | ||
{ | ||
"@context": [ | ||
"https://doi.org/10.5063/schema/codemeta-2.0", | ||
"http://schema.org" | ||
], | ||
"@type": "SoftwareSourceCode", | ||
"@id": "https://doi.org/10.5063/F11834T2", | ||
"name": "Ecological Metadata Language version 2.2.0", | ||
"url": "https://eml.ecoinformatics.org", | ||
"sameAs": "doi:10.5063/F11834T2", | ||
"version": "2.2.0", | ||
"license": "https://spdx.org/licenses/GPL-2.0-or-later.html", | ||
"identifier": { | ||
"@type": ["PropertyValue", "datacite:ResourceIdentifier"], | ||
"datacite:usesIdentifierScheme": { | ||
"@id": "datacite:doi" | ||
}, | ||
"propertyID": "DOI", | ||
"url": "https://doi.org/10.5063/F11834T2", | ||
"value": "10.5063/F11834T2" | ||
}, | ||
"programmingLanguage": { | ||
"@type": "ComputerLanguage", | ||
"name": "XML" | ||
}, | ||
"creator": [ | ||
{ | ||
"@id": "https://orcid.org/0000-0003-0077-4738", | ||
"@type": "Person", | ||
"name": "Matthew B. Jones", | ||
"givenName": "Matthew", | ||
"familyName": "Jones", | ||
"url": "https://orcid.org/0000-0003-0077-4738" | ||
}, | ||
{ | ||
"@id": "https://orcid.org/0000-0002-1693-8322", | ||
"@type": "Person", | ||
"name": "Margaret O’Brien", | ||
"givenName": "Margaret", | ||
"familyName": "O’Brien", | ||
"url": "https://orcid.org/0000-0002-1693-8322" | ||
}, | ||
{ | ||
"@id": "https://orcid.org/0000-0002-0381-3766", | ||
"@type": "Person", | ||
"name": "Bryce Mecum", | ||
"givenName": "Bryce", | ||
"familyName": "Mecum", | ||
"url": "https://orcid.org/0000-0002-0381-3766" | ||
}, | ||
{ | ||
"@id": "https://orcid.org/0000-0002-1642-628X", | ||
"@type": "Person", | ||
"name": "Carl Boettiger", | ||
"givenName": "Carl", | ||
"familyName": "Boettiger", | ||
"url": "https://orcid.org/0000-0002-1642-628X" | ||
}, | ||
{ | ||
"@id": "https://orcid.org/0000-0003-0632-7576", | ||
"@type": "Person", | ||
"name": "Mark Schildhauer", | ||
"givenName": "Mark", | ||
"familyName": "Schildhauer", | ||
"url": "https://orcid.org/0000-0003-0632-7576" | ||
}, | ||
{ | ||
"@id": "https://orcid.org/0000-0001-6955-0535", | ||
"@type": "Person", | ||
"name": "Mitchell", | ||
"givenName": "Mitchell Maier", | ||
"familyName": "Maier", | ||
"url": "https://orcid.org/0000-0001-6955-0535" | ||
}, | ||
{ | ||
"@id": "https://orcid.org/0000-0002-1940-4158", | ||
"@type": "Person", | ||
"name": "Timothy Whiteaker", | ||
"givenName": "Timothy", | ||
"familyName": "Whiteaker", | ||
"url": "https://orcid.org/0000-0002-1940-4158" | ||
}, | ||
{ | ||
"@id": "https://orcid.org/0000-0002-4465-452X", | ||
"@type": "Person", | ||
"name": "Stevan Earl", | ||
"givenName": "Stevan", | ||
"familyName": "Earl", | ||
"url": "https://orcid.org/0000-0002-4465-452X" | ||
}, | ||
{ | ||
"@id": "https://orcid.org/0000-0003-1264-1166", | ||
"@type": "Person", | ||
"name": "Steven Chong", | ||
"givenName": "Steven", | ||
"familyName": "Chong", | ||
"url": "https://orcid.org/0000-0003-1264-1166" | ||
} | ||
], | ||
"copyrightYear": "2019", | ||
"datePublished": "2019", | ||
"isAccessibleForFree": true, | ||
"keywords": ["metadata", "xml", "specification", "ecology", "environmental science", "earth science", "EML"], | ||
"codeRepository": "https://github.com/NCEAS/eml", | ||
"issueTracker": "https://github.com/NCEAS/eml/issues" | ||
} | ||
</script> |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script type="text/javascript"> | ||
document.body.addEventListener('click', copy); | ||
|
||
function copy(e) { | ||
// copy data to placeholder - Don't use .innerText, use .textContent | ||
placeholder.value = bibtex.textContent; | ||
if (placeholder.select) { | ||
placeholder.select(); | ||
try { | ||
// copy text | ||
document.execCommand('copy'); | ||
} catch (err) { | ||
alert('Use Ctrl/Cmd+C to copy'); | ||
} | ||
} | ||
} | ||
</script> |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#placeholder { | ||
position: absolute; | ||
opacity: 0; | ||
white-space: pre; | ||
} | ||
|
||
#bibtex { | ||
position: absolute; | ||
opacity: 0; | ||
white-space: pre; | ||
} | ||
|
||
#bibtex-button { | ||
color: red; | ||
} |