summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@0d.be>2012-05-02 12:14:14 (GMT)
committerFrédéric Péters <fpeters@0d.be>2012-05-02 12:14:14 (GMT)
commitac8d07355aeaca8856e13df0856a51e2fa80f555 (patch)
treeb0ebda7bd0fed7d47c7aea97ca28566a14d3a660
parentbd1fffb5359d5dc048af209978eb71595c9fd4e4 (diff)
downloadtabellio.searchform-ac8d07355aeaca8856e13df0856a51e2fa80f555.zip
tabellio.searchform-ac8d07355aeaca8856e13df0856a51e2fa80f555.tar.gz
tabellio.searchform-ac8d07355aeaca8856e13df0856a51e2fa80f555.tar.bz2
handle author_is_government
-rw-r--r--tabellio/searchform/docsearchpfb.pt4
1 files changed, 2 insertions, 2 deletions
diff --git a/tabellio/searchform/docsearchpfb.pt b/tabellio/searchform/docsearchpfb.pt
index 50e2d18..fcde9c8 100644
--- a/tabellio/searchform/docsearchpfb.pt
+++ b/tabellio/searchform/docsearchpfb.pt
@@ -46,7 +46,7 @@
<li tal:define="oddrow repeat/item/odd; object python: item.getObject()" tal:attributes="class python: oddrow and 'odd' or 'even'"><div>
<h4><a href="#" tal:attributes="href item/getURL" tal:content="python: object.reftitle">Véronique Salvi</a></h4>
<p class="intitule" tal:content="item/Title"/>
- <p class="authors" tal:condition="python: object.authors">Auteur(s) : <span tal:replace="python: object.get_authors_as_string()"/></p>
+ <p class="authors" tal:condition="python: object.authors or object.author_is_government">Auteur(s) : <span tal:replace="python: object.get_authors_as_string()" /></p>
</div></li>
</tal:entry>
</ul>
@@ -123,7 +123,7 @@
<li tal:define="oddrow repeat/item/odd; object python: item.getObject()" tal:attributes="class python: oddrow and 'odd' or 'even'"><div>
<h4><a href="#" tal:attributes="href item/getURL" tal:content="python: object.reftitle">Véronique Salvi</a></h4>
<p class="intitule" tal:content="item/Title"/>
- <p class="authors" tal:condition="python: object.authors">Auteur(s) : <span tal:replace="python: object.get_authors_as_string()" tal:condition="python: object.authors" /></p>
+ <p class="authors" tal:condition="python: object.authors or object.author_is_government">Auteur(s) : <span tal:replace="python: object.get_authors_as_string()" /></p>
</div></li>
</tal:entry>
</ul>