Changeset 4:3d6f339ce9a2


Ignore:
Timestamp:
18.01.2010 14:56:39 (9 years ago)
Author:
andre.hagenbruch@rub.de
Branch:
default
Children:
5:32dd787790e8, 6:40cc9084c094
Message:

Successfully validated resultlist.

Location:
django
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • django/repo/search/views.py

    r0 r4  
    193193    ctx['lang_facet'] = _concatenate_facets(result['facet_counts']['facet_fields']['language'], []) 
    194194 
    195  
     195    logging.debug(ctx['date_facet']) 
    196196    header = {} 
    197197    header['QTime'] = result['responseHeader']['QTime'] 
  • django/templates/resultlist.html

    r3 r4  
    5050                        <li class="aufklappen"><span class="u-kat">&nbsp;&nbsp;</span> 
    5151                            {% else %} 
     52                        <li> 
    5253                            {% endif %} 
    5354                            <a about="http://bibliographie.ub.rub.de" rel="dcterms:hasPart" href="http://127.0.0.1:8000/search?q=fakultaet:{% autoescape off %}%22{% endautoescape %}{{ facet.cat|safe|urlencode }}{% autoescape off %}%22{% endautoescape %}">{{ facet.cat }} ({{ facet.count }})</a> 
     
    6263                                    <span about="http://bibliographie.ub.rub.de/search?q=*:*&amp;fq=fperson%22{{ facet.cat|safe|urlencode }}%22&amp;sort={{ sorting }}" property="foaf:Person" content="{{ sub.cat }}"></span> 
    6364                                </li> 
    64                             </ul></li> 
     65                            </ul> 
    6566                            {% endfor %} 
    6667                            {% endif %} 
    67                             {% endfor %} 
     68                        </li> 
     69                        {% endfor %} 
    6870                    </ul> 
    6971                    {% endif %} 
     
    197199                                    </div> 
    198200                                    <div class="box-text"> 
    199  
    200                        <p><a href="/search?q={{ query }}">{{ query|uncat }}</a> &#187; 
     201                    <p><a href="/search?q={{ query }}">{{ query|uncat }}</a> &#187; 
    201202                        {% for term in searchterms %} 
    202203                        <a href="/search?q={{ query }}&amp;fq={{ term }}&amp;sort={{ sorting }}">{{ term|uncat|safe }}</a> &#187;<br/> 
     
    260261                {% for facet in date_facet %} 
    261262                    <li> 
    262                         <a about="http://bibliographie.ub.rub.de" rel="dcterms:hasPart" href="http://bibliographie.ub.rub.de/search?q={{ query }}&amp;fq=fdate{{ facet.query|safe|urlencode }}&amp;sort={{ sorting }}">{{ facet.display }}</a> 
     263                        <a about="http://bibliographie.ub.rub.de" rel="dcterms:hasPart" href="http://bibliographie.ub.rub.de/search?q={{ query }}&amp;fq=fdate{{ facet.query|safe|urlencode }}&amp;sort={{ sorting }}">{{ facet }}</a> 
    263264                        <span about="http://bibliographie.ub.rub.de/search?q={{ query }}&amp;fq=fdate{{ facet.query|safe|urlencode }}&amp;sort={{ sorting }}" property="dcterms:extent" content="{{ facet.count }}"></span> 
    264265                        <span about="http://bibliographie.ub.rub.de/search?q={{ query }}&amp;fq=fdate{{ facet.query|safe|urlencode }}&amp;sort={{ sorting }}" property="dcterms:date" content="{{ facet.cat }}"></span> 
     
    272273                {% for facet in lang_facet %} 
    273274                    <li> 
    274                         <a about="http://bibliographie.ub.rub.de" rel="dcterms:hasPart" href="http://bibliographie.ub.rub.de/search?q={{ query }}&amp;fq=language{{ facet.query|safe|urlencode }}&amp;sort={{ sorting }}">{{ facet.display }}</a> 
     275                        <a about="http://bibliographie.ub.rub.de" rel="dcterms:hasPart" href="http://bibliographie.ub.rub.de/search?q={{ query }}&amp;fq=language{{ facet.query|safe|urlencode }}&amp;sort={{ sorting }}">{{ facet }}</a> 
    275276                        <span about="http://bibliographie.ub.rub.de/search?q={{ query }}&amp;fq=language{{ facet.query|safe|urlencode }}&amp;sort={{ sorting }}" property="dcterms:extent" content="{{ facet.count }}"></span> 
    276277                        <span about="http://bibliographie.ub.rub.de/search?q={{ query }}&amp;fq=language{{ facet.query|safe|urlencode }}&amp;sort={{ sorting }}" property="dcterms:language" content="{{ facet.cat }}"></span> 
     
    284285                {% for facet in jtitle_facet %} 
    285286                    <li> 
    286                         <a about="http://bibliographie.ub.rub.de" rel="dcterms:hasPart" href="/search?q={{ query }}&amp;fq=fjtitle{{ facet.query|safe|urlencode }}&amp;sort={{ sorting }}">{{ facet.display }}</a> 
     287                        <a about="http://bibliographie.ub.rub.de" rel="dcterms:hasPart" href="/search?q={{ query }}&amp;fq=fjtitle{{ facet.query|safe|urlencode }}&amp;sort={{ sorting }}">{{ facet }}</a> 
    287288                        <span about="http://bibliographie.ub.rub.de/search?q={{ query }}&amp;fq=fjtitle{{ facet.query|safe|urlencode }}&amp;sort={{ sorting }}" property="dcterms:extent" content="{{ facet.count }}"></span> 
    288289                        <span about="http://bibliographie.ub.rub.de/search?q={{ query }}&amp;fq=fjtitle{{ facet.query|safe|urlencode }}&amp;sort={{ sorting }}" property="bibo:Journal" content="{{ facet.cat }}"></span> 
Note: See TracChangeset for help on using the changeset viewer.