Published October 13, 2022
| Version 0.7.0
Software
Open
dibs – Release 0.7.0
- Creators
-
Hucka, Michael1
-
Doiel, Robert2
-
Keswick, Tommy1
- 1. California Institute of Technology Library
- 2. Caltech Library
Description
This release adds a couple of utility programs (including one for updating DIBS's stored item metadata with the latest values from the LSP), fixes some minor bugs, updates the versions of some dependencies to deal with Dependabot security udpates, and adds a little bit more documentation. There are minor changes to two template files; if you have an existing DIBS installation, a git pull should hopefully merge the changes without trouble. There are no changes to the database data object model.
What's new
- New utility,
update-item-data, to update the DIBS database items with current values from the corresponding LSP records. This is particularly useful for updating the item page URLs when FOLIO changes the permalink scheme. - New utility,
test-folio-token, for testing whether the FOLIO credentials are valid. This is meant to be used in a cron job for daily testing that the FOLIO API token being used by the DIBS server is still valid. - New README file in the
adminsubdirectory, to describe the various utility programs in that directory. - New file,
dev/requirements-dev.txt, to list Python requirements such aspytestneeded for development.
What's fixed
- Fixed issue #100: provide a way to bulk-update permalinks. This is now possible using the new
update-item-datautility program mentione above. This utility also partly solves issue #7. - Fixed issue #102: if a (library staff) user edited an item and changed the barcode when doing so, then the internal DIBS record could have become inconsistent with the LSP entry because DIBS only updated a limited number of fields during the edit operation. DIBS now compares the barcode and updates all internal object fields if the barcode is changed.
- Fixed a misleading error message when creating new entries, in which "Incomplete record in LSP" was printed even if the record was missing entirely.
- Fixed a bug in the item editing page, in which thumbnail images were not checked for being zero length files. This led to internal exceptions when the server attempted to read the file.
What's changed
- The object classes for LSP interfaces in
lsp.pyhave had some internal changes. The fieldsidandurlare nowitem_idanditem_page, respectively, to avoid confusion in calling code about the "id" and "url" in question. These names also match the corresponding field names in the database objects defined indata_models.py. In addition, the LSP interface classes now have anameproperty, which can be used to print more informative messages. A few lines inserver.pyhave had corresponding changes to account for the changes inlsp.py. - The template files
dibs/templates/edit.tplanddibs/templates/item.tplhave had small changes made, to check for zero-length thumbnail files. The changes are in commits 30a9eb9 and 16a63da, respectively. - Added a description to the DIBS documentation, in the section on item editing, to explain what can happen if the number of available copies of an item is decreased while all available digital copies are currently loaned out.
- Updated
requirements.txtfor many dependencies to bring them to the latest releases and deal with recent Dependabot security alerts. - Updated the contents of
.gitignoreto follow new best practices. - Added more unit tests. (Still isn't nearly enough, but it's more than before!)
Files
dibs_v0.7.0.zip
Other
Caltech Library's Digital Borrowing System
Additional details
- Alternative title (English)
- DIBS: An implementation of Controlled Digital Lending