Skip to content

Commit

Permalink
Merge branch 'release/v0.9.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ja573 committed Sep 3, 2024
2 parents 73ef3d8 + 01fecf5 commit c3c703a
Show file tree
Hide file tree
Showing 20 changed files with 3,446 additions and 44 deletions.
2 changes: 2 additions & 0 deletions .pep8speaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pycodestyle:
max-line-length: 120
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pip install -r requirements.txt

## CLI Usage

Available modes, depending on publisher input: `OBP` (Open Book Publishers), `punctum` (punctum books), `AM` (African Minds), `UWP` (University of Westminster Press), `WHP` (The White Horse Press)
Available modes, depending on publisher input: `OBP` (Open Book Publishers), `punctum` (punctum books), `AM` (African Minds), `UWP` (University of Westminster Press), `WHP` (The White Horse Press), `EDITUS` (Editus), `EDUEPB` (EDUEPB), `Leuven` (Leuven University Press), `LHarmattan` (L'Harmattan)

### Live Thoth API
```
Expand Down Expand Up @@ -49,3 +49,6 @@ docker run --rm \
--password ${password} \
--client-url http://127.0.0.1:8000
```

### Using the isbn_hyphenate library
Some loaders depend on the `isbn_hyphenate` python library to add hyphens to ISBNs. The library contains a list of valid ranges for data validation, but was last updated in 2015, and new ranges have been added since then. Some newer ISBNs will cause the Thoth function `sanitise_isbn()`, which depends on `isbn_hyphenate`, to raise an `IsbnUnableToHyphenateError` exception. In order to update the `isbn_hyphenate` prefix list, follow directions at (https://github.com/TorKlingberg/isbn_hyphenate).
2 changes: 0 additions & 2 deletions africanmindsloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ def get_work(self, row):
"""Returns a dictionary with all attributes of a 'work'
row: current row number
imprint_id: previously obtained ID of this work's imprint
"""
title = self.split_title(self.data.at[row, 'title'])
doi = self.sanitise_string(self.data.at[row, 'doi'])
Expand Down
Loading

0 comments on commit c3c703a

Please sign in to comment.