Version 1.4alpha16 de ScrutariJs

This commit is contained in:
Vincent Calame 2024-05-05 03:55:03 +02:00 committed by root
parent bffdc7ec05
commit 0c0f528138
4 changed files with 549 additions and 438 deletions

View File

@ -54,7 +54,7 @@ Structure du client
<summary class="lav-details-Summary">Option de recherche avancée</summary>
<div class="lav-details-Body">
<p>
<button data-scrutari-button="showModal" data-scrutari-target="help_relation" type="button" title="Aide sur les relations">
<button data-scrutari-action="showModal" data-scrutari-target="help_relation" type="button" title="Aide sur les relations">
<i class="fas fa-question-circle"></i>
</button>
<span>Relations :</span>
@ -63,7 +63,7 @@ Structure du client
<label><input type="radio" name="q-mode" value="operation"> Avancée</label>
</p>
<p>
<button data-scrutari-button="showModal" data-scrutari-target="help_ponderation" type="button" title="Aide sur la priorité">
<button data-scrutari-action="showModal" data-scrutari-target="help_ponderation" type="button" title="Aide sur la priorité">
<i class="fas fa-question-circle"></i>
</button>
<span>Priorité :</span>
@ -71,14 +71,14 @@ Structure du client
<label><input type="radio" name="ponderation" value="date"> Date</label>
</p>
<p>
<button data-scrutari-button="showModal" data-scrutari-target="help_periode" type="button" title="Aide sur la période">
<button data-scrutari-action="showModal" data-scrutari-target="help_periode" type="button" title="Aide sur la période">
<i class="fas fa-question-circle"></i>
</button>
<span>Période :</span>
<input type="text" class="lav-details-Input" name="periode" value="">
</p>
<p>
<button data-scrutari-button="showModal" data-scrutari-target="help_elargir" type="button" title="Aide sur « élargir »">
<button data-scrutari-action="showModal" data-scrutari-target="help_elargir" type="button" title="Aide sur « élargir »">
<i class="fas fa-question-circle"></i>
</button>
<span>Élargir :</span>
@ -112,14 +112,14 @@ Structure du client
<div data-scrutari-block="historyList" class="lav-history-List">
</div>
<span class="lav-history-Clear">
<button data-scrutari-button="clearHistory" title="Vider lhistorique"><i class="fas fa-trash"></i></button>
<button data-scrutari-action="clearHistory" title="Vider lhistorique"><i class="fas fa-trash"></i></button>
</span>
</div>
<!-- /main.area-result.result-history -->
<!-- main.area-result.result-links -->
<div class="scrutari-Hidden" data-scrutari-hidden="empty">
<p>Partager votre recherche :
<a href="#" data-scrutari-link="permalink" data-scrutari-button="copyPermalink" target="_blank" class="btn taille80 blanc">Copier lURL</a>
<a href="#" data-scrutari-link="permalink" data-scrutari-action="copyPermalink" target="_blank" class="btn taille80 blanc">Copier lURL</a>
<a href="#" data-scrutari-link="csv" target="_blank" class="btn taille80 blanc">Télécharger (CSV)</a>
<a href="#" data-scrutari-link="ods" target="_blank" class="btn taille80 blanc">Télécharger (ODS)</a>
<a href="#" data-scrutari-link="atom" target="_blank" class="btn taille80 blanc">Sabonner (Atom)</a>

View File

