comparison zpt/bibliography.zpt @ 0:bca61e893fcc

first checkin of MPIWGWeb r2 branch from CVS into mercurial
author casties
date Thu, 10 Jan 2013 17:52:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:bca61e893fcc
1 <tal:block tal:condition="not:python=here.ZSQLisEmpty(found.id_institutsbibliographie)"
2 tal:define="foundIB python:ZSQLInlineSearch(_table='institutsbiblio',id=found.id_institutsbibliographie)[0]">
3
4 <tal:block tal:condition="python:foundIB.reference_type.lower()=='journal article'">
5 <span tal:replace="foundIB/author_semi_colon"/>&quot;<span tal:replace="foundIB/title"/>&quot;
6 <i><span tal:replace="foundIB/secondary_title"/></i>
7 <span tal:replace="foundIB/volume"/>&quot;
8 (<span tal:condition
9
10 ret=""
11 if not found.id_institutsbibliographie=='':
12 foundIB=here.ZSQLInlineSearch(_table='institutsbiblio',id=found.id_institutsbibliographie)[0]
13 if foundIB.reference_type.lower()=='journal article':
14 ret+=foundIB.author_semi_colon+"&quot;"+foundIB.title+"&quot;"+"<i>%s</i>"%foundIB.secondary_title+foundIB.volume+"&quot;("
15 if not foundIB.number=='':
16 ret+=foundIB.number+"&nbsp;"
17 ret+=foundIB.year+")"
18 if not foundIB.pages=='':
19 ret+=": "+foundIB.pages+"."
20
21
22 <!--
23 [FMP-Field: Author_semi_colon]. &quot;[FMP-Field: Title].&quot <i>[FMP-Field: Secondary Title]</i> [FMP-Field: Volume] ([FMP-If: Number.neq.][FMP-Field: Number] [/FMP-If][FMP-Field: year])[FMP-If: pages.neq.]: [FMP-Field: pages][/FMP-IF].
24 [FMP-elseif: Reference Type.eq.Edited Book]
25 [FMP-Field: Author_semi_colon] (Editor/s). <i>[FMP-Field: Title]</i>. [FMP-If: Place Published.neq.][FMP-Field: Place Published]: [/FMP-if][FMP-if: publisher.neq.][FMP-Field: Publisher], [/FMP-If][FMP-Field: year].
26 [FMP-elseif: Reference Type.eq.Book Section]
27 [FMP-Field: Author_semi_colon]. &quot;[FMP-Field: Title].&quot In <i>[FMP-Field: Secondary Title]</i>[FMP-If: Secondary_Author_semi_colon.neq.], eds.: [FMP-Field: Secondary_Author_semi_colon][/FMP-if]. [FMP-If: Pages.neq.][FMP-Field: Pages].[/FMP-If][FMP-If: Place Published.neq.][FMP-Field: Place Published][/FMP-IF][FMP-If: Publisher.neq.]: [FMP-Field: Publisher],[/FMP-If] [FMP-Field: Year].
28 [FMP-elseif: Reference Type.eq.Book]
29 [FMP-Field: Author_semi_colon]. <i>[FMP-Field: Title]</i>. [FMP-Field: Place Published]: [FMP-Field: Publisher], [FMP-Field: year].
30 [FMP-elseif: Reference Type.eq.Newspaper Article]
31 [FMP-Field: Author_semi_colon]. &quot;[FMP-Field: Title].&quot <i>[FMP-Field: Secondary Title]</i>, [FMP-Field: Date].[FMP-Field: Year], [FMP-Field: Pages].
32 [/FMP-if]
33 [/FMP-InlineAction]
34
35
36
37
38 [FMP-else]
39
40
41 [FMP-InlineAction: -db=bibliography, ID="{Field: ID_gen_bib}", -find]
42 [FMP-IF: Reference Type.eq.Journal Article]
43 [FMP-Field: Author_semi_colon]. &quot;[FMP-Field: Title].&quot <i>[FMP-Field: Secondary Title]</i> [FMP-Field: Volume] ([FMP-If: Number.neq.][FMP-Field: Number] [/FMP-If][FMP-Field: year])[FMP-If: Pages.neq.]: [FMP-Field: Pages][/FMP-IF].
44 [FMP-else][FMP-IF: Reference Type.eq.Edited Book]
45 [FMP-Field: Author_semi_colon] (Editor/s). <i>[FMP-Field: Title]</i>. [FMP-If: Place Published.neq.][FMP-Field: Place Published]: [/FMP-if][FMP-if: publisher.neq.][FMP-Field: Publisher], [/FMP-If][FMP-Field: year].
46 [FMP-else][FMP-IF: Reference Type.eq.Book Section]
47 [FMP-Field: Author_semi_colon]. &quot;[FMP-Field: Title].&quot In <i>[FMP-Field: Secondary Title]</i>[FMP-If: Secondary_Author_semi_colon.neq.], eds.: [FMP-Field: Secondary_Author_semi_colon][/FMP-if]. [FMP-If: Pages.neq.][FMP-Field: Pages].[/FMP-If][FMP-If: Place Published.neq.][FMP-Field: Place Published][/FMP-IF][FMP-If: Publisher.neq.]: [FMP-Field: Publisher],[/FMP-If] [FMP-Field: Year].
48 [FMP-else][FMP-IF: Reference Type.eq.Book]
49 [FMP-Field: Author_semi_colon]. <i>[FMP-Field: Title]</i>. [FMP-Field: Place Published]: [FMP-Field: Publisher], [FMP-Field: year].
50 [FMP-else][FMP-IF: Reference Type.eq.Newspaper Article]
51 [FMP-Field: Author_semi_colon]. &quot;[FMP-Field: Title].&quot <i>[FMP-Field: Secondary Title]</i>, [FMP-Field: Date].[FMP-Field: Year], [FMP-Field: Pages].
52 [/FMP-if][/FMP-if][/FMP-if][/FMP-if][/FMP-if]
53 [/FMP-InlineAction]
54 [/FMP-IF]
55 -->