kitodo-production icon indicating copy to clipboard operation
kitodo-production copied to clipboard

Add option to create new structure element and link selected page in one step

Open solth opened this issue 4 years ago • 4 comments

In the structure tree of the metadata editor, the context menu for the last page of a structure element should contain another option to simultaneously create a new structure element following the one to which the selected page is assigned and link the selected page to that new structure element.

solth avatar Feb 05 '21 16:02 solth

Ikram, could you implement that in such a way that several divisions can be linked to one page, one after the other? Currently, this only works for two divisions. Sometimes that is needed:

Lexicon example

matthias-ronge avatar Feb 24 '21 08:02 matthias-ronge

several divisions can be linked to one page

That has been added in a separate pull request: #4319

solth avatar Jun 04 '21 14:06 solth

I think this is solved

matthias-ronge avatar Feb 27 '23 13:02 matthias-ronge

@matthias-ronge this feature is not yet implemented.

Currently when selecting the last page in a structural element, we just have the two options to either

  • create a new structural element, optionally with the selected page assigned to it or
  • link the selected page to the next structural element, if one exists (with the restriction being that pages can only be linked to multiple subsequent structural elements on the same hierarchical level - see #5469 and #5457 for details)

The feature described in this issue is not yet implemented and can be seen as some kind of combination of the two existing options: when selecting the last page of an existing structural element, the option should

  1. create a new structural element behind the one to which the selected page is assigned, on the same hiearachical level and then
  2. link the "old" structural element to the new element via the selected page

Perhaps it is best described visually:

Monograph 
| - Chapter 1
    | - Page 1
    | - Page 1
    | - Page 3 (selected) 

When the user then selects the new context menu option in the menu, the following structure would look like this:

Monograph 
| - Chapter 1
    | - Page 1
    | - Page 1
    | - Page 3
| - Chapter 2
    | - Page 3 (link)

solth avatar Feb 27 '23 18:02 solth