V2 Object Linking
User Basket
- Implement basket's that are associated with users
- Baskets are private to the user they belong to
- Baskets can contain the same kinds of objects that a dossier can contain
- Baskets are implemented hidden Dossiers
Link Types
Issue: Can links have a direction?
- Particilarly when two items of the same type are linked
Links have a this end and an other end
- Suggest yes
- Link types are predefined in the system's configuration
- Type type of objects being linked is defined
- The ordering of the link blocks in the detail screen is defined (by object type)
- We will pre-configure systems with common link types
For later: Administratiors can creat new link types
Link Display in Link Blocks
- Links are displayed in two separate blocks according for each link type
- The block title dontains the link description
One block for the this end
One block for the other end
- There is an enclosing block that encloses all the separate blocks
Link Creation
- Links are made with a new link block, which appears near the end of the detail screen
- Linking objects is performed on the current object linking itroms from baskets or dossiers
The block is like the Add Items to Dossier block
- When a link is created, it is created from the 'this' side of the link
The linked items are the other end
In order to create an A->B link you start from a create A->B block
In order to create an B->A link you start from a create B->A block
- There may be a single create link block, which allows you to select the link type/direction
- When the block is opened:
- You can select, with a radio button, whether you are linking items from a dossier or the basket
- When you select a dossier or the basket:
- A list of the dossier/basket contents's is displayed (possibly filtered by the item type)
- Each item has a select box
- You can select individual items
Or (de-)select all items with JavaScript augmented buttons
- There is no possibility to add a note to a link
