UCL / frrant

2 stars 0 forks source link

Allow Anonymous Fragments to have apposita #441

Closed tcouch closed 4 months ago

tcouch commented 4 months ago

closes #374

In the Appositum Links section at the bottom of the Anonymous Fragment detail page, users can now choose to link another Anonymous Fragment. This will make the first AF an apposita of the AF they select.

These links are displayed in the Appositum Links section of the apposita, or in the Apposita section of the AF being linked to. An unlink button in the Appositum Links list allows these links to be deleted providing the apposita has a lock.

Also created unlink option for unlinked fragments' apposita as this wasn't previously possible.

tcouch commented 4 months ago

To do: handle converting links during unlinked->anonymous and anonymous->unlinked conversion

tcouch commented 4 months ago

Seems to work quite nicely. I wonder if we should just hide the Appositum Links section if there are none instead of displaying the heading and "None"

Yeah good point. We'd need to show it when in edit mode so users can access the buttons, but I'll hide it for the normal view.

tcouch commented 4 months ago

@acholyn I've made that change to the template as suggested. Will merge now.