How to create references in a document
Connect selected text in a document to another entity or to a specific paragraph in the Uwazi viewer.
A reference links a passage in your document to another entity. The interface calls it a relationship. You can link to a whole entity, or to an exact paragraph in any document.
Prerequisites
- The editor or admin role, or permission to edit this entity
- An entity with at least one document
- At least one relationship type set up in your instance
With no relationship type in your instance, Uwazi stops you at the Choose relation type step. Admins can add a type there. Everyone else reads "An admin needs to add relationship types before you can create a relationship."
Steps
Open the entity. The document sits on the Document tab. The Relationships tab sits beside it and shows a count.
Reference another entity
Use this path to link selected text to an entity as a whole. The target entity doesn't need a document of its own.
- In the document, select (highlight) the text you want to link.
- In the small menu that appears, select Create relationship.
- On the Select target entity step, type a name in the Search entities... box.
- Select the target entity from the results.
- If that entity has PDF files, the Select target document step opens. Select Connect to entity to skip it.
- On the Choose relation type step, select a type. Uwazi selects the first type for you, so change it if you need another one.
- Select Create relationship.
Uwazi saves the reference and flashes a "Relationship created" message. The reference joins the list on the Relationships tab.
Reference a specific paragraph
Use this path to link your selected text to an exact paragraph. The target paragraph can sit in another entity's document or in the one you're reading.
- In the document, select (highlight) the text you want to link.
- In the small menu, select Create relationship.
- On the Select target entity step, search for the entity, then select it. Pick the entity you're reading to link within the same document.
- On the Select target document step, select the file that holds the paragraph. Only PDF files appear here.
- On the Choose relation type step, select a type, then select Continue.
- On the Select text in target document step, select (highlight) the target paragraph.
- Select Save.
To step back at any point, select Back. The Select target document step appears only for entities that have a PDF, so an entity without one can't be a paragraph target.
Create the target entity as you go
- On the Select target entity step, select Create new entity from selection.
- Uwazi opens the New entity step and fills the title from your selected text. Edit the title if you want.
- Select a template.
- Select Create entity.
Uwazi creates the entity, then carries on with it as your target.
Find and read your references
- Open the Relationships tab.
- Select a row to jump to its text in the document.
- Select one of the three view buttons beside the search box to switch between List, Tree, and Graph.
- Select Display options to group, sort, or resize the rows.
- Use the rail down the side of the document. Each marker stands for one reference. Select a marker to open its reference.
With no references yet, the tab reads No Relationships. When a search or a filter matches nothing, it reads No relationships found.
Delete a reference
Deleting a reference removes the link for everyone, and you can't undo it.
- Open the Relationships tab.
- Point at the reference you want to remove.
- Select the trash button on its row.
- In the Delete relationship dialog, select Delete.
To remove several at once:
- In the footer of the Relationships tab, select Edit.
- Select each row you want to remove, or use Select all.
- Select Delete.
- In the Delete relationships dialog, select Delete.
- Select Save to leave edit mode.
Deleting a reference needs the same access as creating one. Edit mode holds no draft, so each deletion takes effect as you confirm it.
Result
Your document now links to the entity or paragraph you chose, and the reference appears on the Relationships tab.
See also
- How to create relationships between entities — link whole entities rather than passages of text
- How to create a table of contents for a document — another way to navigate a document in the viewer
- Understanding Uwazi's building blocks — how references and relationships fit the entity model