-
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.
Merge pull request #18 from GetDKAN/composer-restore
Refactor dependencies
- Loading branch information
Showing
762 changed files
with
1,417 additions
and
101,037 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
# About this module | ||
# DKAN Science Metadata | ||
|
||
This module adds Science Metadata related paragraph bundles to the DKAN dataset content type, and Dkan Sci Search index logic. | ||
|
||
## Metadata Paragraph Bundles | ||
- Science Author: Includes Author ID, Author ID Type (ORCID, Google Scholar, ResearcherID, Scopus Author ID, USDA), Author Name, and Is Organization fields. Validates ORCID IDs and retrieve biography information to populate name field. | ||
More documentation coming soon... | ||
|
||
## Submodules | ||
### DKAN Sci search (modules/dkan_sci_search) | ||
- Provides solr index that allows for file attachment indexing. At present, the metadata source content type is the only node type | ||
having files indexed. These attachments are associated with dataset content nodes via entityreferences. | ||
|
||
### DKAN Sci Author (modules/dkan_sci_author) | ||
|
||
- Provides a child paragraph bundle for adding authors. Includes Author ID, Author ID Type (ORCID, Google Scholar, ResearcherID, Scopus Author ID, USDA), Author Name, and Is Organization fields. Validates ORCID IDs and retrieve biography information to populate name field. ORCID IDs | ||
|
||
### DKAN Sci Citation (modules/dkan_sci_citation) | ||
|
||
- Support for DOI-based citations. Adds a citation bundle that allows adding via either a free text field or a DOI. If DOI is used, the full citation is retrieved from CrossRef and displayed properly on the dataset page. See module README for details. | ||
|
||
This module is the result of a joint partnership between [CivicActions](https://civicactions.com) and the [US Department of Agriculture](https://usda.gov), as part of the development of the [Ag Data Commons](https://data.nal.usda.gov/). |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
includes/vendor |
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 |
---|---|---|
@@ -1,3 +1,25 @@ | ||
# DKAN Science Citations | ||
|
||
Add citations via DOI, Bibtex or free text. | ||
|
||
## Installation | ||
|
||
You must install some dependencies with [Composer](https://getcomposer.org/) for this module to work. Please run | ||
|
||
``` | ||
composer install | ||
``` | ||
|
||
from the dkan_sci_citation root folder (probably _sites/all/modules/contrib/dkan_sci_metadata/modules/dkan_sci_citation_ in your site docroot) before using. | ||
|
||
## Adding additional styles | ||
- Add item name as indicated by `.csl` file to form options array in `dkan_sci_citation_form()` | ||
- Add `.csl` file to `./includes/vendor/citation-style-language/styles-distribution` | ||
|
||
This module supports citation rendering in many common styles. We are working on a better way to change the list of available styles, but currently we recommend: | ||
|
||
- Create a fork of https://github.com/citation-style-language/styles-distribution.git | ||
- Remove all csl files except the ones you want to use | ||
- Update this module's composer.json to pull the styles-distribution library from your fork. | ||
|
||
## Attribution | ||
|
||
The citation styling tools used in this module come from [CitationStyles.org](http://citationstyles.org/). |
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,39 @@ | ||
{ | ||
"require": { | ||
"audiolabs/bibtexparser": "dev-master", | ||
"citation-style-language/locales": "1.*", | ||
"citation-style-language/styles-distribution": "1.*", | ||
"renanbr/crossref-client": "dev-master", | ||
"seboettg/citeproc-php": "2.1.1", | ||
"topfloor/composer-cleanup-vcs-dirs": "^1.0" | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "package", | ||
"package": { | ||
"version": "1.0.0", | ||
"name": "citation-style-language/locales", | ||
"source": { | ||
"url": "https://github.com/citation-style-language/locales.git", | ||
"type": "git", | ||
"reference": "master" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "package", | ||
"package": { | ||
"version": "1.0.0", | ||
"name": "citation-style-language/styles-distribution", | ||
"source": { | ||
"url": "https://github.com/getdkan/styles-distribution.git", | ||
"type": "git", | ||
"reference": "dkan-sci" | ||
} | ||
} | ||
} | ||
], | ||
"config": { | ||
"vendor-dir": "includes/vendor" | ||
} | ||
} |
Oops, something went wrong.