Skip to content

Commit

Permalink
README: document repository in more depth
Browse files Browse the repository at this point in the history
Merges #26
  • Loading branch information
Jacob Levernier authored and dhimmel committed Mar 14, 2018
1 parent 6771af0 commit 310d718
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
34 changes: 28 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,33 @@ This repository is cataloging University Library access to scholarly literature.
Scholarly articles are identified using their DOIs.
The impetus for this project was [this discussion](https://github.com/greenelab/scihub-manuscript/issues/21 "Potential followup: comparison to authorized access") on the Sci-Hub Coverage Study.

## Environment
The code in this repository facilitates fetching indicators of full-text availability for a list of DOIs from an OpenURL resolver. In this way, it enables large-scale analysis of bibliographic holdings / availability.

## Using the Code

**The code files in this repository assume that your working directory is set to the top-level directory of this repository.**

### Contents of this Repository, and the Order of Their Use

- `LICENSE-*.md`: License text to accompany the [License](#License) section of this Readme below.
- `environment.yml`: Conda environment file (see [Environment](#environment) below).
- `.gitattributes`: File with information for tracking files using [Git Large File Storage (LFS)](https://git-lfs.github.com/).
- `library_management_system_downloader` contains the following scripts, to be used in the following order:
1. `downloader_configuration_file_TEMPLATE.py` should be copied to `downloader_configuration_file.py` and edited for your own institution's OpenURL resolver (These scripts were specifically tested using the OpenURL resolver that comes with Ex Libris' Alma management software).
- Within `downloader_configuration_file.py`, the variable `api_base_url` will be based on the OpenURL resolver / vendor that your institution uses, and thus will be different from institution to institution. To find out what that base URL should be, it may be necessary to ask your local library technology team for help and/or documentation.
- It is additionally the case that different OpenURL resolvers may return slightly different formats of data. Thus, it may be necessary to modify the function `fulltext_indication` in the file `evaluate_api_response_for_fulltext_indication.py` to look for an XML field that the data from your institution's OpenURL resolver contains.
1. `run_api_download_and_parse_results.py`
1. `copy_and_compress_database_and_extract_tsv.py`
- `evaluate_library_access_from_output_tsv` contains the following scripts, to be used in the following order:
1. `create_stratefied_sample_of_dois.R`
1. `join_doi-200_dates_to_doi-500.R`
1. \[Run `facilitate_going_through_dois_manually.R` to help fill in the `.tsv` files created by the scripts above\]
1. `penntext-accuracy-200.ipynb`
1. `penntext-accuracy-500.ipynb`

- `data`: \[This is where datasets will be saved by the above scripts.\]

### Environment

This repository uses [conda](http://conda.pydata.org/docs/) to manage its environment as specified in [`environment.yml`](environment.yml).
Install the environment with:
Expand All @@ -18,14 +44,10 @@ conda env create --file=environment.yml
Then use `source activate library-access` and `source deactivate` to activate or deactivate the environment.
On windows, use `activate library-access` and `deactivate` instead.

## Using the Code

The code files in this repository assume that your working directory is set to the top-level directory of this repository.

## License

The files in this repository are released under the CC0 1.0 public domain dedication ([`LICENSE-CC0.md`](LICENSE-CC0.md)), excepting those that match the glob patterns listed below.
Files matching the following glob patters are instead released under a BSD 3-Claue license ([`LICENSE-BSD-3-Clause.md`](LICENSE-BSD-3-Clause.md)):
Files matching the following glob patters are instead released under a BSD 3-Clause license ([`LICENSE-BSD-3-Clause.md`](LICENSE-BSD-3-Clause.md)):

- `*.py`
- `*.md`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

rerun_dois_that_are_already_in_database = False

oadoi_values_to_limit_search_to = ['closed'] # This can be, e.g.,
oadoi_values_to_limit_search_to = ['closed', 'hybrid', 'green', 'gold', 'bronze'] # This can be, e.g.,
# "['closed', 'gold']", etc.

record_numbers_to_download = None # This can be, e.g., slice(1, 10, 1) to
Expand Down

0 comments on commit 310d718

Please sign in to comment.