Template:Include references models cargo1: Difference between revisions
From CSDMS
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
| 0 <!-- loops start value for {{#var:i}} --> | | 0 <!-- loops start value for {{#var:i}} --> | ||
| {{#expr:{{#arraysize:refs}} -1}} <!-- number of loops; remove one as Cargo adds one in the end --> | | {{#expr:{{#arraysize:refs}} -1}} <!-- number of loops; remove one as Cargo adds one in the end --> | ||
| <tr valign="top"><td style="max-width:33%;">{{ | | <tr valign="top"><td style="word-wrap:break-word; max-width:33%;">{{ | ||
#arraydefine: val | {{#arrayindex:refs | {{#var:i}} }} | ; | #arraydefine: val | {{#arrayindex:refs | {{#var:i}} }} | ; | ||
}}{{#ifeq:{{#cargo_query:tables=RefsExt2|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields=ItemType}}| |{{#cargo_query:tables=BibEntryCargo|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields=_pageName, BibType,Title, Editors, DATE_FORMAT(Year,"%Y")=var1, Journal, Booktitle, Volume,Pages, URL, DOI, ISBN, Note, Firstname|format=template|template=Test6a}}|{{#cargo_query:tables=RefsExt|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields=_ID, Lastname, Firstname|order by=_ID ASC |format=template|template=Test4a}}{{#cargo_query:tables=RefsExt2|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields=_pageName, ItemType, Title , PublicationTitle, Booktitle, JournalAbbreviation, Volume, Issue, Url, DOI, Pagenumbers, Publicationdate, AccessDate |format=template|template=Test5a}} }}</td><!--<td>{{#cargo_query:tables=RefsInt2|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields= PublicationMultipleModelsCargo|format=template|template=Test7a}}</td>--><td>{{#cargo_query:tables=RefsInt1|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields= PublicationWhatKindOf, PublicationClusterID, PublicationCitationsNr, MS_PublicationClusterID|format=template|template=Test8a}}</td> | }}{{#ifeq:{{#cargo_query:tables=RefsExt2|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields=ItemType}}| |{{#cargo_query:tables=BibEntryCargo|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields=_pageName, BibType,Title, Editors, DATE_FORMAT(Year,"%Y")=var1, Journal, Booktitle, Volume,Pages, URL, DOI, ISBN, Note, Firstname|format=template|template=Test6a}}|{{#cargo_query:tables=RefsExt|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields=_ID, Lastname, Firstname|order by=_ID ASC |format=template|template=Test4a}}{{#cargo_query:tables=RefsExt2|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields=_pageName, ItemType, Title , PublicationTitle, Booktitle, JournalAbbreviation, Volume, Issue, Url, DOI, Pagenumbers, Publicationdate, AccessDate |format=template|template=Test5a}} }}</td><!--<td>{{#cargo_query:tables=RefsInt2|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields= PublicationMultipleModelsCargo|format=template|template=Test7a}}</td>--><td>{{#cargo_query:tables=RefsInt1|where = _pageName = '{{#arrayindex: val | 0}}'|limit=2500|default=|fields= PublicationWhatKindOf, PublicationClusterID, PublicationCitationsNr, MS_PublicationClusterID|format=template|template=Test8a}}</td> |