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
6 stars 1 forks source link

As an anthology owner, I want to create subfolders within an anthology #416

Closed jamiefolsom closed 2 years ago

jamiefolsom commented 2 years ago

Add the ability to create subfolders within your anthology. This would allow users to organize their reading lists better. Now, we rely on sorting alphabetically.

Question for Dino: How would he want it to affect URLs? We could either have this be a visual organizing mechanism for the anthology document list only, and not affect URLs, or we could have it create new URLs for documents that are in folders, like:

Document in Anthology but not in folder:

/anthologies/:anthology_slug/:document_slug

Document in Anthology and in folder:

/anthologies/:anthology_slug/:folder_name/:document_slug

camdendotlol commented 2 years ago

This would need to start with some work on the database.

There would be a new model called DocumentFolder, along with a join table connecting DocumentFolder, Document. Anthology has many DocumentFolders, and Document and DocumentFolder have a many-to-many relationship.

This modeling is fairly complex and will take some time, but once it is implemented, the relevant views shouldn't be too hard.

Estimate: 24 hours

stale[bot] commented 2 years 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.