From 9636d4a6767f49384d5c386bc3f1142c88b90613 Mon Sep 17 00:00:00 2001 From: Alvin Li Date: Tue, 13 Aug 2013 14:13:24 +0800 Subject: cloned from 'bitbucket', 2013/08/13 --- .../search/indexes/indicator/indicator_text.txt | 6 ++++ .../indexes/indicator/indicatorcategory_text.txt | 5 +++ .../templates/search/indexes/info/query_text.txt | 2 ++ .../search/indexes/sciblog/blogannotation_text.txt | 5 +++ .../search/indexes/sciblog/sciblog_text.txt | 30 +++++++++++++++++ 97suifangqa/templates/search/query/index.html | 19 +++++++++++ 97suifangqa/templates/search/search.html | 39 ++++++++++++++++++++++ 7 files changed, 106 insertions(+) create mode 100644 97suifangqa/templates/search/indexes/indicator/indicator_text.txt create mode 100644 97suifangqa/templates/search/indexes/indicator/indicatorcategory_text.txt create mode 100644 97suifangqa/templates/search/indexes/info/query_text.txt create mode 100644 97suifangqa/templates/search/indexes/sciblog/blogannotation_text.txt create mode 100644 97suifangqa/templates/search/indexes/sciblog/sciblog_text.txt create mode 100644 97suifangqa/templates/search/query/index.html create mode 100644 97suifangqa/templates/search/search.html (limited to '97suifangqa/templates/search') diff --git a/97suifangqa/templates/search/indexes/indicator/indicator_text.txt b/97suifangqa/templates/search/indexes/indicator/indicator_text.txt new file mode 100644 index 0000000..4ccb33e --- /dev/null +++ b/97suifangqa/templates/search/indexes/indicator/indicator_text.txt @@ -0,0 +1,6 @@ +{{ object.name }} +{{ object.pinyin }} +{{ object.englishName }} +{{ object.description }} +{{ object.helpText }} + diff --git a/97suifangqa/templates/search/indexes/indicator/indicatorcategory_text.txt b/97suifangqa/templates/search/indexes/indicator/indicatorcategory_text.txt new file mode 100644 index 0000000..df4ffac --- /dev/null +++ b/97suifangqa/templates/search/indexes/indicator/indicatorcategory_text.txt @@ -0,0 +1,5 @@ +{{ object.name }} +{{ object.pinyin }} +{{ object.englishName }} +{{ object.description }} + diff --git a/97suifangqa/templates/search/indexes/info/query_text.txt b/97suifangqa/templates/search/indexes/info/query_text.txt new file mode 100644 index 0000000..1451635 --- /dev/null +++ b/97suifangqa/templates/search/indexes/info/query_text.txt @@ -0,0 +1,2 @@ +{{ object.content }} +{{ object.user.get_full_name }} diff --git a/97suifangqa/templates/search/indexes/sciblog/blogannotation_text.txt b/97suifangqa/templates/search/indexes/sciblog/blogannotation_text.txt new file mode 100644 index 0000000..a347fc0 --- /dev/null +++ b/97suifangqa/templates/search/indexes/sciblog/blogannotation_text.txt @@ -0,0 +1,5 @@ +{{ object.brief_content }} +{{ object.detail }} +{% for keyword in object.keywords.all %} +{{ keyword.content }} +{% endfor %} diff --git a/97suifangqa/templates/search/indexes/sciblog/sciblog_text.txt b/97suifangqa/templates/search/indexes/sciblog/sciblog_text.txt new file mode 100644 index 0000000..edc145c --- /dev/null +++ b/97suifangqa/templates/search/indexes/sciblog/sciblog_text.txt @@ -0,0 +1,30 @@ +{{ object.title }} +{{ object.subhead }} +{{ object.journal }} +{{ object.entitle }} +{{ object.authors }} +{{ object.method }} +{{ object.aim }} +{{ object.abstract_result }} +{{ object.abstractAE }} +{{ object.treatment_content }} +{{ object.endpoint_content }} +{% for endpoint in object.endpoint_content.all %} +{{ endpoint.content }} +{% endfor %} + +{% for que in object.query.all %} +{{ que.content }} +{% endfor %} + +{{ object.conclusion }} + +{% for piece in object.konwledge_piece.all %} +{{ piece.content }} +{% endfor %} + +{{ object.detectionAssay }} + +{% for result in object.results.all %} +{{ result.content }} +{% endfor %} diff --git a/97suifangqa/templates/search/query/index.html b/97suifangqa/templates/search/query/index.html new file mode 100644 index 0000000..7e504fc --- /dev/null +++ b/97suifangqa/templates/search/query/index.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} + +{% block otherlinks %} + +{% endblock %} + +{% block bodyclass %}bg{% endblock %} + +{% block body %} + {% include "profile/person-info.html" %} +
+ + +
+{% endblock %} diff --git a/97suifangqa/templates/search/search.html b/97suifangqa/templates/search/search.html new file mode 100644 index 0000000..7308de0 --- /dev/null +++ b/97suifangqa/templates/search/search.html @@ -0,0 +1,39 @@ +{% extends 'base.html' %} + +{% block page %} +

Search

+ +
+ + {{ form.as_table }} + + + + +
  + +
+ + {% if query %} +

Results

+ + {% for result in page.object_list %} +

+ {{ result.object.show }} +

+ {% empty %} +

No results found.

+ {% endfor %} + + {% if page.has_previous or page.has_next %} +
+ {% if page.has_previous %}{% endif %}« Previous{% if page.has_previous %}{% endif %} + | + {% if page.has_next %}{% endif %}Next »{% if page.has_next %}{% endif %} +
+ {% endif %} + {% else %} + {# Show some example queries to run, maybe query syntax, something else? #} + {% endif %} +
+{% endblock %} -- cgit v1.2.2