====== Search and results visualization – Decretum Gratiani ====== ===== General overview ===== Search within the *Decretum Gratiani* allows users to explore the sections of the canonical corpus in a targeted way by applying progressive hierarchical filters. The system enables users to search for keywords or expressions, gradually narrowing the search scope down to individual chapters or paragraphs. ---- ===== Search and results ===== After selecting *Decretum Gratiani* as the reference corpus and starting a search, the results matching the entered criteria are displayed. Each result includes: * A clickable title, which allows access to the detail page; * A text excerpt, in which the keywords are highlighted; * The total number of results found. The layout is simple and uniform, ensuring clear and immediate readability. {{gnorm:gnorm_search_and_results.png?650|Search and Results}} ---- ===== Search filters ===== The search system for the *Decretum Gratiani* provides a set of progressive filters that dynamically expand based on the user’s selections. The goal is to enable structured navigation within the canonical corpus, allowing users to quickly isolate sections of interest. ---- ==== General structure ==== Before selecting the *Pars*, the following general filtering fields are always available: * **Free text search** → a free text field that allows keyword or specific string searches within the corpus; * **Author** → allows the search to be restricted to a specific author (if available); * **From / To** → allows users to define a reference chronological range. After these initial fields, the main **PARS** filter is presented, which determines the structure of the subsequent fields. {{gnorm:gnorm_filters.png?500|Filters}} ---- ==== Configurations based on the selected Pars ==== === PARS I === After selecting **PARS I**, the system displays the following filters: * Distinctio * Dictum * Capitulum This configuration allows detailed exploration of the initial part of the *Decretum Gratiani*, organized by distinctions and chapters. {{gnorm:gnorm_pars1.png?300|PARS 1}} === PARS II === **PARS II** presents a different structure, articulated into more complex thematic levels. The displayed filters are: * Causa * Quaestio * Distinctio * Dictum * Capitulum This organization reflects the subdivision of the second part of the corpus, which follows the logic of *causae* and *quaestiones*, typical of Gratian’s casuistic approach. {{gnorm:gnorm_pars2.png?300|PARS 2}} === PARS III === **PARS III** follows the same structure as **PARS I**, with the following filters: * Distinctio * Dictum * Capitulum ---- ==== General behavior ==== Each selection dynamically determines the subsequent available fields. Once the search criteria are set and the search is launched using the **Search** button, the corresponding results are displayed. If no results match the specified criteria, the system displays the message **“No results found”**. ---- ===== Detail page ===== By clicking on a result, the user accesses the detail page, which displays: * The title and the full text of the selected excerpt; * An introductory message guiding interaction with the text (“Select some text to add notes or suggest corrections”); * The **Notes** and **Export** buttons, positioned in the upper right section. From this page, users can read the full text, add annotations, or export the data. {{gnorm:gnorm_detail_page.png?500|Results}} ---- ===== Notes management ===== For further details on the functionality of the **Notes** button, please refer to the section *Notes and annotations management*. ---- ===== Data export ===== For further details on the functionality of the **Export** button, please refer to the section *Export button*. ---- ===== Visual consistency and navigation ===== The page maintains the same visual and functional logic as the homepage: * Top tabs for switching between corpora; * Session bar with the **Logout** button; * Institutional footer with project references, support links, and official logos.