From: Raouf Benmansour Date: Thu, 7 Jan 2016 10:52:18 +0000 (+0100) Subject: Merging corpus and fonds templates into a single one X-Git-Tag: 1.6b~5^2~4^2~4^2~2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=728c736b11df34ca341aa1c229dafb6e6aa44ce5;p=telemeta.git Merging corpus and fonds templates into a single one --- diff --git a/telemeta/templates/search/advanceSearch.html b/telemeta/templates/search/advanceSearch.html index ca1c381a..6a7e373b 100644 --- a/telemeta/templates/search/advanceSearch.html +++ b/telemeta/templates/search/advanceSearch.html @@ -190,10 +190,10 @@ {% include "search/mediaitem_listhaystack.html" %} {% else %} {% ifequal type 'corpus' %} - {% include "search/mediacorpus_listhaystack.html" %} + {% include "search/mediaresource_listhaystack.html" %} {% else %} {% ifequal type 'fonds' %} - {% include "search/mediafonds_listhaystack.html" %} + {% include "search/mediaresource_listhaystack.html" %} {% else %} {% ifequal type 'collection' %} {% include "search/mediacollection_listhaystack.html" %} @@ -208,10 +208,10 @@ {% include "search/mediaitem_listhaystack.html" %} {% else %} {% ifequal type 'corpus' %} - {% include "search/mediacorpus_listhaystack.html" %} + {% include "search/mediaresource_listhaystack.html" %} {% else %} {% ifequal type 'fonds' %} - {% include "search/mediafonds_listhaystack.html" %} + {% include "search/mediaresource_listhaystack.html" %} {% else %} {% ifequal type 'collection' %} {% include "search/mediacollection_listhaystack.html" %} diff --git a/telemeta/templates/search/mediacorpus_listhaystack.html b/telemeta/templates/search/mediacorpus_listhaystack.html deleted file mode 100644 index bfc102f3..00000000 --- a/telemeta/templates/search/mediacorpus_listhaystack.html +++ /dev/null @@ -1,73 +0,0 @@ -{% load telemeta_utils %} -{% load i18n %} - -{% if page.object_list %} - - - - {% if user.is_authenticated %} - - - {% else %} - - {% endif %} - - - - -{% if user.is_authenticated %} - {% for result in page.object_list %} - - - - - - - - - {% endfor %} -{% else %} - {% for result in page.object_list %} - - - - - - - - - {% endfor %} -{% endif %} -
select all {% trans "title" %}{% trans "title" %}{% trans "Digitized" %}{% trans "Description" %}{% trans "Code" %}
- {{ result.object.title }} - - {% if result.object.has_mediafile %} -
- {% endif %} -
{{ result.object.description }} - {{ result.object.code }} -
- {{ result.object.title }} - - {% if result.object.has_mediafile %} -
- {% endif %} -
{{ result.object.description }} - {{ result.object.code }} -
-{% else %} -

{% trans "No corpus" %}

-{% endif %} - - - - - - - - - - - - - diff --git a/telemeta/templates/search/mediafonds_listhaystack.html b/telemeta/templates/search/mediafonds_listhaystack.html deleted file mode 100644 index 53bef277..00000000 --- a/telemeta/templates/search/mediafonds_listhaystack.html +++ /dev/null @@ -1,73 +0,0 @@ -{% load telemeta_utils %} -{% load i18n %} - -{% if page.object_list %} - - - - {% if user.is_authenticated %} - - - {% else %} - - {% endif %} - - - - -{% if user.is_authenticated %} - {% for result in page.object_list %} - - - - - - - - - {% endfor %} -{% else %} - {% for result in page.object_list %} - - - - - - - - - {% endfor %} -{% endif %} -
select all {% trans "title" %}{% trans "title" %}{% trans "Digitized" %}{% trans "Description" %}{% trans "Code" %}
- {{ result.object.title }} - - {% if result.object.has_mediafile %} -
- {% endif %} -
{{ result.object.description }} - {{ result.object.code }} -
- {{ result.object.title }} - - {% if result.object.has_mediafile %} -
- {% endif %} -
{{ result.object.description }} - {{ result.object.code }} -
-{% else %} -

{% trans "No fonds" %}

-{% endif %} - - - - - - - - - - - - - diff --git a/telemeta/templates/search/mediaresource_listhaystack.html b/telemeta/templates/search/mediaresource_listhaystack.html new file mode 100644 index 00000000..44de7db7 --- /dev/null +++ b/telemeta/templates/search/mediaresource_listhaystack.html @@ -0,0 +1,60 @@ +{% load telemeta_utils %} +{% load i18n %} + +{% if page.object_list %} + + + + {% if user.is_authenticated %} + + + {% else %} + + {% endif %} + + + + +{% if user.is_authenticated %} + {% for result in page.object_list %} + + + + + + + + + {% endfor %} +{% else %} + {% for result in page.object_list %} + + + + + + + + + {% endfor %} +{% endif %} +
select all {% trans "title" %}{% trans "title" %}{% trans "Digitized" %}{% trans "Description" %}{% trans "Code" %}
+ {{ result.object.title }} + + {% if result.object.has_mediafile %} +
+ {% endif %} +
{{ result.object.description }} + {{ result.object.code }} +
+ {{ result.object.title }} + + {% if result.object.has_mediafile %} +
+ {% endif %} +
{{ result.object.description }} + {{ result.object.code }} +
+{% else %} +

{% trans "No " %}{{ type }}

+{% endif %} diff --git a/telemeta/templates/search/search.html b/telemeta/templates/search/search.html index ada51828..9dea75e9 100644 --- a/telemeta/templates/search/search.html +++ b/telemeta/templates/search/search.html @@ -66,14 +66,10 @@ {% include "search/mediacollection_listhaystack.html" %} {% else %} {% ifequal type 'corpus' %} - {% include "search/mediacorpus_listhaystack.html" %} + {% include "search/mediaresource_listhaystack.html" %} {% else %} {% ifequal type 'fonds' %} - {% include "search/mediafonds_listhaystack.html" %} - {% else %} - {% ifequal type 'fonds' %} - {% include "search/mediafonds_listhaystack.html" %} - {%endifequal%} + {% include "search/mediaresource_listhaystack.html" %} {%endifequal%} {%endifequal%} {%endifequal%} @@ -88,14 +84,10 @@ {% include "search/mediacollection_listhaystack.html" %} {% else %} {% ifequal type 'corpus' %} - {% include "search/mediacorpus_listhaystack.html" %} + {% include "search/mediaresource_listhaystack.html" %} {% else %} {% ifequal type 'fonds' %} - {% include "search/mediafonds_listhaystack.html" %} - {% else %} - {% ifequal type 'fonds' %} - {% include "search/mediafonds_listhaystack.html" %} - {%endifequal%} + {% include "search/mediaresource_listhaystack.html" %} {%endifequal%} {%endifequal%} {%endifequal%}