https://github.com/openlibhums/loc_transporter
A tool for depositing articles with the Library of Congress.
https://github.com/openlibhums/loc_transporter
Last synced: 4 months ago
JSON representation
A tool for depositing articles with the Library of Congress.
- Host: GitHub
- URL: https://github.com/openlibhums/loc_transporter
- Owner: openlibhums
- License: agpl-3.0
- Created: 2022-08-25T17:09:26.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-21T13:58:13.000Z (over 3 years ago)
- Last Synced: 2024-08-20T13:12:47.162Z (almost 2 years ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Library of Congress Deposit Plugin
This deposit plugin is for sending deliveries of eserials to the Library of Congress in response to a Notice for Mandatory Deposit from the U.S. Copyright Office.
## What does it deposit?
For the specified journal and issues the plugin can deposit a zip archive containing the articles of the given issues with:
- PDF
- XML (JATS 1.2, this will send the Galley if there is one or will generate a stub otherwise)
- Any images references in the XML file
## Setup
In order to use this plugin you will need to obtain FTP credentials and a ECDSA key for the server being deposited on.
```
LOC_FTP_SERVER = 'a.server.com'
LOC_FTP_USERNAME = 'ausername'
LOC_FTP_PASSWORD = 'apassword',
LOC_FTP_SERVER_KEY = 'averylongkeywillgohere'
```
Add the above variables to your settings.py file.
## Usage
The deposit process can be invoked on two ways:
1. Via the GUI: Users with Editor/Staff status can select a journal and the issues within that journal to deposit.
2. Via the CLI:
```
python3 manage.py send_to_loc journal_code issue_ids --initial (optional)
```
Here is an example:
```
python3 manage.py send_to_loc olh 123 456 789
```
This will deposit issues 123, 456 and 789
You can also use `--initial` to mark this tranfer as an initial deposit.