performant-software / Annotation-Studio

An online annotation platform for teaching and learning in the humanities.
http://www.annotationstudio.org
GNU General Public License v2.0
5 stars 1 forks source link

As an anthology owner, I want to select multiple documents at once for addition #414

Closed jamiefolsom closed 1 year ago

jamiefolsom commented 2 years ago

The ability to batch select titles when you create an anthology; now, you have to pick one title at a time.

camdendotlol commented 2 years ago

It looks like anthology_add already supports adding multiple documents: https://github.com/performant-software/Annotation-Studio/blob/master/app/controllers/documents_controller.rb#L14

So, assuming that code works as expected, this change should only require updates to the view.

This options field, located in app/views/anthologies/_searched_documents.erb, should get a new button labeled "Select". Screen Shot 2022-06-23 at 10 48 58 AM

Then there should be a button below the table (or maybe above?) labeled "Add Selected". This would call anthology_add_path and pass all the selected documents' IDs.

Estimate: 6 hours

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.