Changeset 82644 in spip-zone


Ignore:
Timestamp:
May 21, 2014, 5:29:12 AM (5 years ago)
Author:
fil@…
Message:

recuperer le score max dans une premiere boucle, pour calculer les %

File:
1 edited

Legend:

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

    r82627 r82644  
    3333
    3434
     35<BOUCLE_max_sphinx(SPHINX2)
     36        {index #ENV{source,spip}}
     37        {recherche #ENV*{recherche}}
     38        {0,1}
     39>#SET{max,#SCORE}</BOUCLE_max_sphinx>
    3540
    3641
     
    4045        <h2>Documents trouvés</h2>
    4146
    42         [<pre>(#SPHINX_QUERY)</pre>]
     47        [<div><tt>(#SPHINX_QUERY)</tt></div>]
    4348
    4449        <small>
     
    5055                [<div class="pagination">(#ENV{debut_recherche_sphinx}|?{#PAGINATION,#ANCRE_PAGINATION})</div>]
    5156                <ul class='liste-items'>
    52 
    5357
    5458<BOUCLE_recherche_sphinx(SPHINX2)
     
    7478        <li class='item'>
    7579                <article class='entry article hentry'>
    76                         <strong class='h3-like entry-title'>#SCORE/#ENV{max} = [(#SCORE|mult{100}|div{#ENV{max}}|intval)%] <a href="#URI">#TITLE</a></strong>
     80                        <strong class='h3-like entry-title'>#SCORE/#GET{max} = [(#SCORE|mult{100}|div{#GET{max}}|intval)%] <a href="#URI">#TITLE</a></strong>
    7781                        <p class="publication">
    7882                                [<time pubdate="pubdate" datetime="[(#DATE|date_iso)]">(#DATE|affdate_jourcourt)</time>][<span class="authors"><span class="sep">, </span> <:par_auteur:> (#GET{properties}|table_valeur{authors}|implode{', '})</span>]
Note: See TracChangeset for help on using the changeset viewer.