@myrmidon/cadmus-refs-asserted-ids 10.0.10 → 10.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -318,14 +318,19 @@ When the ID is **external**, the only properties set for the target model are `g
318
318
 
319
319
  There are different **options** to customize the lookup behavior:
320
320
 
321
- - lookup pin without any filters, except for the always present part type ID and pin name (_by type_); or lookup pin with optional filters for the item and any of its parts (_by item_; this is the default).
322
- - the part type ID and pin name filter (i.e. the _index lookup definitions_) can be set from many sources:
323
- 1. directly from the consumer code by setting `lookupDefinitions`;
324
- 2. from injection, when (1) is not used;
325
- 3. from thesaurus `model-types`, when (2) is empty.
326
- - set `pinByTypeMode` to true, to let the editor use by-type mode instead of by-item;
327
- - set `canSwitchMode` to true, to allow users switch between by-type and by-item modes;
328
- - set `canEditTarget` to true, to allow users edit the link target GID and label also for internal pins, where they are automatically provided by pin lookup.
321
+ - lookup pins by part type or by item instance:
322
+ - _by part type_: you directly lookup by pin name, in the context of a specific part type. The part type is selected from a dropdown list, which draws its data from the configured `IndexLookupDefinitions`.
323
+ - _by item instance_: you lookup pins filtered by a specific item (via its assigned EID in its metadata part), and optionally by any of its parts. This is the default mode, as in most cases users have a top-bottom approach and think first of the item they want to target, and then, possibly, to a specific portion of its data (unless they are just happy to target the item as a whole).
324
+
325
+ >The part type ID and pin name filter (i.e. the _index lookup definitions_) can be set from many sources:
326
+
327
+ 1. directly from the consumer code by setting `lookupDefinitions`;
328
+ 2. from injection, when (1) is not used;
329
+ 3. from thesaurus `model-types`, when (2) is empty.
330
+
331
+ - set `pinByTypeMode` to true to let the editor use by-type mode instead of by-item;
332
+ - set `canSwitchMode` to true to allow users switch between by-type and by-item modes;
333
+ - set `canEditTarget` to true to allow users edit the link target GID and label also for internal pins, where they are automatically provided by pin lookup.
329
334
 
330
335
  These options can be variously combined to force users to use a specific behavior only; for instance, if you just want by-type lookup and automatic GID/label, set `pinByTypeMode` to true and `canSwitchMode` and `canEditTarget` to false.
331
336