Extractions can be saved in folders or subfolders.
The buttons in the "Folder" category are available:
In the 'Extractions' tab, after selecting a folder, click on the 'New' button:

Renseignez le nom du fichier de définition, un nouveau fichier est créé dans le répertoire WEB-INF/param/extraction/definitions/<Dossier>.
The 'Extraction details' tool opens, showing the root of the tree and the nodes for defining clause variables and optional columns.
You can now create the components for your extraction.
In the 'Extractions' tab, click on the 'Modify description' button:

The content modification tool opens, allowing you to modify the extraction description.
In the 'Extraction details' tool, select a node and click on the 'Thesaurus' button in the 'Extractions' tab:

A dialog box appears, allowing you to enter the information required to create a thesaurus component:
A Thesaurus node is created in the tree, below the selected node.
In the 'Extraction details' tool, select a node and click on the 'Query' button in the 'Extractions' tab:

A dialog box appears, allowing you to enter the information required to create a query component:
Depending on the type of query selected, new information must be entered:
|
If you wish to use a saved query :
| |
|
If you wish to create a query from scratch :
|
A Request node is created in the tree, below the selected node.
In the 'Extraction details' tool, select a node and click on the 'Counter' button in the 'Extractions' tab:

A dialog box appears, allowing you to enter the information required to create a counter component.
A counter component corresponds to a query component. The parameters to be entered are essentially the same.
The difference lies in the fact that for a counter component, only the number of contents returned by the query is returned. No column or sorting parameters are requested.
A Counter node is created in the tree, below the selected node.
In the 'Extraction details' tool, select a node and click on the 'Match query' button in the 'Extractions' tab:

A dialog box appears, allowing you to enter the information required to create a correspondence request component.
A match request component corresponds to a query component. The parameters to be entered are essentially the same.
The difference is that the contents returned by a match request component are not displayed. The match request is invisible. As a result, no group, column or sort parameters are requested. The tag name parameter is not requested either.
A Match query node is created in the tree, below the selected node.
For join solr, always put quotation marks around the q=.
A clause can contain variables defined in another node of the tree. See adding clause variables. The variable name is enclosed in braces, preceded by the '$' sign. Example:
${le_nom_de_ma_variable}A clause can also be used to join parent components. The link to the parent component is enclosed in braces, preceded by the '$' sign. Use the notation '..' to link to the direct parent. To go back to more distant parents, use "../" as many times as necessary. You can also specify the name of an attribute of the targeted parent. Here are a few examples:
Content of direct parent :
${..}Contents of parent N+4 :
${../../../..}Attribute attribute_A of the content of the direct parent :
${../attribute_A}Attribute attribute_B of the content linked by attribute attribute_A of the content of parent N+2 :
${../../attribute_A.attribute_B}When using a multivalued clause variable, a join on a multivalued attribute or autoposting for thesaurii, the specified query can be modified before execution to test all expected values. For example, the following query :
my_attribute_A:${../my_parent_multivalued_attribute_A}becomes
my_attribute_A:my_parent_attribute_A_value_1 OR my_attribute_A:my_parent_attribute_A_value_2 OR ...
You can add groups that allow you to duplicate only certain parts of queries, rather than the entire query. This means that queries executed a certain number of times are much more efficient. The group is enclosed in braces, preceded by the '#' sign:
#{my_attribute_A:${../my_parent_mutlivalued_attribute_A}} OR {!ametys join=linkContent->my_attribute_B q='%{#{id:"${../my_parent_multivalued_attribute_B}"}}'}becomes
(my_attribute_A:my_parent_attribute_A_value_1 OR my_attribute_A:my_parent_attribute_A_value_2 OR ...) OR ({!ametys join=linkContent->my_attribute_B q='(id:"my_parent_attribute_A_value_1 OR id:my_parent_attribute_A_value_2 OR ...")'})There are several rules to know:
A clause variable is used to provide a value at extraction runtime. The variable can be used in component clauses using the notation ${myVariable}. This notation will be replaced at runtime by the value supplied.
The Clause variable node contains all clause variables. It is automatically created when the definition file is created.
In the 'Extraction details' tool, select the Clause variables node and click on the 'Modify' button in the 'Extractions' tab. A dialog box appears, allowing you to add new clause variables or modify existing ones:

Before version 1.12.0, you couldn't restrict the list of contents using a query solr, you could only provide a content type. In addition, the Query variable type Solr did not exist.
You can add variables by clicking on the '+' button.
Variables are used to make columns optional. At runtime, the user chooses for each variable whether or not the columns dependent on that variable will be displayed. To make a column dependent on a variable, simply enter the variable name in brackets in the Columns field. Example:
attribute_A (optianalA), attribute_B
The Optional columns node contains all these variables. It is automatically created when the definition file is created.
In the 'Extraction details' tool, select the Optional columns node and click on the 'Modify' button in the 'Extractions' tab. A dialog box appears, allowing you to create one or more variables for the optional columns:
In the 'Extraction details' tool, select a node and click on the 'Modify' button in the 'Extractions' tab:

A dialog box appears, allowing you to modify the information for the selected node. The fields in the dialog box depend on the node selected.
In the 'Extraction details' tool, select a node and click on the 'Delete' button in the 'Extractions' tab:

After confirmation, the selected node and all its children are deleted.
When you make a change to an extraction, a star is displayed in the name of the corresponding 'Extraction details' tool. You can save the changes you have made to the extraction by clicking on the 'Save' button.
from the 'Extractions' tab:
Alternatively, you can cancel
these modifications by clicking on the 'Cancel' button in the 'Extractions' tab:
In the 'Extractions' tool, select a definition file and click on the 'Rename' button in the 'Extractions' tab:

You can also click on the 'Rename' button in the 'Extraction details' tool.
In the 'Extractions' tool, select a definition file and click on the 'Delete' button in the 'Extractions' tab:

Actions for sharing extractions are available under "Sharing",
and are accessible when an extraction is selected.
changes the visibility of an extraction:
This button is only available if the selected extraction has shared visibility, and opens the "Extraction rights" tool.
This tool lists users or groups with read and read/write access to the selected extraction.

Users or groups with read access will only be able to view the extraction, without being able to modify it.
Users or groups with read/write access will be able to view the extraction, as well as modify it.
Extraction rights" tool actions
are available in a "Sharing" tab.
This button is available as soon as at least one category (read or read/write) is selected. It allows you to add one or more users to the selected category(ies), and thus add the corresponding right.
A window opens, allowing you to select the users to whom the corresponding right should be assigned.
This button is available as soon as at least one category (read or read/write) is selected. It allows you to add one or more groups to the selected category(ies), and thus add the corresponding right.
A window opens, allowing you to select the groups to which to assign the corresponding right.
This button is available as soon as at least one user or group is selected. Removes this user or group from the selected category.
A pop-up window opens to ask for confirmation.
The "Restrict access" button is available on a directory or extraction.
This button opens the following management tool:

This same tool can be found by clicking on the "Users, Groups & Rights"/"Assign profiles" button, then selecting the "Extraction" context.
This tool lets you assign rights to directories or queries, according to the following principles:
Summary table:

ID*: internal identifier used in bus messages and buttons