V2 Object Linking
User Basket
- We decided not to implement user baskets. There are private dossiers anyway, which can be created, deleted as needed.
1. Implement basket's that are associated with users
1. Baskets are private to the user they belong to
1. Baskets can contain the same kinds of objects that a dossier can contain
1. Baskets are implemented hidden Dossiers
Link Types
Links will have a direction
Links have a this end and an other end
- Suggest yes
Link types are not predefined in the system's configuration
Type type of objects being linked is defined in the enumerated values left and right of the ObjectLink model
- The ordering of the link blocks in the detail screen is defined (by object type)
- An object link will have a non-required simple text field as description
Link Display in Link Blocks
- Links are displayed in a block with two separate sub-blocks according to the directions
One block for the this end (currently displayed object is the left object of the link) with title References
One block for the other end (currently displayed object is the rigth object of the link) with title Referenced by
- The sub-blocks by directions contain separate blocks for Document-, Revision-, Task-, ans User-links.
- This sub-blocks appear only if there is at least one reference.
- The references block appears in each Document/Revision blocks on revision detail.
There is a delete and edit button
Link Creation
Links are made with a new link block, which appears near the end of the sub-block References/References of the the detail screen
- Linking objects is performed on the current object linking items from dossiers
The block is like the Add Revisions from Dossier block on Transmittal/New
- 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 as many create link block as many revision is displayed + 1 for the document
- When the block is opened:
- When you select a dossier
- A list of the dossier 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
- When you select a dossier
- There is a simple note which will be added to all newly created link.
