cmu-lib / dhweb_app

Application for editing, searching, and browsing historical DH conference abstracts
https://dh-abstracts.library.cmu.edu
MIT License
4 stars 1 forks source link

Abstracts may belong to parent Abstracts #339

Closed mdlincoln closed 4 years ago

mdlincoln commented 4 years ago

To represent multi-paper sessions or panels and their relationship to individual papers presented during, we will add a new optional parent_session field to the Work model that is a fk to itself.

When creating/editing an abstract, the optional parent_session field should be an autocomplete field that searches for abstracts restricted to the same conference and which have the work type "panel / multipaper session / roundtable"

mdlincoln commented 4 years ago

on how to dynamically filter: https://django-autocomplete-light.readthedocs.io/en/master/tutorial.html#filtering-results-based-on-the-value-of-other-fields-in-the-form

mdlincoln commented 4 years ago
mdlincoln commented 4 years ago
scottbot commented 4 years ago

I'm going to make a new work type called "multipaper session" that is different from "panel / roundtable," to help avoid confusion going forward. So we don't have to edit everything, can you make it so both panel and multipaper sessions allow children?

mdlincoln commented 4 years ago

yes, after the update, you will be able to go to Edit -> Abstract Types, click on a specific type, and check the box "Is parent" on whichever types you choose, which will enable them to have children assigned

mdlincoln commented 4 years ago

Should be able to push a little later today for you to try out before we issue further instructions to students

scottbot commented 4 years ago

Perfect, thanks. I dropped a note letting them know it was coming, as you saw, but I'll give it a spin before ask them to deal with it.

mdlincoln commented 4 years ago

Live now.