openlibrary
openlibrary copied to clipboard
Bulk Search and List Creator
Closes #7653
With this PR, the long-requested Bulk Search feature is finally functional. It enables users to extract books and titles from sections of text, and search the Open LIbrary database for each pair, at the click of a button. ChatGPT-based extraction is functional, but requires the user to supply their own key for that purpose.
Technical
The majority of the changes involve the addition of a new Vue component. Rather than conveying information between individual components by event watchers, information is instead conveyed through a state defined in /openlibrary/components/BulkSearch/utils/classes.js
.
Currently, the 'create a new list' function is not supported, but I intend to resolve that within the next few days.
Unfortunately, there were some limitations with how the table displays. Horizontal scrolling will likely be needed to navigate it, in cases where there are a large amount of works retrieved by a given search. This will likely be addressed in a future pull request.
Testing
Simply use the component, which is located at localhost:8080/bulk/search
.
Screenshot
Stakeholders
@cdrini