@ -26,8 +26,8 @@ Scrutari.Lav.DEV = false;
/**
* Fonction utilitaire de formatage de la séquence de recherche pour l'affichage
*/
Scrutari.Lav.formatSearchSequence = function (client, scrutariResult) {
var q = scrutariResult.getQ();
Scrutari.Lav.formatSearchSequence = function (client, searchUnit) {
var q = searchUnit.getQ();
q = q.replace(/\&\&/g, '@%et%@');
q = q.replace(/\|\|/g, '@%ou%@');
q = q.replace(/\*/g, '@%*%@');
@ -53,7 +53,7 @@ Scrutari.Lav.init = function (client) {
}));
}
client.initForms();
client.initButtons();
client.initActions();
client.initChangeListeners();
client.checkInitialQuery();
@ -83,20 +83,20 @@ Scrutari.Lav.init = function (client) {
/**
* Fonction d'enrichissement du processus d'affichage des résultats.
* la méthode addPaginisations de la classe Scrutari.Process est remplacée pour que trois paginations
* la méthode addPaginisations de la classe Scrutari.SearchUnit est remplacée pour que trois paginations
* soient créés : celle, normale, de toutes les fiches et une par site
* Remplace Scrutari.DefaultUi.newResultProcess
* Remplace Scrutari.DefaultUi.newSearchDisplay
*/
Scrutari.Lav.newResultProcess = function (client, scrutariResult, searchOrigin) {
var resultProcess = new Scrutari.Process(client, scrutariResult, searchOrigin);
resultProcess.addPaginations = function ($paginationBlock) {
Scrutari.Lav.newSearchDisplay = function (client, searchUnit) {
var searchDisplay = new Scrutari.SearchDisplay(client, searchUnit);
searchDisplay.addPaginations = function ($paginationBlock) {
_addPaginations($paginationBlock);
};
var libreavousArray = new Array();
var librealireArray = new Array();
var length = scrutariResult.ficheGroupArray.length;
var length = searchUnit.ficheGroupArray.length;
if (length > 0) {
for(let fiche of scrutariResult.ficheGroupArray[0].ficheArray) {
for(let fiche of searchUnit.ficheGroupArray[0].ficheArray) {
if (fiche.codecorpus === 1222) {
libreavousArray.push(fiche);
} else {
@ -108,28 +108,23 @@ Scrutari.Lav.newResultProcess = function (client, scrutariResult, searchOrigin)
libreavous: libreavousArray,
librealire: librealireArray
};
return resultProcess;
return searchDisplay;
function _addPaginations($paginationBlock) {
$paginationBlock.html(client.render("pagination_lav", {array: client.lav.paginationArray}));
client.$count("total-tous", 'update', scrutariResult.getFicheCount());
client.$count("total-tous", 'update', searchUnit.getFicheCount());
for(let config of client.lav.paginationArray) {
let pagination = new Scrutari.Pagination(client, config.name);
let pagination;
if (config.name) {
client.$count("total-" + config.name, 'update', arrays[config.name].length);
pagination.getPaginationFicheArray = function (scrutariResult, paginationNumber) {
return _getPaginationFicheArray(config.name, pagination.paginationLength, paginationNumber);
};
pagination = new Scrutari.Pagination(client, arrays[config.name], config.name);
} else {
pagination = new Scrutari.Pagination(client, searchUnit);
}
client.putPagination(config.name, pagination);
pagination.change(1);
}
}
function _getPaginationFicheArray(name, paginationLength, paginationNumber) {
let array = arrays[name];
return Scrutari.Utils.extractFicheArray(array, paginationLength, paginationNumber);
}
};
/**
@ -200,7 +195,7 @@ Scrutari.Lav.getInitOptions = function () {
historyAtLast: true,
ignoreList: "area-title,area-stats,modal-*", //Utilisé en mode développement
hooks: {
completeFiche : function (scrutariResult, fiche, categoryName) { //Extrait le numéro du titre
completeFiche : function (searchUnit, fiche, categoryName) { //Extrait le numéro du titre
let start = fiche.mtitre[0];
let numero = "";
if (start.startsWith("#")) {
@ -217,14 +212,14 @@ Scrutari.Lav.getInitOptions = function () {
uiInit: Scrutari.Lav.init,
ignoreElement: null,
isFilterEnable: null,
mainsearchResultCallback: function (client, scrutariResult) {
$("#scrutari_lav_sequence").html(Scrutari.Lav.formatSearchSequence(client, scrutariResult));
mainsearchCallback: function (client, searchUnit) {
$("#scrutari_lav_sequence").html(Scrutari.Lav.formatSearchSequence(client, searchUnit));
},
mainsearchErrorCallback: null,
subsearchResultCallback: null,
subsearchCallback: null,
subsearchErrorCallback: null,
initFilterByQuery: null,
newResultProcess: Scrutari.Lav.newResultProcess,
newSearchDisplay: Scrutari.Lav.newSearchDisplay,
startLoading: null,
endLoading: null,
actionHandler: Scrutari.Lav.actionHandler,

View File

@ -1,7 +1,7 @@
var SCRUTARI_HTML = {
_name:'default',
structure:{
'area-input':'<div data-scrutari-area="input" class="scrutari-area-Input">\n <div>\n <input type="search" size="40" name="q" value="">\n <button type="submit">_ button_submit</button>\n </div>\n <button type="button" data-scrutari-button="parametersDisplay" class="scrutari-Hidden" data-scrutari-state="off">\n _ button_parameters\n </button>\n</div>',
'area-input':'<div data-scrutari-area="input" class="scrutari-area-Input">\n <div>\n <input type="search" size="40" name="q" value="">\n <button type="submit">_ button_submit</button>\n </div>\n <button type="button" data-scrutari-action="parametersDisplay" class="scrutari-Hidden" data-scrutari-state="off">\n _ button_parameters\n </button>\n</div>',
'area-parameters':'<div data-scrutari-area="parameters" class="scrutari-area-Parameters scrutari-Hidden">\n {{panel-options}}\n {{panel-corpus}}\n {{panel-base}}\n {{panel-lang}}\n {{panel-category}}\n <div class="scrutari-area-Resubmit">\n <button type="submit">_ button_resubmit</button>\n </div>\n</div>',
'area-poweredby':'<div class="scrutari-area-Poweredby scrutari-Hidden" data-scrutari-hidden="empty">\n <p>\n <a href="http://www.scrutari.net" target="_blank">\n <span class="scrutari-icon-Logo"></span> _ link_poweredby\n </a>\n </p>\n</div>',
'area-result':'<div data-scrutari-area="result" class="scrutari-area-Result">\n <div data-scrutari-block="paginationBlock"></div>\n <div>\n {{result-links}}\n </div>\n <div>\n {{result-history}}\n </div>\n <div>\n {{result-subsearch}}\n </div>\n</div>',
@ -13,11 +13,11 @@ structure:{
'modal-help_periode':'<aside class="scrutari-Hidden" data-scrutari-modal="help_periode" aria-hidden="true">\n <header>\n _ periode_help\n </header>\n <div>\n _ help_periode.html\n </div>\n</aside>',
'modal-help_ponderation':'<aside class="scrutari-Hidden" data-scrutari-modal="help_ponderation" aria-hidden="true">\n <header>\n _ ponderation_help\n </header>\n <div>\n _ help_ponderation.html\n </div>\n</aside>',
'modal-loading':'<aside class="scrutari-Hidden" data-scrutari-modal="loading" aria-hidden="true">\n <div>\n <span class="scrutari-icon-Loader"></span> _ loading_search\n </div>\n</aside>',
'panel-base':'<details class="scrutari-Hidden" data-scrutari-panel="base">\n <summary>\n _ title_filter_base <span data-scrutari-label="baseFilter" class="scrutari-panel-State scrutari-Disabled" data-scrutari-alternate="_ filter_on">_ filter_off</span>\n </summary>\n <div>\n <div class="scrutari-panel-Toolbar">\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-button="enablePanel" data-scrutari-target="base" data-scrutari-state="off">\n <span data-scrutari-alternate="_ button_filter_off">_ button_filter_on</span>\n </button>\n </span>\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-button="checkAll" data-scrutari-target="base" disabled>_ button_check_all</button>\n <button type="button" data-scrutari-button="uncheckAll" data-scrutari-target="base" disabled>_ button_uncheck_all</button>\n </span>\n </div>\n <div class="scrutari-panel-Columns scrutari-Disabled" data-scrutari-block="columnsBlock-base">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n</details>',
'panel-category':'<details class="scrutari-Hidden" data-scrutari-panel="category">\n <summary>\n _ title_filter_category <span data-scrutari-label="categoryFilter" class="scrutari-panel-State scrutari-Disabled" data-scrutari-alternate="_ filter_on">_ filter_off</span>\n </summary>\n <div>\n <div class="scrutari-panel-Toolbar">\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-button="enablePanel" data-scrutari-target="category" data-scrutari-state="off">\n <span data-scrutari-alternate="_ button_filter_off">_ button_filter_on</span>\n </button>\n </span>\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-button="checkAll" data-scrutari-target="category" disabled>_ button_check_all</button>\n <button type="button" data-scrutari-button="uncheckAll" data-scrutari-target="category" disabled>_ button_uncheck_all</button>\n </span>\n </div>\n <div class="scrutari-panel-Columns scrutari-Disabled" data-scrutari-block="columnsBlock-category">\n <div></div>\n <div></div>\n <div></div>\n <div></div> \n </div>\n </div>\n</details>',
'panel-corpus':'<details class="scrutari-Hidden" data-scrutari-panel="corpus">\n <summary>\n _ title_filter_corpus <span data-scrutari-label="corpusFilter" class="scrutari-panel-State scrutari-Disabled" data-scrutari-alternate="_ filter_on">_ filter_off</span>\n </summary>\n <div>\n <div class="scrutari-panel-Toolbar">\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-button="enablePanel" data-scrutari-target="corpus" data-scrutari-state="off">\n <span data-scrutari-alternate="_ button_filter_off">_ button_filter_on</span>\n </button>\n </span>\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-button="checkAll" data-scrutari-target="corpus" disabled>_ button_check_all</button>\n <button type="button" data-scrutari-button="uncheckAll" data-scrutari-target="corpus" disabled>_ button_uncheck_all</button>\n </span>\n </div>\n <div class="scrutari-panel-Columns scrutari-Disabled" data-scrutari-block="columnsBlock-corpus">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n</details>',
'panel-lang':'<details class="scrutari-Hidden" data-scrutari-panel="lang">\n <summary>\n _ title_filter_lang <span data-scrutari-label="langFilter" class="scrutari-panel-State scrutari-Disabled" data-scrutari-alternate="_ filter_on">_ filter_off</span>\n </summary>\n <div>\n <div class="scrutari-panel-Toolbar">\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-button="enablePanel" data-scrutari-target="lang" data-scrutari-state="off">\n <span data-scrutari-alternate="_ button_filter_off">_ button_filter_on</span>\n </button>\n </span>\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-button="checkAll" data-scrutari-target="lang" disabled>_ button_check_all</button>\n <button type="button" data-scrutari-button="uncheckAll" data-scrutari-target="lang" disabled>_ button_uncheck_all</button>\n </span>\n </div>\n <div class="scrutari-panel-Columns scrutari-Disabled" data-scrutari-block="columnsBlock-lang">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n</details>',
'panel-options':'<details data-scrutari-panel="options">\n <summary>\n _ title_options\n </summary>\n <div>\n <div class="scrutari-panel-Columns">\n <div>\n <p><span>_ mode_title</span><button data-scrutari-button="showModal" data-scrutari-target="help_mode" type="button" title="_ mode_help">?</button></p>\n <div>\n <label><input type="radio" name="q-mode" value="intersection" checked> _ mode_intersection</label>\n <label><input type="radio" name="q-mode" value="union"> _ mode_union</label>\n <label><input type="radio" name="q-mode" value="operation"> _ mode_operation</label>\n <label><input type="checkbox" name="wildchar" value="end" checked> _ wildchar_end</label>\n </div>\n </div>\n <div>\n <p><span>_ ponderation_title</span><button data-scrutari-button="showModal" data-scrutari-target="help_ponderation" type="button" title="_ ponderation_help">?</button></p>\n <div>\n <label><input type="radio" name="ponderation" value="pertinence" checked> _ ponderation_pertinence</label>\n <label><input type="radio" name="ponderation" value="date"> _ ponderation_date</label>\n </div>\n </div>\n <div>\n <p><span>_ periode_title</span><button data-scrutari-button="showModal" data-scrutari-target="help_periode" type="button" title="_ periode_help">?</button></p>\n <div>\n <input type="text" name="periode" value="" size="20">\n </div>\n </div>\n </div>\n </div>\n</details>',
'panel-base':'<details class="scrutari-Hidden" data-scrutari-panel="base">\n <summary>\n _ title_filter_base <span data-scrutari-label="baseFilter" class="scrutari-panel-State scrutari-Disabled" data-scrutari-alternate="_ filter_on">_ filter_off</span>\n </summary>\n <div>\n <div class="scrutari-panel-Toolbar">\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-action="enablePanel" data-scrutari-target="base" data-scrutari-state="off">\n <span data-scrutari-alternate="_ button_filter_off">_ button_filter_on</span>\n </button>\n </span>\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-action="checkAll" data-scrutari-target="base" disabled>_ button_check_all</button>\n <button type="button" data-scrutari-action="uncheckAll" data-scrutari-target="base" disabled>_ button_uncheck_all</button>\n </span>\n </div>\n <div class="scrutari-panel-Columns scrutari-Disabled" data-scrutari-block="columnsBlock-base">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n</details>',
'panel-category':'<details class="scrutari-Hidden" data-scrutari-panel="category">\n <summary>\n _ title_filter_category <span data-scrutari-label="categoryFilter" class="scrutari-panel-State scrutari-Disabled" data-scrutari-alternate="_ filter_on">_ filter_off</span>\n </summary>\n <div>\n <div class="scrutari-panel-Toolbar">\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-action="enablePanel" data-scrutari-target="category" data-scrutari-state="off">\n <span data-scrutari-alternate="_ button_filter_off">_ button_filter_on</span>\n </button>\n </span>\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-action="checkAll" data-scrutari-target="category" disabled>_ button_check_all</button>\n <button type="button" data-scrutari-action="uncheckAll" data-scrutari-target="category" disabled>_ button_uncheck_all</button>\n </span>\n </div>\n <div class="scrutari-panel-Columns scrutari-Disabled" data-scrutari-block="columnsBlock-category">\n <div></div>\n <div></div>\n <div></div>\n <div></div> \n </div>\n </div>\n</details>',
'panel-corpus':'<details class="scrutari-Hidden" data-scrutari-panel="corpus">\n <summary>\n _ title_filter_corpus <span data-scrutari-label="corpusFilter" class="scrutari-panel-State scrutari-Disabled" data-scrutari-alternate="_ filter_on">_ filter_off</span>\n </summary>\n <div>\n <div class="scrutari-panel-Toolbar">\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-action="enablePanel" data-scrutari-target="corpus" data-scrutari-state="off">\n <span data-scrutari-alternate="_ button_filter_off">_ button_filter_on</span>\n </button>\n </span>\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-action="checkAll" data-scrutari-target="corpus" disabled>_ button_check_all</button>\n <button type="button" data-scrutari-action="uncheckAll" data-scrutari-target="corpus" disabled>_ button_uncheck_all</button>\n </span>\n </div>\n <div class="scrutari-panel-Columns scrutari-Disabled" data-scrutari-block="columnsBlock-corpus">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n</details>',
'panel-lang':'<details class="scrutari-Hidden" data-scrutari-panel="lang">\n <summary>\n _ title_filter_lang <span data-scrutari-label="langFilter" class="scrutari-panel-State scrutari-Disabled" data-scrutari-alternate="_ filter_on">_ filter_off</span>\n </summary>\n <div>\n <div class="scrutari-panel-Toolbar">\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-action="enablePanel" data-scrutari-target="lang" data-scrutari-state="off">\n <span data-scrutari-alternate="_ button_filter_off">_ button_filter_on</span>\n </button>\n </span>\n <span class="scrutari-panel-ButtonGroup">\n <button type="button" data-scrutari-action="checkAll" data-scrutari-target="lang" disabled>_ button_check_all</button>\n <button type="button" data-scrutari-action="uncheckAll" data-scrutari-target="lang" disabled>_ button_uncheck_all</button>\n </span>\n </div>\n <div class="scrutari-panel-Columns scrutari-Disabled" data-scrutari-block="columnsBlock-lang">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n</details>',
'panel-options':'<details data-scrutari-panel="options">\n <summary>\n _ title_options\n </summary>\n <div>\n <div class="scrutari-panel-Columns">\n <div>\n <p><span>_ mode_title</span><button data-scrutari-action="showModal" data-scrutari-target="help_mode" type="button" title="_ mode_help">?</button></p>\n <div>\n <label><input type="radio" name="q-mode" value="intersection" checked> _ mode_intersection</label>\n <label><input type="radio" name="q-mode" value="union"> _ mode_union</label>\n <label><input type="radio" name="q-mode" value="operation"> _ mode_operation</label>\n <label><input type="checkbox" name="wildchar" value="end" checked> _ wildchar_end</label>\n </div>\n </div>\n <div>\n <p><span>_ ponderation_title</span><button data-scrutari-action="showModal" data-scrutari-target="help_ponderation" type="button" title="_ ponderation_help">?</button></p>\n <div>\n <label><input type="radio" name="ponderation" value="pertinence" checked> _ ponderation_pertinence</label>\n <label><input type="radio" name="ponderation" value="date"> _ ponderation_date</label>\n </div>\n </div>\n <div>\n <p><span>_ periode_title</span><button data-scrutari-action="showModal" data-scrutari-target="help_periode" type="button" title="_ periode_help">?</button></p>\n <div>\n <input type="text" name="periode" value="" size="20">\n </div>\n </div>\n </div>\n </div>\n</details>',
'result-history':'<div class="scrutari-Hidden" data-scrutari-hidden="start">\n <p class="scrutari-links-Title">_ title_history</p>\n <div data-scrutari-block="historyList">\n </div>\n</div>',
'result-links':'<div class="scrutari-Hidden" data-scrutari-hidden="empty">\n <p class="scrutari-links-Title">_ title_share</p>\n <p class="scrutari-links-Permalink">\n <a href="#" data-scrutari-link="permalink" target="_blank" title="_ link_permalink" >\n <span data-scrutari-label="permalinkValue"></span>\n </a>\n </p>\n <p class="scrutari-links-Title">_ title_download</p>\n <p>\n <a href="#" data-scrutari-link="ods" target="_blank" title="_ link_ods" class="scrutari-links-ButtonLike">ods</a>\n <a href="#" data-scrutari-link="csv" target="_blank" title="_ link_csv" class="scrutari-links-ButtonLike">csv</a>\n </p>\n <p class="scrutari-links-Title">_ title_feed</p>\n <p>\n <a href="#" data-scrutari-link="atom" target="_blank" title="_ link_atom" class="scrutari-links-ButtonLike">atom</a>\n </p>\n</div>',
'result-subsearch':'<div class="scrutari-Hidden" data-scrutari-hidden="threshold">\n <form data-scrutari-form="subsearch" role="search">\n <p class="scrutari-subsearch-Title">_ title_subsearch</p>\n <div class="scrutari-subsearch-Form">\n <input type="search" size="40" name="q">\n <button type="submit">_ button_subsearch</button>\n </div>\n </form>\n</div>',
@ -41,12 +41,12 @@ templates:{
'fiche_primaryattributearray':'{{if _primaryAttributeArray}}\n {{for _primaryAttributeArray tmpl="fiche_attribute" /}}\n{{/if}}',
'fiche_secondaryattributearray':'{{if _secondaryAttributeArray}}\n{{for _secondaryAttributeArray tmpl="fiche_attribute" /}}\n{{/if}}',
'fiche_year':'{{if year}}\n <p class="scrutari-fiche-Year">\n {{:year}}\n </p>\n{{/if}}',
'history':'<div data-scrutari-block="{{:name}}" class="scrutari-history-Block scrutari-history-Active">\n <div class="scrutari-history-Search">\n <button data-scrutari-button="loadHistory" data-scrutari-target="{{:name}}" class="scrutari-history-Load" {{if fichestat == 0}}disabled="disabled"{{/if}}>\n {{>sequence}} ({{:fichestat}})\n </button>\n <button data-scrutari-button="removeHistory" data-scrutari-target="{{:name}}" class="scrutari-history-Remove" title="{{>~scrutari_loc(\'_ button_remove\')}}"><span aria-hidden="true">&times;</span></button>\n </div>\n <div class="scrutari-history-Subsearch" data-scrutari-component="subsearch"></div>\n</div>',
'history':'<div data-scrutari-block="{{:name}}" class="scrutari-history-Block scrutari-history-Active">\n <div class="scrutari-history-Search">\n <button data-scrutari-action="loadHistory" data-scrutari-target="{{:name}}" class="scrutari-history-Load" {{if fichestat == 0}}disabled="disabled"{{/if}}>\n {{>sequence}} ({{:fichestat}})\n </button>\n <button data-scrutari-action="removeHistory" data-scrutari-target="{{:name}}" class="scrutari-history-Remove" title="{{>~scrutari_loc(\'_ button_remove\')}}"><span aria-hidden="true">&times;</span></button>\n </div>\n <div class="scrutari-history-Subsearch" data-scrutari-component="subsearch"></div>\n</div>',
'lang':'<p>\n<label class="scrutari-Label"><input type="checkbox" name="lang" value="{{:lang}}" data-scrutari-title="{{:lang}}">\n <span data-scrutari-component="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>\n</label>\n</p>',
'loading':'<span class="scrutari-icon-Loader"></span> {{>~scrutari_loc(\'_ loading_pagination\')}}',
'pagination_empty':'<p><em>{{>~scrutari_loc("_ result_none")}}</em></p>\n{{if withFilter}}\n<p><em>{{>~scrutari_loc("_ result_fitlerwarning")}}</em></p>\n{{/if}}\n{{if scrutariResult.notfoundArray.length > 0}}\n<p>{{>~scrutari_loc("_ result_notfound")}}{{>~scrutari_loc("_ colon")}}</p>\n<ul>\n {{for scrutariResult.notfoundArray}}\n <li>\n {{> text}}\n {{if neighbourArray.length > 0}}\n <small>(<em>{{>~scrutari_loc("_ result_neighbourlist")}}{{>~scrutari_loc("_ colon")}}</em> {{for neighbourArray ~len=neighbourArray.length}}{{> neighbour}}{{if #index != (~len -1)}}, {{/if}}{{/for}})</small>\n {{else}}\n <small>(<em>{{>~scrutari_loc("_ result_noneighbour")}}</em>)</small>\n {{/if}}\n </li>\n {{/for}}\n</ul>\n{{/if}}',
'pagination_groups':'<div class="scrutari-group-List" role="tablist">\n{{for array}}\n <button role="tab" class="scrutari-group-Tab" {{if active}}disabled{{/if}} data-scrutari-button="ficheGroupTab" {{if description}}title="{{>description}}"{{/if}}\n data-scrutari-target="{{:name}}">\n {{>title}} ({{:fichestat}})\n </button>\n{{/for}}\n</div>\n{{for array}}\n<div class="scrutari-group-Content {{if !active}}scrutari-Hidden{{/if}}" data-scrutari-block="ficheGroup-{{:name}}" data-scrutari-name="{{:name}}">\n <div data-scrutari-block="topTabs-{{:name}}"></div>\n <div data-scrutari-block="ficheList-{{:name}}"></div>\n <div data-scrutari-block="bottomTabs-{{:name}}"></div>\n</div>\n{{/for}}',
'pagination_empty':'<p><em>{{>~scrutari_loc("_ result_none")}}</em></p>\n{{if withFilter}}\n<p><em>{{>~scrutari_loc("_ result_fitlerwarning")}}</em></p>\n{{/if}}\n{{if searchUnit.notfoundArray.length > 0}}\n<p>{{>~scrutari_loc("_ result_notfound")}}{{>~scrutari_loc("_ colon")}}</p>\n<ul>\n {{for searchUnit.notfoundArray}}\n <li>\n {{> text}}\n {{if neighbourArray.length > 0}}\n <small>(<em>{{>~scrutari_loc("_ result_neighbourlist")}}{{>~scrutari_loc("_ colon")}}</em> {{for neighbourArray ~len=neighbourArray.length}}{{> neighbour}}{{if #index != (~len -1)}}, {{/if}}{{/for}})</small>\n {{else}}\n <small>(<em>{{>~scrutari_loc("_ result_noneighbour")}}</em>)</small>\n {{/if}}\n </li>\n {{/for}}\n</ul>\n{{/if}}',
'pagination_groups':'<div class="scrutari-group-List" role="tablist">\n{{for array}}\n <button role="tab" class="scrutari-group-Tab" {{if active}}disabled{{/if}} data-scrutari-action="ficheGroupTab" {{if description}}title="{{>description}}"{{/if}}\n data-scrutari-target="{{:name}}">\n {{>title}} ({{:fichestat}})\n </button>\n{{/for}}\n</div>\n{{for array}}\n<div class="scrutari-group-Content {{if !active}}scrutari-Hidden{{/if}}" data-scrutari-block="ficheGroup-{{:name}}" data-scrutari-name="{{:name}}">\n <div data-scrutari-block="topTabs-{{:name}}"></div>\n <div data-scrutari-block="ficheList-{{:name}}"></div>\n <div data-scrutari-block="bottomTabs-{{:name}}"></div>\n</div>\n{{/for}}',
'pagination_unique':'<div data-scrutari-block="topTabs"></div>\n<div data-scrutari-block="ficheList"></div>\n<div data-scrutari-block="bottomTabs"></div>',
'tabs':'<div class="scrutari-pagination-TabList">\n {{for tabArray}}\n {{if state===\'active\'}}\n <button class="scrutari-pagination-Tab" disabled>{{>title}}</button>\n {{else state===\'etc\'}}\n <span class="scrutari-pagination-Etc">{{>title}}</span>\n {{else}}\n <button\n class="scrutari-pagination-Tab"\n role="tab"\n data-scrutari-button="paginationTab"\n data-scrutari-type="{{:~root.type}}"\n data-scrutari-position="{{:~root.position}}"\n data-scrutari-number="{{:number}}"\n {{if ~root.ficheGroupName}} data-scrutari-fiche-group-name="{{:~root.ficheGroupName}}"{{/if}}>{{>title}}</button>\n {{/if}}\n {{/for}}\n</div>'
'tabs':'<div class="scrutari-pagination-TabList">\n {{for tabArray}}\n {{if state===\'active\'}}\n <button class="scrutari-pagination-Tab" disabled>{{>title}}</button>\n {{else state===\'etc\'}}\n <span class="scrutari-pagination-Etc">{{>title}}</span>\n {{else}}\n <button\n class="scrutari-pagination-Tab"\n role="tab"\n data-scrutari-action="paginationTab"\n data-scrutari-type="{{:~root.type}}"\n data-scrutari-position="{{:~root.position}}"\n data-scrutari-number="{{:number}}"\n {{if ~root.ficheGroupName}} data-scrutari-fiche-group-name="{{:~root.ficheGroupName}}"{{/if}}>{{>title}}</button>\n {{/if}}\n {{/for}}\n</div>'
}
};

File diff suppressed because it is too large Load Diff