Premier jet de l'intégration du client Scrutari dans Libre à vous

This commit is contained in:
Vincent Calame 2022-10-01 00:18:32 +02:00
parent d3b04672b2
commit f3df01827c
22 changed files with 4549 additions and 0 deletions

View File

@ -87,3 +87,11 @@ function libreavous_aveczerod($chaine) {
}
return $chaineaveczero;
}
//traite une chaine de recherche provenant d'un paramètre extérieur (q ou qid)
function filtre_scrutari_escape_query($texte) {
$texte = preg_replace('/[^-*":!()&|[:alnum:]]+/u', ' ', $texte);
$texte = trim(str_replace("\"", "\\\"", $texte));
return $texte;
}

View File

@ -7,6 +7,7 @@ if (!defined('_ECRIRE_INC_VERSION')) {
$GLOBALS['z_blocs'] = array(
'content',
'head',
'head_js',
'header',
'breadcrumb',
'extra',

View File

@ -0,0 +1,98 @@
[===============================================================(#REM)
Configuration du client Scrutari
]
<script>
$(function () {
var scrutariConfig = new Scrutari.Config("libreavous", "https://sct2.scrutari.net/sct/april_libreavous/", "fr", "site", {
paginationLength: 50
});
Scrutari.Client.init(scrutariConfig, "scrutari_client", {
withCorpus: false,
ficheTarget: "_blank",
ficheBodyList: "fiche_mtitre,fiche_msoustitre,libreavous_start_ul,fiche_primaryattributearray,fiche_mcomplementarray,fiche_secondaryattributearray,fiche_motclearray,fiche_bythesaurusarray,libreavous_end_ul", //Ajout de libreavous_start_ul et libreavous_end_ul, retrait de fiche_year
initialQuery: "[(#ENV*{q}|scrutari_escape_query)]",
initialQId: "[(#ENV*{qid}|scrutari_escape_query)]",
permalinkPattern: "http://libreavous.exemole.fr/spip.php?page=scrutarijs?qid=$QID",
hooks: {
completeFiche : function (scrutariResult, fiche, categoryName) { //Extrait le numéro du titre
let start = fiche.mtitre[0];
let numero = "";
if (start.startsWith("#")) {
let idx = start.indexOf("-");
if (idx > 0) {
numero = start.substring(0, idx).trim();
fiche.mtitre[0] = start.substring(idx + 1);
}
}
fiche._numero = numero;
}
}
}, function (client) {
client.$({_element: "button"}).addClass("btn"); //Ajout de la classe btn à tous les boutons du client
});
});
</script>
[===============================================================(#REM)
Déclaration du bloc destiné à recevoir le client
]
<article class="texte_content">
<div id="scrutari_client">
</div>
</article>
[===============================================================(#REM)
Partie consacrée à la réécriture des gabarits
voir https://framagit.org/Scrutari/scrutarijs/-/wikis/adaptation#reformuler-un-%C3%A9lement-de-structure-et-de-gabarit
]
<script data-name="fiche_mtitre" type="text/x-scrutari-template">
<p class="scrutari-fiche-Titre surtitre">
{{if _numero}}
<span class="num_emission">{{: _numero}}</span>
{{/if}}
<a href="{{:href}}"
class="scrutari-fiche-Link"
data-scrutari-link="fiche_{{:codefiche}}"
{{if _target}} target="{{:_target}}"{{/if}}>
{{if mtitre}}
{{:~scrutari_mark(mtitre)}}
{{else}}
{{:href}}
{{/if}}
</a>
</p>
</script>
<script data-name="libreavous_start_ul" type="text/x-scrutari-template">
<ul class="spip">
</script>
<script data-name="libreavous_end_ul" type="text/x-scrutari-template">
</ul>
</script>
<script data-name="fiche_attribute" type="text/x-scrutari-template">
{{if type!=="block"}}
<li>
{{for valueArray ~len=valueArray.length}}
{{:~scrutari_mark(#data)}}{{if #index != (~len -1)}}, {{/if}}
{{/for}}
</li>
{{else}}
<li>
<p>
{{>title}}{{>~scrutari_loc("_ colon")}}
</p>
<div class="scrutari-fiche-AttributeValues">
{{for valueArray ~len=valueArray.length}}
<p class="scrutari-fiche-AttributeValue">
{{:~scrutari_mark(#data)}}
</p>
{{/for}}
</div>
</li>
{{/if}}
</script>

View File

@ -0,0 +1 @@
<title>Recherche Scrutari</title>

View File

@ -0,0 +1,16 @@
[(#REM) Version 1.0.7 de JsRender]
[<script src="(#CHEMIN{javascript/jsrender/jsrender.min.js}|timestamp)"></script>]
[(#REM) Fichier principal]
[<script src="(#CHEMIN{javascript/scrutarijs/scrutarijs.js}|timestamp)"></script>]
[(#REM) Version française]
[<script src="(#CHEMIN{javascript/scrutarijs/l10n/fr.js}|timestamp)"></script>]
[(#REM) Structure et gabarits correspondant à l'absence de framework]
[<script src="(#CHEMIN{javascript/scrutarijs/frameworks/none.js}|timestamp)"></script>]
[<link rel="stylesheet" href="(#CSS{javascript/scrutarijs/scrutarijs.css})" type="text/css" />]
[<link rel="stylesheet" href="(#CSS{javascript/scrutarijs/frameworks/none.css})" type="text/css" />]
[<link rel="stylesheet" href="(#CSS{javascript/scrutarijs/perso.css})" type="text/css" />]

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,169 @@
/*****************************************************
* .none-input
******************************************************/
.none-input-Container {
margin-bottom: 5px;
}
.none-input-Search {
display: inline-block;
}
.none-input-Submit {
display: inline-block;
}
@media (min-width: 768px) {
.none-input-Container {
display: flex;
align-items: center;
}
.none-input-Search {
display: block;
flex-grow: 9;
}
.none-input-Search > input {
width: 100%;
}
.none-input-Submit {
display: block;
flex-grow: 1;
padding-left: 10px;
padding-right: 10px;
}
.none-input-Parameters {
flex-basis: 34%;
width: 34%;
}
.none-input-Parameters > button {
width: 100%;
}
}
/*****************************************************
* .none-overlay
******************************************************/
.none-overlay-Blocker {
position: fixed;
top: 0; right: 0; bottom: 0; left: 0;
width: 100%; height: 100%;
overflow: hidden;
z-index: 10000;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px;
}
.none-overlay-Close {
position: absolute;
top: -12.5px;
right: -12.5px;
display: block;
width: 30px;
height: 30px;
border-radius: 15px;
border: none;
font-size: 20px;
}
.none-overlay-Content {
min-width: 20vw;
max-width: 90vw;
max-height: 70vh;
overflow: auto;
padding: 10px 20px;
font-size: 0.9rem;
}
.none-overlay-Dialog {
position: relative;
box-sizing: border-box;
max-width: 700px;
}
.none-overlay-Footer {
padding: 0 0 8px 0;
}
.none-overlay-Header {
border-bottom-width: 1px;
border-bottom-style: solid;
padding: 20px 10px;
}
.none-overlay-Waiting {
cursor: wait;
}
/*****************************************************
* .none-panel
******************************************************/
.none-panel-Columns {
display: flex;
}
.none-panel-Columns > div {
width: 25%;
}
.none-panel-Columns p {
margin: 0;
}
.none-panel-Header {
padding-top : 5px;
padding-bottom: 5px;
border-bottom-width: 1px;
border-bottom-style: solid;
}
.none-panel-ListBody {
padding-top : 3px;
}
.none-panel-Section {
margin-bottom: 0;
border-width: 1px;
border-style: solid;
}
.none-panel-Title {
margin: 0;
font-size: 1.0em;
line-height: 1.1;
cursor: pointer;
font-weight: normal;
}
/*****************************************************
* .none-result
******************************************************/
@media (min-width: 768px) {
.none-result-Container {
display: flex;
}
.none-result-FicheDisplay {
width: 66%;
}
.none-result-Sidebar {
width: 34%;
}
}

View File

@ -0,0 +1,279 @@
var SCRUTARI_HTML = {
_name:'none',
structure:{
'area-input':'<div data-scrutari-area="input"> <div class="none-input-Container"> <div class="none-input-Search"> <input type="text" class="scrutari-input-Text" size="40" name="q" value=""> </div> <div class="none-input-Submit"> <button type="submit">_ button_submit</button> </div> <div class="none-input-Parameters"> <button type="button" data-scrutari-button="parametersDisplay" class="scrutari-Hidden" data-scrutari-state="off"> _ button_parameters </button> </div> </div> </div>',
'area-result':'<div data-scrutari-area="result" class="scrutari-area-Result"> <div class="none-result-Container"> <div class="none-result-FicheDisplay" data-scrutari-block="ficheDisplay"> </div> <div class="none-result-Sidebar"> <div class="scrutari-Hidden" data-scrutari-hidden="empty"> {{result-links}} </div> {{result-history}} </div> </div> <div class="scrutari-Hidden" data-scrutari-hidden="threshold"> {{result-subsearch}} </div> <div class="scrutari-Hidden" data-scrutari-hidden="empty"> {{result-poweredby}} </div> </div>',
'panel-base':'<section class="none-panel-Section scrutari-Hidden" data-scrutari-panel="base"> <header class="none-panel-Header"> <h1 class="none-panel-Title" data-scrutari-button="toggleBlock" data-scrutari-state="off" data-scrutari-target="basePanelBody"> _ title_filter_base <span data-scrutari-label="baseFilter" class="scrutari-panel-State scrutari-Disabled" data-scrutari-alternate="_ filter_on">_ filter_off</span> </h1> </header> <div class="none-panel-ListBody scrutari-Hidden" data-scrutari-block="basePanelBody"> <div class="none-panel-Toolbar"> <span class="none-panel-ButtonGroup"> <button type="button" data-scrutari-button="enablePanel" data-scrutari-target="base" data-scrutari-state="off"> <span data-scrutari-alternate="_ button_filter_off">_ button_filter_on</span> </button> </span> <span class="none-panel-ButtonGroup"> <button type="button" data-scrutari-button="checkAll" data-scrutari-target="base" disabled>_ button_check_all</button> <button type="button" data-scrutari-button="uncheckAll" data-scrutari-target="base" disabled>_ button_uncheck_all</button> </span> </div> <div class="none-panel-Columns"> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="baseColumns"></div> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="baseColumns"></div> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="baseColumns"></div> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="baseColumns"></div> </div> </div> </section>',
'panel-category':'<section class="none-panel-Section scrutari-Hidden" data-scrutari-panel="category"> <header class="none-panel-Header"> <h1 class="none-panel-Title" data-scrutari-button="toggleBlock" data-scrutari-state="off" data-scrutari-target="categoryPanelBody"> _ title_filter_category <span data-scrutari-label="categoryFilter" class="scrutari-panel-State scrutari-Disabled" data-scrutari-alternate="_ filter_on">_ filter_off</span> </h1> </header> <div class="none-panel-ListBody scrutari-Hidden" data-scrutari-block="categoryPanelBody"> <div class="none-panel-Toolbar"> <span class="none-panel-ButtonGroup"> <button type="button" data-scrutari-button="enablePanel" data-scrutari-target="category" data-scrutari-state="off"> <span data-scrutari-alternate="_ button_filter_off">_ button_filter_on</span> </button> </span> <span class="none-panel-ButtonGroup"> <button type="button" data-scrutari-button="checkAll" data-scrutari-target="category" disabled>_ button_check_all</button> <button type="button" data-scrutari-button="uncheckAll" data-scrutari-target="category" disabled>_ button_uncheck_all</button> </span> </div> <div class="none-panel-Columns"> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="categoryColumns"></div> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="categoryColumns"></div> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="categoryColumns"></div> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="categoryColumns"></div> </div> </div> </section>',
'panel-corpus':'<section class="none-panel-Section scrutari-Hidden" data-scrutari-panel="corpus"> <header class="none-panel-Header"> <h1 class="none-panel-Title" data-scrutari-button="toggleBlock" data-scrutari-state="off" data-scrutari-target="corpusPanelBody"> _ title_filter_corpus <span data-scrutari-label="corpusFilter" class="scrutari-panel-State scrutari-Disabled" data-scrutari-alternate="_ filter_on">_ filter_off</span> </h1> </header> <div class="none-panel-ListBody scrutari-Hidden" data-scrutari-block="corpusPanelBody"> <div class="none-panel-Toolbar"> <span class="none-panel-ButtonGroup"> <button type="button" data-scrutari-button="enablePanel" data-scrutari-target="corpus" data-scrutari-state="off"> <span data-scrutari-alternate="_ button_filter_off">_ button_filter_on</span> </button> </span> <span class="none-panel-ButtonGroup"> <button type="button" data-scrutari-button="checkAll" data-scrutari-target="corpus" disabled>_ button_check_all</button> <button type="button" data-scrutari-button="uncheckAll" data-scrutari-target="corpus" disabled>_ button_uncheck_all</button> </span> </div> <div class="none-panel-Columns"> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="corpusColumns"></div> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="corpusColumns"></div> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="corpusColumns"></div> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="corpusColumns"></div> </div> </div> </section>',
'panel-lang':'<section class="none-panel-Section scrutari-Hidden" data-scrutari-panel="lang"> <header class="none-panel-Header"> <h1 class="none-panel-Title" data-scrutari-button="toggleBlock" data-scrutari-state="off" data-scrutari-target="langPanelBody"> _ title_filter_lang <span data-scrutari-label="langFilter" class="scrutari-panel-State scrutari-Disabled" data-scrutari-alternate="_ filter_on">_ filter_off</span> </h1> </header> <div class="none-panel-ListBody scrutari-Hidden" data-scrutari-block="langPanelBody"> <div class="none-panel-Toolbar"> <span class="none-panel-ButtonGroup"> <button type="button" data-scrutari-button="enablePanel" data-scrutari-target="lang" data-scrutari-state="off"> <span data-scrutari-alternate="_ button_filter_off">_ button_filter_on</span> </button> </span> <span class="none-panel-ButtonGroup"> <button type="button" data-scrutari-button="checkAll" data-scrutari-target="lang" disabled>_ button_check_all</button> <button type="button" data-scrutari-button="uncheckAll" data-scrutari-target="lang" disabled>_ button_uncheck_all</button> </span> </div> <div class="none-panel-Columns"> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="langColumns"></div> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="langColumns"></div> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="langColumns"></div> <div class="scrutari-panel-ColumnDisabled" data-scrutari-group="langColumns"></div> </div> </div> </section>',
'panel-options':'<section class="none-panel-Section" data-scrutari-panel="options"> <header class="none-panel-Header"> <h1 class="none-panel-Title" data-scrutari-button="toggleBlock" data-scrutari-state="off" data-scrutari-target="optionsPanelBody"> _ title_options </h1> </header> <div class="scrutari-Hidden" data-scrutari-block="optionsPanelBody"> <div class="none-panel-Columns"> <div> <p class="none-option-Legend"><span class="none-option-Title">_ mode_title</span><button class="none-option-Help" data-scrutari-button="showModal" data-scrutari-target="help_mode" type="button" title="_ mode_help">?</button></p> <p><label class="scrutari-Label"><input type="radio" name="q-mode" value="intersection" checked> _ mode_intersection</label></p> <p><label class="scrutari-Label"><input type="radio" name="q-mode" value="union"> _ mode_union</label></p> <p><label class="scrutari-Label"><input type="radio" name="q-mode" value="operation"> _ mode_operation</label></p> <p><label class="scrutari-Label"><input type="checkbox" name="wildchar" value="end" checked> _ wildchar_end</label></p> </div> <div> <p class="none-option-Legend"><span class="none-option-Title">_ ponderation_title</span><button class="none-option-Help" data-scrutari-button="showModal" data-scrutari-target="help_ponderation" type="button" title="_ ponderation_help">?</button></p> <p><label class="scrutari-Label"><input type="radio" name="ponderation" value="pertinence" checked> _ ponderation_pertinence</label></p> <p><label class="scrutari-Label"><input type="radio" name="ponderation" value="date"> _ ponderation_date</label></p> </div> <div> <p class="none-option-Legend"><span class="none-option-Title">_ periode_title</span><button class="none-option-Help" data-scrutari-button="showModal" data-scrutari-target="help_periode" type="button" title="_ periode_help">?</button></p> <p><input type="text" class="scrutari-input-Text" name="periode" value="" size="20"></p> </div> </div> </div> </section>',
'area-parameters':'<div data-scrutari-area="parameters" class="scrutari-area-Parameters scrutari-Hidden"> {{panel-options}} {{panel-corpus}} {{panel-base}} {{panel-lang}} {{panel-category}} <div class="scrutari-area-Resubmit"> <button type="submit">_ button_resubmit</button> </div> </div>',
'area-stats':'<div data-scrutari-area="stats" class="scrutari-area-Stats"> {{stats-table}} </div> ',
'area-title':'<div data-scrutari-area="title" class="scrutari-area-Title"> <p class="scrutari-title-Main" data-scrutari-title="main"></p> </div> ',
'main-form':'<form data-scrutari-form="mainsearch"> {{area-input}} {{area-parameters}} </form>',
'main':'{{area-title}} {{main-form}} {{area-stats}} {{area-result}} {{modal-*}} ',
'modal-help_mode':'<section class="scrutari-Hidden" data-scrutari-modal="help_mode" aria-hidden="true"> <header> _ mode_help </header> <div> _ help_mode.html </div> </section>',
'modal-help_periode':'<section class="scrutari-Hidden" data-scrutari-modal="help_periode" aria-hidden="true"> <header> _ periode_help </header> <div> _ help_periode.html </div> </section>',
'modal-help_ponderation':'<section class="scrutari-Hidden" data-scrutari-modal="help_ponderation" aria-hidden="true"> <header> _ ponderation_help </header> <div> _ help_ponderation.html </div> </section>',
'modal-loading':'<section class="scrutari-Hidden" data-scrutari-modal="loading" aria-hidden="true"> <div> <span class="scrutari-icon-Loader"></span> _ loading_search </div> </section>',
'result-history':'<div class="scrutari-Hidden" data-scrutari-hidden="start"> <p class="scrutari-links-Title">_ title_history</p> <div data-scrutari-block="historyList"> </div> </div>',
'result-links':'<p class="scrutari-links-Title">_ title_share</p> <p class="scrutari-links-Permalink"> <a href="#" data-scrutari-link="permalink" target="_blank" title="_ link_permalink" ></a> </p> <p class="scrutari-links-Title">_ title_download</p> <p> <a href="#" data-scrutari-link="ods" target="_blank" title="_ link_ods" class="scrutari-links-ButtonLike">ods</a> <a href="#" data-scrutari-link="csv" target="_blank" title="_ link_csv" class="scrutari-links-ButtonLike">csv</a> </p> <p class="scrutari-links-Title">_ title_feed</p> <p> <a href="#" data-scrutari-link="atom" target="_blank" title="_ link_atom" class="scrutari-links-ButtonLike">atom</a> </p>',
'result-poweredby':'<p class="scrutari-links-Poweredby"><a href="http://www.scrutari.net" target="_blank"><span class="scrutari-icon-Logo"></span> _ link_poweredby</a></p>',
'result-subsearch':'<form data-scrutari-form="subsearch"> <p class="scrutari-subsearch-Title">_ title_subsearch</p> <input type="text" class="scrutari-input-Text" size="40" name="q"> <button type="submit">_ button_subsearch</button> </form>',
'stats-filter':'<tr class="scrutari-Hidden" data-scrutari-hidden="filter" data-scrutari-count="stats-filter"> <td class="scrutari-stats-Cell"><abbr class="scrutari-stats-Abbr" title="_ stats_filter_title">_ stats_filter_short</abbr></td> <td class="scrutari-stats-Cell scrutari-stats-Number"><span class="scrutari-stats-Count" data-scrutari-role="value"></span></td> <td class="scrutari-stats-Cell scrutari-stats-Titles"><span data-scrutari-role="titles"></span></td> </tr>',
'stats-global':'<tr class="scrutari-Hidden" data-scrutari-hidden="init" data-scrutari-count="stats-global"> <td class="scrutari-stats-Cell"><abbr class="scrutari-stats-Abbr" title="_ stats_global_title">_ stats_global_short</abbr></td> <td class="scrutari-stats-Cell scrutari-stats-Number"><span class="scrutari-stats-Count" data-scrutari-role="value"></span></td> </tr>',
'stats-result':'<tr class="scrutari-Hidden" data-scrutari-hidden="start" data-scrutari-count="stats-result"> <td class="scrutari-stats-Cell"><abbr class="scrutari-stats-Abbr" title="_ stats_result_title">_ stats_result_short</abbr></td> <td class="scrutari-stats-Cell scrutari-stats-Number"><span class="scrutari-stats-Count" data-scrutari-role="value"></span></td> </tr>',
'stats-table':'<table class="scrutari-stats-Table"> {{stats-global}} {{stats-filter}} {{stats-result}} </table> '
},
templates:{
'base':' <p> <label class="scrutari-Label" {{if phraseMap.longtitle}}title="{{> phraseMap.longtitle}}"{{/if}}><input type="checkbox" name="base" value="{{: codebase}}" data-scrutari-title="{{> title}}"> {{if baseicon}} <img src="{{: baseicon}}" alt="" class="scrutari-panel-Icon"> {{/if}} <span data-scrutari-role="stat-text">{{> title}} <small>(<span data-scrutari-stat-type="base" data-scrutari-stat-key="{{: codebase}}" data-scrutari-stat-default="{{: stats.fiche}}"></span>{{: ~scrutari_format(stats.fiche)}})</small></span> </label> </p>',
'category':' <p> <label class="scrutari-Label" {{if phraseMap.description}}title="{{> phraseMap.description}}"{{/if}}> <input type="checkbox" name="category" value="{{: name}}" data-scrutari-title="{{> title}}"> <span data-scrutari-role="stat-text">{{> title}} <small>(<span data-scrutari-stat-type="category" data-scrutari-stat-key="{{: name}}" data-scrutari-stat-default="{{: stats.fiche}}"></span>{{: ~scrutari_format(stats.fiche)}})</small></span> </label> </p>',
'categoryfichedisplay':'<div class="scrutari-category-List" role="tablist"> {{for array}} <span role="tab" class="scrutari-category-Tab {{if active}}scrutari-On{{/if}}" data-scrutari-role="category-tab" data-scrutari-button="categoryTab" {{if category.phraseMap.description}}title="{{>category.phraseMap.description}}"{{/if}} data-scrutari-category="{{:category.name}}"> {{>category.title}} ({{:fichestat}}) </span> {{/for}} </div> {{for array}} <div class="scrutari-category-Content {{if !active}}scrutari-Hidden{{/if}}" data-scrutari-role="category-content" data-scrutari-category="{{:category.name}}"> <div data-scrutari-block="topPagination_{{:category.name}}"></div> <div data-scrutari-block="fiches_{{:category.name}}"></div> <div data-scrutari-block="bottomPagination_{{:category.name}}"></div> </div> {{/for}}',
'corpus':' <p> <label class="scrutari-Label"><input type="checkbox" name="corpus" value="{{: codecorpus}}" data-scrutari-title="{{> title}}"> <span data-scrutari-role="stat-text">{{> title}} <small>(<span data-scrutari-stat-type="corpus" data-scrutari-stat-key="{{: codecorpus}}" data-scrutari-stat-default="{{: stats.fiche}}"></span>{{: ~scrutari_format(stats.fiche)}})</small></span> </label> </p>',
'emptyfichedisplay':'<p><em>{{>~scrutari_loc("_ result_none")}}</em></p> {{if withFilter}} <p><em>{{>~scrutari_loc("_ result_fitlerwarning")}}</em></p> {{else scrutariResult.searchMeta.reportArray.length > 0}} <p>Analyse des termes de la recherche{{>~scrutari_loc("_ colon")}}</p> <dl> {{for scrutariResult.searchMeta.reportArray}} <dt>{{> text}}</dt> <dl> {{if canonicalArray.length > 0}} <p>Correspondances trouvées (entre parenthèses, le nombre d\'occurrences par langue): </p> <ul> {{for canonicalArray}} <li> {{> canonical}} ({{for langreportArray}}{{if #index > 0}}, {{/if}}{{: lang}}={{: ficheCount}}{{/for}}) </li> {{/for}} </ul> {{/if}} {{if neighbourArray.length > 0}} <p>Pas de correspondances trouvées. Termes se rapprochant (entre parenthèses, le code des langues concernées) : </p> <ul> {{for neighbourArray}} <li> {{> neighbour}} <small>({{for langArray}}{{if #index > 0}}, {{/if}}{{: #data}}{{/for}})</small> </li> {{/for}} </ul> {{/if}} {{if canonicalArray.length == 0 && neighbourArray.length == 0}} <p>Aucune correspondance ou terme voisin trouvé</p> {{/if}} </dl> {{/for}} </dl> {{/if}}',
'fiche':' <div class="scrutari-fiche-Block" data-scrutari-block="fiche_{{:codefiche}}"> {{include tmpl="fiche_icon" /}} <div class="scrutari-fiche-Body {{if _thumbnail}}scrutari-fiche-ThumbnailBody{{/if}}"> {{for _bodyTemplateArray ~fiche=#data}} {{include ~fiche tmpl=~scrutari_client.getTemplate(#data) /}} {{/for}} </div> </div> ',
'fiche_attribute':'{{if type!=="block"}} <p class="scrutari-fiche-Attribute"> <span class="scrutari-label-Attribute">{{>title}}{{>~scrutari_loc("_ colon")}}</span> {{for valueArray ~len=valueArray.length}} {{:~scrutari_mark(#data)}}{{if #index != (~len -1)}}, {{/if}} {{/for}} </p> {{else}} <div class="scrutari-fiche-AttributeBlock"> <p class="scrutari-fiche-AttributeTitle"> <span class="scrutari-label-Attribute">{{>title}}{{>~scrutari_loc("_ colon")}}</span> </p> <div class="scrutari-fiche-AttributeValues"> {{for valueArray ~len=valueArray.length}} <p class="scrutari-fiche-AttributeValue"> {{:~scrutari_mark(#data)}} </p> {{/for}} </div> </div> {{/if}}',
'fiche_bythesaurusarray':'{{if _bythesaurusArray}} {{for _bythesaurusArray}} <p class="scrutari-fiche-Motcle"> <span class="scrutari-label-Motcle"> {{> thesaurus.title}}{{>~scrutari_loc("_ colon")}} </span> {{for motcleArray ~len=motcleArray.length}} {{if mlabelArray}}{{for mlabelArray}}{{if #index > 0}}/{{/if}}{{:~scrutari_mark(mvalue)}}{{/for}}{{/if}}{{if #index != (~len -1)}}, {{/if}} {{/for}} </p> {{/for}} {{/if}} ',
'fiche_icon':'{{if _thumbnail}} <div class="scrutari-fiche-Thumbnail"> <img class="scrutari-fiche-ThumbnailImg" alt="" src="{{:_thumbnail}}"/> {{if _icon}} <img class="scrutari-fiche-ThumbnailIcon" alt="" src="{{:_icon}}"/> {{/if}} </div> {{else _icon}} <div class="scrutari-fiche-Icon"><img alt="" src="{{:_icon}}"/></div> {{/if}} ',
'fiche_mcomplementarray':'{{if mcomplementArray}} {{for mcomplementArray}} <p class="scrutari-fiche-Complement"> <span class="scrutari-label-Complement"> {{>title}}{{>~scrutari_loc("_ colon")}} </span> {{:~scrutari_mark(mvalue)}} </p> {{/for}} {{/if}} ',
'fiche_motclearray':'{{if _motcleArray}} <p class="scrutari-fiche-Motcle"> <span class="scrutari-label-Motcle"> {{if _motcleArray.length == 1}} {{>~scrutari_loc("_ fiche_motscles_one")}} {{else}} {{>~scrutari_loc("_ fiche_motscles_many")}} {{/if}} </span> {{for _motcleArray ~len=_motcleArray.length}} {{if mlabelArray}}{{for mlabelArray}}{{if #index > 0}}/{{/if}}{{:~scrutari_mark(mvalue)}}{{/for}}{{/if}}{{if #index != (~len -1)}}, {{/if}} {{/for}} </p> {{/if}} ',
'fiche_msoustitre':'{{if msoustitre}} <p class="scrutari-fiche-Soustitre"> {{:~scrutari_mark(msoustitre)}} </p> {{/if}} ',
'fiche_mtitre':'<p class="scrutari-fiche-Titre"> <a href="{{:href}}" class="scrutari-fiche-Link" data-scrutari-link="fiche_{{:codefiche}}" {{if _target}} target="{{:_target}}"{{/if}}> {{if mtitre}} {{:~scrutari_mark(mtitre)}} {{else}} {{:href}} {{/if}} </a> </p> ',
'fiche_primaryattributearray':'{{if _primaryAttributeArray}} {{for _primaryAttributeArray tmpl="fiche_attribute" /}} {{/if}} ',
'fiche_secondaryattributearray':'{{if _secondaryAttributeArray}} {{for _secondaryAttributeArray tmpl="fiche_attribute" /}} {{/if}} ',
'fiche_year':'{{if year}} <p class="scrutari-fiche-Year"> {{:year}} </p> {{/if}} ',
'ficheloading':'<span class="scrutari-icon-Loader"></span> {{>~scrutari_loc(\'_ loading_pagination\')}}',
'history':'<div data-scrutari-block="{{:name}}" class="scrutari-history-Block scrutari-history-Active"> <div class="scrutari-history-Search"> <button data-scrutari-button="loadHistory" data-scrutari-target="{{:name}}" class="scrutari-history-Load" {{if fichestat == 0}}disabled="disabled"{{/if}}> {{>sequence}} ({{:fichestat}}) </button> <button data-scrutari-role="remove" data-scrutari-button="removeHistory" data-scrutari-target="{{:name}}" class="scrutari-history-Remove scrutari-Hidden" title="{{>~scrutari_loc(\'_ button_remove\')}}"><span aria-hidden="true">&times;</span></button> </div> <div class="scrutari-history-Subsearch" data-scrutari-role="subsearch"></div> </div>',
'lang':' <p> <label class="scrutari-Label"><input type="checkbox" name="lang" value="{{: lang}}" data-scrutari-title="{{: lang}}"> <span data-scrutari-role="stat-text">{{> title}} [{{: lang}}] <small>(<span data-scrutari-stat-type="lang" data-scrutari-stat-key="{{: lang}}" data-scrutari-stat-default="{{: fiche}}"></span>{{: ~scrutari_format(fiche)}})</small></span> </label> </p>',
'tabs':'<div class="scrutari-pagination-List"> {{for tabArray}} {{if state===\'active\'}} <span class="scrutari-pagination-Current">{{>title}}</span> {{else state===\'disabled\'}} <span class="scrutari-pagination-Disabled scrutari-Disabled">{{>title}}</span> {{else}} <span class="scrutari-pagination-Tab" data-scrutari-button="ficheTab" data-scrutari-type="{{:~root.type}}" data-scrutari-position="{{:~root.position}}" data-scrutari-number="{{:number}}" {{if ~root.category}} data-scrutari-category="{{:~root.category}}"{{/if}}>{{>title}}</span> {{/if}} {{/for}} </div>',
'uniquefichedisplay':'<div data-scrutari-block="topPagination"></div> <div data-scrutari-block="fiches"></div> <div data-scrutari-block="bottomPagination"></div> '
}
};
/* global Scrutari */
function SCRUTARI_FRAMEWORKINIT (scrutariClient) {
scrutariClient.functions.modalAction = function ($modal, action) {
switch(action) {
case 'show':
if (!$modal.data("overlayId")) {
var overlayId = Scrutari.Overlay.start({
header: $modal.children("header").html(),
content: $modal.children("div").html(),
footer: $modal.children("footer").html(),
closeTooltip: scrutariClient.loc("_ button_close"),
afterEnd: function () {
$modal.data("overlayId", null);
}
});
$modal.data("overlayId", overlayId);
}
break;
case 'hide':
Scrutari.Overlay.end($modal);
break;
}
};
}
Scrutari.Overlay = {};
Scrutari.Overlay.idNumber = 1;
Scrutari.Overlay.activeInfoArray = new Array();
$(document).on('keydown.overlay', function(event) {
if (event.which === 27) {
var length = Scrutari.Overlay.activeInfoArray.length;
if (length > 0) {
var overlayInfo = Scrutari.Overlay.activeInfoArray[length - 1];
if (overlayInfo.escapeClose) {
Scrutari.Overlay.end(overlayInfo.overlayId);
}
}
}
});
Scrutari.Overlay.Info = function (overlayId, escapeClose) {
this.overlayId = overlayId;
this.escapeClose = escapeClose;
};
Scrutari.Overlay.start = function (settings) {
var closeTooltip = "Close";
if (settings.closeTooltip) {
closeTooltip = settings.closeTooltip;
}
var overlayIdNumber = Scrutari.Overlay.idNumber;
Scrutari.Overlay.idNumber++;
var overlayId = "none-overlay_" + overlayIdNumber;
Scrutari.Overlay.activeInfoArray.push(new Scrutari.Overlay.Info(overlayId, _checkSetting("escapeClose")));
var $overlayBlocker = $("<div/>").attr("id", overlayId).attr("class", _getClass("Blocker")).attr("data-role", "overlay");
var $overlayDialog = $("<div/>").attr("class", _getClass("Dialog")).appendTo($overlayBlocker);
$overlayDialog.data("overlayId", overlayId);
$("body")
.append($overlayBlocker)
.css('overflow','hidden');
var overlayBody = _getDiv("Header") + _getDiv("Content") + _getDiv("Footer");
var includeForm = false;
if (settings.formAttrs || settings.ajaxForm || settings.formSubmit) {
includeForm = true;
var $form = $("<form/>");
if (settings.formAttrs) {
for(var prop in settings.formAttrs) {
$form.attr(prop, settings.formAttrs[prop]);
}
}
if (settings.ajaxForm) {
var initialBeforeSubmit = settings.ajaxForm.beforeSubmit;
settings.ajaxForm.beforeSubmit = function (arr, $form, options) {
if ((initialBeforeSubmit) && (initialBeforeSubmit(arr, $form, options) === false)) {
return false;
}
_startWaiting();
};
var initialSuccess = settings.ajaxForm.success;
settings.ajaxForm.success = function (data, textStatus, jqXHR, $form) {
_endWaiting();
initialSuccess(data, textStatus, jqXHR, $form);
};
$form.ajaxForm(settings.ajaxForm);
} else if (settings.formSubmit) {
$form.submit(function () {
return settings.formSubmit($(this));
});
}
$overlayDialog.append($form.html(overlayBody));
$form.data("overlayId", overlayId);
} else {
$overlayDialog.html(overlayBody);
}
_setContent("Header", settings.header);
_setContent("Content", settings.content);
_setContent("Footer", settings.footer);
var clickClose = _checkSetting("clickClose");
var showClose = _checkSetting("showClose");
$overlayBlocker
.click(function() {
if (clickClose) {
Scrutari.Overlay.end(overlayId);
}
})
.data("beforeEnd", settings.beforeEnd)
.data("afterEnd", settings.afterEnd)
.css("z-index", 10000 + overlayIdNumber);
if (showClose) {
$overlayDialog
.append("<button data-role='close' class='" + _getClass("Close") + " title='" + closeTooltip + "'>&times</button>")
.on("click.overlay", "[data-role='close']", function () {
Scrutari.Overlay.end(overlayId);
});
}
$overlayDialog
.click(function (event) {
event.stopPropagation();
});
if (settings.isWaiting) {
_startWaiting();
}
$overlayBlocker.fadeIn(function () {
$overlayDialog.show();
if (settings.afterStart) {
settings.afterStart($overlayDialog);
} else if (includeForm) {
$overlayDialog.find(":input").filter("[type!='hidden']").first().trigger("focus");
}
});
return overlayId;
function _checkSetting(propName) {
if (settings.hasOwnProperty(propName)) {
return settings[propName];
}
return true;
}
function _setContent (name, content) {
let $element = $("#" + _getId(name));
if (!content) {
$element.empty();
} else if (content.jquery) {
$element.empty().append(content);
} else {
$element.empty().html(content);
}
}
function _startWaiting() {
$overlayBlocker.find("[type='submit']").prop("disabled", true);
$overlayBlocker.addClass(_getClass("Waiting"));
}
function _endWaiting() {
$overlayBlocker.find("[type='submit']").prop("disabled", false);
$overlayBlocker.removeClass(_getClass("Waiting"));
}
function _getDiv(name) {
return "<div id='" + _getId(name) + "' class='" + _getClass(name) + "'></div>";
}
function _getId(name) {
return overlayId + "_" + name;
}
function _getClass(suffix) {
let prefix = "none-overlay-";
if (settings.classPrefix) {
prefix = settings.classPrefix;
}
return prefix + suffix;
}
};
Scrutari.Overlay.end = function (overlayId, callback) {
if (overlayId.jquery) {
overlayId = overlayId.data("overlayId");
}
if (!overlayId) {
return;
}
var $overlayBlocker = $("#" + overlayId);
var beforeEnd = $overlayBlocker.data("beforeEnd");
if (beforeEnd) {
var result = beforeEnd($overlayBlocker.children("div"));
if (result === false) {
return;
}
}
_pop();
$overlayBlocker.empty();
var afterEnd = $overlayBlocker.data("afterEnd");
$overlayBlocker.fadeOut(function() {
$("#" + overlayId).remove();
if ($("body").children("[data-role='overlay']").length === 0) {
$("body").css('overflow','');
}
if (afterEnd) {
afterEnd();
}
if (callback) {
callback();
}
});
function _pop() {
for(var i = 0, len = Scrutari.Overlay.activeInfoArray.length; i < len; i++) {
var overlayInfo = Scrutari.Overlay.activeInfoArray[i];
if (overlayInfo.overlayId === overlayId) {
Scrutari.Overlay.activeInfoArray.splice(i, 1);
break;
}
}
}
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 743 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 725 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,71 @@
var SCRUTARI_L10N = {
lang:'en',
'_ advice_complexity':'Check if you can simplify the search',
'_ and':'AND',
'_ button_check_all':'Check all',
'_ button_close':'Close',
'_ button_filter_off':'Turn filter off',
'_ button_filter_on':'Turn filter on',
'_ button_parameters':'Filters and options',
'_ button_remove':'Remove',
'_ button_submit':'Search',
'_ button_uncheck_all':'Uncheck all',
'_ colon':':',
'_ error.empty.parametervalue':'Error: the search only has meaningless characters!',
'_ error.empty.searchtoken':'Empty search term',
'_ error.unknown.attribute':'Unknown attribute',
'_ error.unknown.fichesearchresult':'Search ID unknown',
'_ error.unknown.operandtype':'Operand type unknown',
'_ error.unknown.scope':'Unknown field',
'_ error.wrong.missingword':'Missing word',
'_ error.wrong.notletterordigitcharacter':'Incorrect character',
'_ error.wrong.operand_add':'Malformed operand',
'_ error.wrong.operand_date':'Malformed date',
'_ error.wrong.operationsyntax':'Syntax error in the advanced search',
'_ error.wrong.unclosedquote':'Unclosed quote',
'_ error.wrong.unexpectedspace':'Unexpected space',
'_ fiche_motscles_many':'Keywords:',
'_ fiche_motscles_one':'Keyword:',
'_ filter_off':'[off]',
'_ filter_on':'[on]',
'_ link_atom':'ATOM feed',
'_ link_ods':'Table in ODS format',
'_ link_permalink':'Permalink',
'_ link_poweredby':'Search powered by Scrutari',
'_ loading_pagination':'Loading…',
'_ loading_search':'Searching…',
'_ mode_help':'Help on relationships between search terms',
'_ mode_intersection':'And',
'_ mode_operation':'Advanced',
'_ mode_title':'Relationship between terms:',
'_ mode_union':'Or',
'_ or':'OR',
'_ periode_help':'Help on limiting to a period',
'_ periode_title':'Limited to a period:',
'_ ponderation_date':'Date',
'_ ponderation_help':'Help on classification priority',
'_ ponderation_pertinence':'Relevance',
'_ ponderation_title':'Classification priority:',
'_ result_none':'No results for the requested search',
'_ stats_filter_short':'Filter:',
'_ stats_filter_title':'Number of references the search will apply to on the basis of the active filters',
'_ stats_global_short':'Total:',
'_ stats_global_title':'Total number of references in the search engine',
'_ stats_result_short':'Result:',
'_ stats_result_title':'Number of references that answer the search criteria',
'_ title_download':'Retrieving all references:',
'_ title_filter_base':'Database filter',
'_ title_filter_category':'Document type filter',
'_ title_filter_corpus':'Corpus filter',
'_ title_filter_lang':'Language filter',
'_ title_history':'Search\u00A0history:',
'_ title_main':'Scrutari search',
'_ title_options':'Search options\u00A0',
'_ title_share':'Share:',
'_ title_subsearch':'Searching latest results:',
'_ wildchar_end':'“*” is added automatically at the end of the word',
'_ button_subsearch':'Filter',
'_ help_mode.html':'<p> <strong>Simple search (</strong><em><strong>And</strong></em><strong>&nbsp;/ </strong><em><strong>Or</strong></em> <strong>options):</strong> the spaces are delimiters for the search terms; if the option <em>And</em> is selected, a reference has to include all the search terms; if the selected option is <em>Or</em>, a reference has to include at least one of the terms. </p><p> The asterisk <kbd>*</kbd> indicates a truncation: </p><ul> <li> <p> <kbd>gov*</kbd>: all words beginning with &ldquo;gov&rdquo; </p> </li> <li> <p> <kbd>*logy</kbd>: all words ending in &ldquo;logy&rdquo; </p> </li> <li> <p> <kbd>*eco*</kbd>: all words including &ldquo;eco&rdquo; </p> </li> </ul><p> If the option <em>&ldquo;*&rdquo; automatically added to the end of the word</em> is ticked, all the words are considered to have a truncation on the right (unless they are in quotation marks). </p><p>We use straight quotation marks to indicate a sequence of words. It is possible to indicate truncations inside quotation marks:</p><ul> <li> <p> <kbd>"organic farming"</kbd>: ignores the term organic if it is not followed by farming </p> </li> <li> <p> <kbd>"part"</kbd>: only searches for the word &ldquo;part&rdquo; even if the automatic asterisk to the right is activated </p> </li> <li> <p> <kbd>"pub* pol*"</kbd>: search for sequences of a word beginning with &ldquo;pub&rdquo; followed by a word beginning with &ldquo;pol&rdquo; </p> </li> </ul><p>The following rules apply:</p><ul> <li> <p>searches do not take accents and uppercase letters into account</p> </li> <li> <p>characters other than letters and figures are ignored</p> </li> <li> <p>the search engine does not propose corrections for typing errors and spelling mistakes</p> </li> <li> <p>the search engine does not index in the references words with one or two letters, such as common words which are not significant in a given language (&ldquo;les, avec, par&rdquo; will be ignored in French, &ldquo;the&rdquo; is ignored in English but not in French, to include searches on the term &ldquo;th&eacute;&rdquo;)</p> </li> </ul><p> <br> <strong>Advanced search (&ldquo;Advanced&rdquo; option):</strong> the advanced search uses the same principles as the simple search in terms of syntax (asterisk <kbd>*</kbd> for truncations, quotation marks for sequences) but the space is no longer a delimiter; instead, we use three operators: </p><ul> <li> <p> <kbd>&amp;&amp;</kbd>: And </p> </li> <li> <p> <kbd>||</kbd>: Or </p> </li> <li> <p> <kbd>!</kbd>: No </p> </li> </ul><p>We use brackets to form logical groups.</p><p>Examples:</p><ul> <li> <p> <kbd>farming &amp;&amp;~!organic</kbd>: searches for references containing a word beginning with farming and not containing any words beginning with organic </p> </li> <li> <p> <kbd>farming &amp;&amp;~!(organic || country)</kbd>: searches for references containing a word beginning with farming and not containing either words beginning with organic or words beginning with country </p> </li> </ul><p>All syntax errors (including the use of characters other than numbers, unauthorized letters and a space for separating words not in quotation marks) produce an error message.</p><p>It is possible to restrict the search for a word to a given field by prefixing a term. Possible prefixes are:</p><ul> <li> <p> <em>title:</em> = only in titles </p> </li> <li> <p> <em>subtitle:</em> = only in subtitles </p> </li> <li> <p> <em>keyword:</em> = only in keywords </p> </li> <li> <p> <em>additional:</em> = in &ldquo;additional&rdquo; fields (complementary fields and attributes) </p> </li> <li> <p> all attribute names followed by&nbsp;: defined by the search engine (e.g. <em>sct:authors:</em> but it depends on the engine used) </p> </li> </ul><p>Examples:</p><ul> <li> <p> <kbd>title:governance</kbd>: &ldquo;governance&rdquo; only in the title </p> </li> <li> <p> <kbd>sct:authors:"Victor Hugo"</kbd>: search for the author Victor Hugo (if the attribute <em>sct:authors</em> is properly defined by the engine) </p> </li> <li> <p> <kbd>title:pol* &amp;&amp;~!sct:authors:Smith</kbd>: reference with a word beginning with &ldquo;pol&rdquo; in the title and whose author is not Smith </p> </li> </ul><p> See <a href="http://www.scrutari.net/dokuwiki/serveurscrutari:json:qsyntax" hreflang="fr" target="_blank" rel="external">Search syntax</a> on the Scrutari website (in french) </p> ',
'_ help_periode.html':'<p>This field is used to restrict references to those that correspond to a given period. It is possible to specify:</p><ul> <li> <p> a particular year: <kbd>2014</kbd> </p> </li> <li> <p> a period covering several years by using the slash mark <kbd>/</kbd> as a delimiter: <kbd>2000/2011</kbd> </p> </li> <li> <p> a particular month: <kbd>2014-01</kbd> </p> </li> <li> <p> a period beginning and ending with a particular month: <kbd>2013/2014-04</kbd> </p> </li> <li> <p> several different periods, by separating them with two vertical bars <kbd>||</kbd> (&ldquo;OR&rdquo; operator): <kbd>2001/2002||2005||2012-11</kbd> </p> </li> </ul><p>It is worth noting that, frequently, only the year of a given reference is known. This means that in certain configurations, specifying the month will not produce any results.</p> ',
'_ help_ponderation.html':'<p>Configuration of ranking priority will affect the order results are displayed in:</p><ul> <li> <p> <strong>ranking by relevance:</strong> priority is given to references containing the search terms in the main fields (title, subtitle) rather than secondary fields, with a premium when it is also present in the keywords. </p> <p>The date does, however, play a role in deciding on similar ratings by relevance. In addition, when engines search several databases, ranking may be slightly altered to avoid overly long series of references from the same database;</p> </li> <li> <p> <strong>ranking by date:</strong> as explained by the name, this is when the most recent references are positioned first, with relevance as the deciding factor when dates are very similar; references without dates are at the end. </p> </li> </ul> '
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,83 @@
var SCRUTARI_L10N = {
lang:'it',
'_ advice_complexity':'Verificate se è possibile semplificare la ricerca',
'_ and':'e',
'_ button_check_all':'selezionare tutto',
'_ button_close':'chiudere',
'_ button_filter_off':'disattivare il filtro',
'_ button_filter_on':'attivare il filtro',
'_ button_parameters':'filtri e opzioni',
'_ button_remove':'cancellare',
'_ button_resubmit':'Potenziare la ricerca',
'_ button_submit':'ricerca',
'_ button_uncheck_all':'deseleziona tutto',
'_ colon':':',
'_ error.empty.parametervalue':'errore la ricerca è costituta da caratteri non significativi',
'_ error.empty.searchtoken':'termine di ricerca vuoto',
'_ error.unknown.attribute':'attributo sconosciuto',
'_ error.unknown.fichesearchresult':'identificativo di ricerca sconosciuto',
'_ error.unknown.operandtype':'tipo di operando sconosciuto',
'_ error.unknown.scope':'campo sconosciuto',
'_ error.wrong.missingword':'parola mancante',
'_ error.wrong.notletterordigitcharacter':'carattere non corretto',
'_ error.wrong.operand_add':'operando mal costituito',
'_ error.wrong.operand_date':'data scorretta',
'_ error.wrong.operationsyntax':'errore di sintassi nella ricerca',
'_ error.wrong.unclosedquote':'virgolette non chiuse',
'_ error.wrong.unexpectedspace':'spazio inatteso',
'_ fiche_motscles_many':'parole chiave:',
'_ fiche_motscles_one':'parola chiave:',
'_ filter_off':'[disattivo]',
'_ filter_on':'[attivo]',
'_ label_base_many':'Databases',
'_ label_base_one':'Database',
'_ label_category_many':'categorie',
'_ label_category_one':'categoria',
'_ label_corpus_many':'Corpus',
'_ label_corpus_one':'Corpus',
'_ label_lang_many':'Lingue',
'_ label_lang_one':'Lingua',
'_ link_atom':'flusso ATOM',
'_ link_csv':'Tabella di formato CSV',
'_ link_ods':'cartella formato ODS',
'_ link_permalink':'Link alla ricerca in corso',
'_ link_poweredby':'Ricerca realizzata con Scrutari',
'_ loading_pagination':'caricameto in corso',
'_ loading_search':'ricerca in corso',
'_ mode_help':'aiuto per le relazioni tra i termini di ricerca',
'_ mode_intersection':'e',
'_ mode_operation':'continuare',
'_ mode_title':'realzione tra i termini',
'_ mode_union':'o',
'_ or':'o',
'_ periode_help':'aiuto per limitare la ricerca a un periodo',
'_ periode_title':'limitato a un periodo',
'_ ponderation_date':'data',
'_ ponderation_help':'aiuto per la priorità di classificazione',
'_ ponderation_pertinence':'pertinenza',
'_ ponderation_title':'priorità di classificazione',
'_ result_none':'nessun risultato per la ricerca richiesta',
'_ stats_filter_short':'filtro',
'_ stats_filter_title':'numero di riferimenti sui quali si farà la ricreca grazie ai filtri attivi',
'_ stats_global_short':'totale',
'_ stats_global_title':'numero totale di rinvii nel motore di ricerca',
'_ stats_result_short':'risultato',
'_ stats_result_title':'numero di risultati corrispondenti ai criteri di ricerca',
'_ title_download':'recupero dellintegralità dei risultati',
'_ title_feed':'Abbonati alla ricerca :',
'_ title_filter_base':'filtri sulle basi',
'_ title_filter_category':'filtri sulle categorie',
'_ title_filter_corpus':'filtri sul corpo del testo',
'_ title_filter_lang':'filtri sulle lingue',
'_ title_history':'cronologia della ricerca',
'_ title_main':'ricerca scrutari',
'_ title_options':'opzioni di ricerca',
'_ title_share':'URL di ricerca :',
'_ title_subsearch':'ricerca sui risultati della ricerca in corso\u00A0:',
'_ wildchar_end':'«\u00A0*\u00A0» si aggiunge automaticamente alla fine delle parole',
'_ button_subsearch':'Filtrare',
'_ result_fitlerwarning':'Avviso: un filtro è attualmente attivo',
'_ help_mode.html':'<p> <strong>Ricerca semplice (Opzioni </strong><em><strong>e</strong></em><strong>&nbsp;/ </strong><em><strong>o</strong></em><strong>)&nbsp;:</strong>gli spazi servono a delimitare le parole della ricerca&nbsp;; se si selziona l&rsquo;opzione E il rinvio deve contenere tutte le parole della ricerca&nbsp;; se si seleziona l&rsquo;opzione O il rinvio deve possedere almeno una parola della ricerca. </p><p> L&rsquo;asterisco <kbd>*</kbd>&nbsp;indica una troncatura&nbsp;: </p><ul> <li> <p> <kbd>gov*</kbd>&nbsp;: tutte le parole che cominciano con &laquo;&nbsp;gov&nbsp;&raquo; </p> </li> <li> <p> <kbd>*logia</kbd>&nbsp;: tutte le parole che finiscono con &laquo;&nbsp;logia&nbsp;&raquo; </p> </li> <li> <p> <kbd>*eco*</kbd>&nbsp;: tutte le parole che contengono &laquo;&nbsp;eco&nbsp;&raquo; </p> </li> </ul><p> Se si seleziona l&rsquo;opzione &laquo;&nbsp;*&nbsp;&raquo; <em>aggiunto automaticamente alla fine della parola</em>, tutte le parole saranno da considerarsi con una troncatura a destra (fanno eccezione le parole tra virgolette). </p><p>Per indicare una sequenza di termini si usano le virgolette alte. All&rsquo;interno delle virgolette si possono indicare le troncature &nbsp;:</p><ul> <li> <p> <kbd>"agricoltura biologica"</kbd>&nbsp;: il termine agricoltura viene ignorato se non &egrave; seguito dall&rsquo;aggettivo biologica </p> </li> <li> <p> <kbd>"part"</kbd>: cerca solo la parola &laquo;&nbsp;part&nbsp;&raquo; anche se l&rsquo;opzione automatica asterisco a destra &egrave; attiva </p> </li> <li> <p> <kbd>"pol*pub*"</kbd>: cerca le sequenze che contengono una parola che comincia con &laquo;&nbsp;pol&nbsp;&raquo; seguita da una parola che comincia con &laquo;&nbsp;pub&nbsp;&raquo; </p> </li> </ul><p>Per finire valgono le seguenti regole&nbsp;:</p><ul> <li> <p>la ricerca non considera accenti e maiuscole</p> </li> <li> <p>i soli caratteri presi in considerazione sono le lettere e le cifre</p> </li> <li> <p>il motore non propone correzioni in caso di errori di ortografia</p> </li> <li> <p>il motore non considera le parole di una o due lettere, n&eacute; le parole di uso corrente ma senza significato proprio ( per esempio&nbsp;: gli, con, per )</p> </li> </ul><p> <br> <strong>Ricerca avanzata ( Opzione &laquo;&nbsp;Avanzata&nbsp;&raquo;)&nbsp;:</strong> la ricerca avanzata usa gli stessi principi della ricerca delle parole ( asterisco * per le troncature, virgolette per le sequenze) ma lo spazio non ha pi&ugrave; la funzione di separatore. Al suo posto si usano tre operatori&nbsp;: </p><ul> <li> <p> <kbd>&amp;&amp;</kbd>&nbsp;: E </p> </li> <li> <p> <kbd>||</kbd>&nbsp;: O </p> </li> <li> <p> <kbd>!</kbd>&nbsp;: No </p> </li> </ul><p>Per formare gruppi logici si fa ricorso alle parentesi.</p><p>Esempi&nbsp;:</p><ul> <li> <p> <kbd>agricoltura &amp;&amp; !biologica</kbd>&nbsp;: cerca i risultati che contengono la parola agricoltura non seguita dalla parola biologica </p> </li> <li> <p> <kbd>agricoltura &amp;&amp; !(biologico || paese)</kbd>&nbsp;: cerca i risultati che contengono la parola agricoltura et che non contengano la parola biologica o paese. </p> </li> </ul><p>Gli errori di sintassi (compreso l&rsquo;uso di caratteri non autorizzati che non siano cifre o lettere, e lo spazio per separare parole non virgolettate) provocano un messaggio di errore.</p><p>La ricerca di una parola pu&ograve; essere circoscritta a un campo preciso grazie a un prefisso. I prefissi sono&nbsp;:</p><ul> <li> <p> <em>titolo:</em> = solo tra i titoli </p> </li> <li> <p> <em>sottotitolo:</em> = solo tra i sottotitoli </p> </li> <li> <p> <em>parolachiave:</em> = solo tra le parole chiave </p> </li> <li> <p> <em>supplemento:</em> = tra i campi supplementari (campi complementari e attributi) </p> </li> </ul><p> qualsiasi nome di attributo seguito da&nbsp;<em>:</em> definito dal motore ( per sempio&nbsp;: <em>sct:authors</em>. Questo dipende dal motore che si usa.) </p><p>Esempi&nbsp;:</p><ul> <li> <p> <kbd>titolo:governance</kbd>&nbsp;: &laquo; governance &raquo;nel titolo </p> </li> <li> <p> <kbd>sct:authors:"Victor Hugo"</kbd>&nbsp;: Ricerca su l&rsquo;autore Victor Hugo (se l&rsquo;attributo <em>sct:authors</em> &egrave; definito correttamente dal motore) </p> </li> <li> <p> <kbd>titolo:pol* &amp;&amp; !sct:authors:Dupont</kbd>&nbsp;: risultato con, nel titolo, una parola che comincia con &laquo;&nbsp;pol&nbsp;&raquo; e il cui autore non sia Dupont. </p> </li> </ul><p> Guardare <a href="http://www.scrutari.net/dokuwiki/serveurscrutari:json:qsyntax" hreflang="fr" target="_blank" rel="external">Syntaxe d&rsquo;une recherche</a> sul sito di Scrutari </p> ',
'_ help_periode.html':'<p>Questo campo permette di conservare i risultati corrispondenti a un periodo preciso. Si possono dare come indicazioni&nbsp;:</p><ul> <li> <p> un anno&nbsp;: <kbd>2014</kbd> </p> </li> <li> <p> un periodo di svariati anni servendosi della barra obliqua&nbsp; / per separare le date di inizio e fine&nbsp;: <kbd>2000/2011</kbd> </p> </li> <li> <p> un mese&nbsp;: <kbd>2014-01</kbd> </p> </li> <li> <p> un periodo che cominci o finisca ad un mese a scelta&nbsp;: <kbd>2013/2014-04</kbd> </p> </li> <li> <p> periodi diversi, separati da due due barre verticali <kbd>||</kbd> (operatore &laquo; O &raquo;)&nbsp;: <kbd>2001/2002||2005||2012-11</kbd> </p> </li> </ul><p>Si noti che, spesso, l&rsquo;anno &egrave; la sola indicazione temporale di un risultato ; in alcune configurazioni, l&rsquo;indicazione del mese non ottiene nessun risultato.</p> ',
'_ help_ponderation.html':'<p>La configuarzione della priorit&agrave; nella classifica influisce sull&rsquo;ordine di apparizione dei risultati&nbsp;</p><ul> <li> <p> <strong>Classifica in base alla pertinenza&nbsp;:</strong> si da priorit&agrave; ai risultati che contengono i termini ricercati nei campi principali (titolo, sottotitolo) piuttosto che in quelli secondari. Tra questi hanno priorit&agrave; i risultati che contengono i termini ricercati tra le parole chiave. </p> <p>La data aiuta a classificare le note che hanno eguale pertinenza. Inoltre, nel caso di motori di ricerca con pi&ugrave; basi, la classifica pu&ograve; essere leggermente alterata per evitare una lunga lista di rinvii proveniente da una sola base.</p> </li> <li> <p> <strong>Classifica per ordine cronologico&nbsp;:</strong> i risultati pi&ugrave; recenti occupano i primi posti, quando le date sono troppo ravvicinate si fa ricorso al criterio della pertinenza ; i risultati non datati sono collocati alla fine </p> </li> </ul> '
};

View File

@ -0,0 +1,80 @@
var SCRUTARI_L10N = {
lang:'pt',
'_ advice_complexity':'Descubra se eles não podem simplificar a busca',
'_ and':'E',
'_ button_check_all':'Marcar tudo',
'_ button_close':'Fechar',
'_ button_filter_off':'Desativar o filtro',
'_ button_filter_on':'Ativar o filtro',
'_ button_parameters':'Filtros e opções',
'_ button_remove':'Eliminar',
'_ button_resubmit':'Relançar a busca',
'_ button_submit':'Busca em',
'_ button_uncheck_all':'Desmarcar tudo',
'_ colon':':',
'_ error.empty.parametervalue':'Erro : a busca consiste apenas em caracteres não significativos !',
'_ error.empty.searchtoken':'Termo de busca vazio',
'_ error.unknown.attribute':'Atributo desconhecido',
'_ error.unknown.fichesearchresult':'Número de busca desconhecido',
'_ error.unknown.operandtype':'Tipo de operando desconhecido',
'_ error.unknown.scope':'Campo desconhecido',
'_ error.wrong.missingword':'Palavra que falta',
'_ error.wrong.notletterordigitcharacter':'Caráter incorreto',
'_ error.wrong.operand_add':'Operando mal treinado',
'_ error.wrong.operand_date':'Data incorretamente formada',
'_ error.wrong.operationsyntax':'Erro de sintaxe na busca avançada',
'_ error.wrong.unclosedquote':'Vírgulas invertidas incorretamente fechadas',
'_ error.wrong.unexpectedspace':'Espaço inesperado',
'_ fiche_motscles_many':'Palavras-chave:',
'_ fiche_motscles_one':'Palavra-chave:',
'_ filter_off':'[desabilitado]',
'_ filter_on':'[ativado]',
'_ label_base_many':'Bases',
'_ label_base_one':'Base',
'_ label_category_many':'Categorias',
'_ label_category_one':'Categoria',
'_ label_corpus_many':'Corpus',
'_ label_corpus_one':'Corpus',
'_ label_lang_many':'Idiomas',
'_ label_lang_one':'Idioma',
'_ link_atom':'Fluxo de sindicação ATOM',
'_ link_csv':'Tabela do formato CSV',
'_ link_ods':'Modelo no formato ODS',
'_ link_permalink':'Link para a busca atual',
'_ link_poweredby':'Busca com Scrutari',
'_ loading_pagination':'Em carregamento',
'_ loading_search':'Busca em progresso...',
'_ mode_help':'Ajuda para as relações entre termos de busca',
'_ mode_intersection':'E',
'_ mode_operation':'Avançada',
'_ mode_title':'Relação entre os termos',
'_ mode_union':'Ou',
'_ or':'Ou',
'_ periode_help':'Ajuda para a limitação a um período',
'_ periode_title':'Limitado a um período',
'_ ponderation_date':'Data',
'_ ponderation_help':'Ajuda de classificação de prioridades',
'_ ponderation_pertinence':'Relevância',
'_ ponderation_title':'Classificação de prioridades',
'_ result_none':'Nenhum resultado para a busca solicitada',
'_ stats_filter_short':'Filtro\u00A0:',
'_ stats_filter_title':'Número de referências a serem pesquisadas pelos filtros ativos',
'_ stats_global_short':'Total\u00A0:',
'_ stats_global_title':'Número total de referências no mecanismo de busca',
'_ stats_result_short':'Resultado\u00A0:',
'_ stats_result_title':'Número de referências que atendem aos critérios de busca',
'_ title_download':'Recuperação da integralidade das referências',
'_ title_feed':'Assine a busca :',
'_ title_filter_base':'Aplicar filtro em bases de dados',
'_ title_filter_category':'Aplicar filtro nas categorias',
'_ title_filter_corpus':'Aplicar filtro nos corpus',
'_ title_filter_lang':'Aplicar filtro nas idiomas',
'_ title_history':'Histórico da busca',
'_ title_main':'Busca Scrutari',
'_ title_options':'Opções de busca',
'_ title_share':'Compartilhar a busca:',
'_ title_subsearch':'Pesquisa sobre os resultados da busca atual:',
'_ wildchar_end':'«\u202F*\u202F» acrescentado automaticamente no final das palavras',
'_ button_subsearch':'Filtrar',
'_ result_fitlerwarning':'Lembrar: atualmente há um filtro ativo'
};

View File

@ -0,0 +1,145 @@
/*****************************************************
* .none-input
******************************************************/
.none-input-Container {
}
.none-input-Parameters {
}
.none-input-Search {
}
.none-input-Submit {
}
/*****************************************************
* .none-option
******************************************************/
.none-option-Help {
}
.none-option-Legend {
}
.none-option-Title {
}
/*****************************************************
* .none-overlay
******************************************************/
.none-overlay-Blocker {
background-color: rgba(0,0,0, 0.75);
}
.none-overlay-Close {
background-color: #000;
color: #fff;
}
.none-overlay-Close:hover {
background-color: #ddd;
}
.none-overlay-Content {
}
.none-overlay-Dialog {
background-color: #fff;
box-shadow: 0 0 10px #000;
}
.none-overlay-Footer {
}
.none-overlay-Header {
border-bottom-color: #ddd;
background-color: #f5f5f5;
}
.none-overlay-Waiting {
}
/*****************************************************
* .none-panel
******************************************************/
.none-panel-ButtonGroup {
}
.none-panel-Columns {
}
.none-panel-Header {
border-bottom-color: #ddd;
background-color: #f5f5f5;
}
.none-panel-ListBody {
}
.none-panel-Section {
border-color: #ddd;
}
.none-panel-Title {
}
.none-panel-Toolbar {
}
/*****************************************************
* .none-result
******************************************************/
.none-result-Container {
}
.none-result-FicheDisplay {
}
.none-result-Sidebar {
}
/*****************************************************
* .scrutari
******************************************************/
.scrutari-Mark {
background-color: #ffe9e0;
}
.scrutari-fiche-Link {
border: 0;
}
.scrutari-fiche-Titre {
font-size: 1.3rem;
}
.scrutari-fiche-Titre .num_emission {
font-size: 1.4rem;
margin-right: 0.5rem;
padding: 0.2rem;
width: inherit;
}
.scrutari-history-Active {
background-color: #ffe9e0;
}
.scrutari-history-Load {
background-color: #ffe9e0;
font-family: 'Lato',sans-serif;
font-weight: 400;
line-height: 1.6;
color: #005184;
text-rendering: geometricPrecision;
}

View File

@ -0,0 +1,441 @@
/*****************************************************
* .scrutari
******************************************************/
.scrutari-Hidden {
display: none !important;
}
.scrutari-Disabled {
color: grey;
}
.scrutari-Mark {
background-color: #e9e9e9;
}
.scrutari-On {
}
/*****************************************************
* .scrutari-area
******************************************************/
.scrutari-area-Parameters {
margin-top: 5px;
margin-bottom: 25px;
}
.scrutari-area-Result {
margin-bottom: 10px;
}
.scrutari-area-Stats {
margin-top: 15px;
margin-bottom: 15px;
}
.scrutari-area-Title {
}
.scrutari-area-Resubmit {
margin-top: 5px;
text-align: right;
}
/*****************************************************
* .scrutari-category
******************************************************/
.scrutari-category-Tab {
display: inline-block;
padding-left: 4px;
padding-right: 4px;
cursor: pointer;
}
.scrutari-category-Tab:hover {
background-color: #e9e9e9;
}
.scrutari-category-Tab.scrutari-On {
cursor: auto;
background-color: #e9e9e9;
}
/*****************************************************
* .scrutari-fiche
******************************************************/
.scrutari-fiche-Attribute {
margin-left: 15px;
font-size: 1.0em;
margin-bottom: 2px;
}
.scrutari-fiche-AttributeBlock {
margin-bottom: 2px;
}
.scrutari-fiche-AttributeTitle {
margin-left: 15px;
font-size: 1.0em;
margin-bottom: 0;
}
.scrutari-fiche-AttributeValue {
margin-left: 30px;
font-size: 1.0em;
margin-bottom: 0;
}
.scrutari-fiche-AttributeValues {
}
.scrutari-fiche-AttributeValue::before {
content: '… ';
}
.scrutari-fiche-AttributeValue::after {
content: ' …';
}
.scrutari-fiche-Block {
margin-bottom: 15px;
padding-left: 3px;
}
.scrutari-fiche-Body {
margin-left: 21px;
}
.scrutari-fiche-Body.scrutari-fiche-ThumbnailBody {
margin-left: 110px;
}
.scrutari-fiche-Body::after {
content: '';
display: block;
clear: left;
}
.scrutari-fiche-Complement {
margin-left: 15px;
font-size: 1.0em;
margin-bottom: 2px;
}
.scrutari-fiche-Icon {
float: left;
margin-top: 0;
}
.scrutari-fiche-Motcle {
font-variant: small-caps;
font-size: 1.0em;
margin-left: 15px;
margin-bottom: 2px;
}
.scrutari-fiche-Soustitre {
margin-bottom: 3px;
font-style: italic;
margin-left: 10px;
}
.scrutari-fiche-Thumbnail {
float: left;
margin-top: 0;
position: relative;
}
.scrutari-fiche-ThumbnailImg {
max-width: 100px;
}
.scrutari-fiche-ThumbnailIcon {
display: block;
position: absolute;
top: 0;
left: 0;
border-right-color: #fff;
border-right-style: solid;
border-right-width: 3px;
border-bottom-color: #fff;
border-bottom-style: solid;
border-bottom-width: 2px;
background-color: #fff;
border-bottom-right-radius: 2px;
z-index: 100;
}
.scrutari-fiche-Titre {
font-size: 1.1em;
margin-bottom: 4px;
margin-left: 0;
margin-top: 0;
}
.scrutari-fiche-Year {
font-size: 1.0em;
margin-bottom: 3px;
font-style: italic;
margin-left: 15px;
}
/*****************************************************
* .scrutari-history
******************************************************/
.scrutari-history-Active {
background-color: #e9e9e9;
}
.scrutari-history-Block {
padding: 2px;
margin-top: 6px;
margin-left: 6px;
word-wrap: break-word;
}
.scrutari-history-Load {
}
.scrutari-history-Remove {
}
.scrutari-history-Search {
}
.scrutari-history-Subsearch {
margin-left: 10px;
}
/*****************************************************
* .scrutari-icon
******************************************************/
.scrutari-icon-Loader {
background-image: url("images/ajax-loader.gif");
position: relative;
display: inline-block;
width: 16px;
height: 16px;
}
.scrutari-icon-Logo {
background-image: url("images/logo-scrutari.png");
position: relative;
bottom: -10px;
display: inline-block;
width: 32px;
height: 32px;
}
/*****************************************************
* .scrutari-input
******************************************************/
.scrutari-input-Text {
border-bottom-left-radius: 4px;
border-top-left-radius: 4px;
padding: 2px;
border-style: solid;
border-width: 1px;
border-color: #dfdfdf;
border-top-color: #a0a0a0;
border-left-color: #a0a0a0;
}
/*****************************************************
* .scrutari-label
******************************************************/
.scrutari-label-Attribute {
font-style: italic;
}
.scrutari-label-Complement {
font-style: italic;
}
.scrutari-label-Motcle {
font-style: italic;
font-variant: normal;
}
/*****************************************************
* .scrutari-links
******************************************************/
.scrutari-links-ButtonLike {
display: inline-block;
padding-top: 2px;
padding-right: 5px;
padding-left: 5px;
border-radius: 3px;
border-style: solid;
border-width: 1px;
border-color: #a0a0a0;
margin-right: 5px;
color: #515151;
}
.scrutari-links-ButtonLike:visited {
color: #515151;
}
.scrutari-links-ButtonLike:hover {
background-color: #dfdfdf;
color: #515151;
text-decoration: none;
}
.scrutari-links-Permalink {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.scrutari-links-Permalink:hover {
white-space: normal;
overflow-wrap: break-word;
}
.scrutari-links-Poweredby {
font-size: 0.8em;
text-align: center;
margin-top: 20px;
}
.scrutari-links-Title {
margin-top: 20px;
margin-bottom: 5px;
word-wrap: break-word;
font-weight: bold;
}
/*****************************************************
* .scrutari-pagination
******************************************************/
.scrutari-pagination-List {
margin-top: 15px;
margin-bottom: 15px;
}
.scrutari-pagination-Tab, .scrutari-pagination-Current, .scrutari-pagination-Disabled {
display: inline-block;
padding-left: 4px;
padding-right: 4px;
}
.scrutari-pagination-Tab {
cursor: pointer;
}
.scrutari-pagination-Current, .scrutari-pagination-Tab:hover {
background-color: #e9e9e9;
}
/*****************************************************
* .scrutari-panel
******************************************************/
.scrutari-panel-Active {
color: green;
}
.scrutari-panel-ColumnDisabled {
opacity: 0.5;
}
.scrutari-panel-Excluded {
text-decoration: line-through;
color: grey;
}
.scrutari-panel-Icon {
vertical-align: baseline;
}
/*****************************************************
* .scrutari-stats
******************************************************/
.scrutari-stats-Table {
margin-bottom: 5px;
}
.scrutari-stats-Abbr {
text-decoration: none;
}
.scrutari-stats-Count {
font-family: monospace;
font-weight: bold;
text-align: right;
}
.scrutari-stats-Filter {
color: green;
}
.scrutari-stats-None {
color: red;
}
.scrutari-stats-Titles {
font-size: 0.9em;
padding-left: 10px;
}
.scrutari-stats-Cell {
vertical-align: baseline;
}