NYPL-Simplified / circulation

Circulation manager for Library Simplified
Other
19 stars 19 forks source link

Don't import an OPDS for Distributors feed as a normal OPDS feed #645

Open leonardr opened 6 years ago

leonardr commented 6 years ago

If a circ manager use tries to import an OPDS For Distributors feed as a normal OPDS feed, the metadata will be imported but none of the books will actually be available. It should be possible for the core OPDSImporter to detect an OPDS For Distrubutors feed and refuse to do the import, providing a useful error message.

leonardr commented 6 years ago

After conversation with Amy I'd revise this issue like so: every license import mechanism should have a self-test, and no import should happen unless the self-test passes. So this "is it the right kind of feed" thing would be part of the self-test for an OPDS Import type collection.