Changeset 101831 in spip-zone


Ignore:
Timestamp:
Jan 19, 2017, 12:36:09 PM (3 years ago)
Author:
fil@…
Message:

facettes de langue et affichage propre des blocs multi dans les facettes

Location:
_plugins_/indexer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/indexer/trunk/content/sphinx.html

    r101830 r101831  
    2828(#ENV{#CLE}|oui)
    2929        <div>
    30                 <a class="btn btn-mini" href="[(#SELF|parametre_url{#CLE,''})]"><i class="icon-remove"></i> [(#ENV{#CLE}|=={-}|?{#VALEUR,#ENV{#CLE}})]</a>
     30                <a class="btn btn-mini" href="[(#SELF|parametre_url{#CLE,''})]"><i class="icon-remove"></i> [(#ENV{#CLE}|=={-}|?{#VALEUR,#ENV*{#CLE}|extraire_multi})]</a>
    3131        </div>
    3232]</BOUCLE_filtres>
     
    6565        {filter #ENV*{tag},    'IN(properties.tags, @valeurs)',    'LENGTH(properties.tags) = 0'}
    6666        {filter #ENV*{auteur}, 'IN(properties.authors, @valeurs)', 'LENGTH(properties.authors) = 0'}
     67        {filter #ENV{language}, 'IN(properties.lang, @valeurs)', "IN(properties.lang,'')"}
    6768        {filter #ENV{objet}, 'IN(properties.objet, @valeurs)', 'LENGTH(properties.objet) = 0'}
    6869
     
    7273        {facet tag,    properties.tags ORDER BY COUNT(*) DESC}
    7374        {facet annee, YEAR(date) ORDER BY date DESC}
     75        {facet language, properties.lang ORDER BY COUNT(*) DESC}
    7476        {facet objet,    properties.objet ORDER BY COUNT(*) DESC}
    7577
  • _plugins_/indexer/trunk/liste/sphinx_facettes.html

    r82645 r101831  
    1010            <ul class='liste-items'>
    1111        <BOUCLE_liste_facettes(DATA){source tableau, #VALEUR}>[(#TOTAL_BOUCLE|>{1}|oui)
    12                 <li class='item'><a href="[(#SELF|parametre_url{[(#_facettes:CLE)],#CLE})]">#CLE ([(#VALEUR)])</a></li>
     12                <li class='item'><a href="[(#SELF|parametre_url{[(#_facettes:CLE)],#CLE})]">[(#CLE|extraire_multi)] ([(#VALEUR)])</a></li>
    1313        ]</BOUCLE_liste_facettes>
    1414            </ul>
Note: See TracChangeset for help on using the changeset viewer.