Bugfixes for Freemarker functions
git-svn-id: https://svn.libreccm.org/ccm/trunk@6096 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
721117a2cf
commit
3976cd36b4
|
|
@ -14,7 +14,11 @@
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getTitleFilterValue list>
|
<#function getTitleFilterValue list>
|
||||||
<#return list["./fiters/title"]>
|
<#if (list["./filters/title"]?size > 0)>
|
||||||
|
<#return list["./filters/title"]>
|
||||||
|
<#else>
|
||||||
|
<#return "">
|
||||||
|
</#if>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getYearOfPublicationFilterAvailableYears list>
|
<#function getYearOfPublicationFilterAvailableYears list>
|
||||||
|
|
@ -22,15 +26,27 @@
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getYearOfPublicationFilterValue list>
|
<#function getYearOfPublicationFilterValue list>
|
||||||
<#return list["./fiters/year"]>
|
<#if (list["./fiters/year"]?size > 0)>
|
||||||
|
<#return list["./fiters/year"].@@text>
|
||||||
|
<#else>
|
||||||
|
<#return "">
|
||||||
|
</#if>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getAuthorsFilterValue list>
|
<#function getAuthorsFilterValue list>
|
||||||
<#return list["./filters/authors"]>
|
<#if (list["./filters/authors"]?size > 0)>
|
||||||
|
<#return list["./filters/authors"]>
|
||||||
|
<#else>
|
||||||
|
<#return "">
|
||||||
|
</#if>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getSort list>
|
<#function getSort list>
|
||||||
<#return list["./filters/sort"]>
|
<#if (list["./filters/sort"]?size > 0)>
|
||||||
|
<#return list["./filters/sort"]>
|
||||||
|
<#else>
|
||||||
|
<#return "">
|
||||||
|
</#if>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getCount list>
|
<#function getCount list>
|
||||||
|
|
@ -66,7 +82,7 @@
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getPublicationObjectType item>
|
<#function getPublicationObjectType item>
|
||||||
<#return item["./object-type"]>
|
<#return item["./object-type"].@@text>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getPublicationTitle item>
|
<#function getPublicationTitle item>
|
||||||
|
|
@ -81,12 +97,20 @@
|
||||||
<#return item["./authors/author"]>
|
<#return item["./authors/author"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#function hasAuthorSurname author>
|
||||||
|
<#return (author["./@surname"]?size > 0)>
|
||||||
|
</#function>
|
||||||
|
|
||||||
<#function getAuthorSurname author>
|
<#function getAuthorSurname author>
|
||||||
<#return author["./surname"]>
|
<#return author["./@surname"]>
|
||||||
|
</#function>
|
||||||
|
|
||||||
|
<#function hasAuthorGivenName author>
|
||||||
|
<#return (author["./@givenname"]?size > 0)>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getAuthorGivenName author>
|
<#function getAuthorGivenName author>
|
||||||
<#return author["./givenname"]>
|
<#return author["./@givenname"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getPublicationPlace item>
|
<#function getPublicationPlace item>
|
||||||
|
|
@ -122,23 +146,35 @@
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getJournalName journal>
|
<#function getJournalName journal>
|
||||||
<#return journal["./name"]>
|
<#return journal["./name"].@@text>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getPublicationIssue item>
|
<#function getPublicationIssue item>
|
||||||
<#return item["./issue"]>
|
<#return item["./issue"].@@text>
|
||||||
|
</#function>
|
||||||
|
|
||||||
|
<#function hasPublicationVolumeOfJournal item>
|
||||||
|
<#return (item["./volume-of-journal"]?size > 0)>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getPublicationVolumeOfJournal item>
|
<#function getPublicationVolumeOfJournal item>
|
||||||
<#return item["./volume-of-journal"]>
|
<#return item["./volume-of-journal"].@@text>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getPublicationPagesFrom item>
|
<#function getPublicationPagesFrom item>
|
||||||
<#return item["./pages-from"]>
|
<#if (item["./pages-from"]?size > 0)>
|
||||||
|
<#return item["./pages-from"].@@text?number>
|
||||||
|
<#else>
|
||||||
|
<#return 0>
|
||||||
|
</#if>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getPublicationPagesTo item>
|
<#function getPublicationPagesTo item>
|
||||||
<#return item["./pages-to"]>
|
<#if (item["./pages-to"]?size > 0)>
|
||||||
|
<#return item["./pages-to"].@@text?number>
|
||||||
|
<#else>
|
||||||
|
<#return 0>
|
||||||
|
</#if>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getPublicationCollectedVolume item>
|
<#function getPublicationCollectedVolume item>
|
||||||
|
|
@ -150,13 +186,21 @@
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getCollectedVolumeTitle collectedVolume>
|
<#function getCollectedVolumeTitle collectedVolume>
|
||||||
<#return collectedVolume["./title"]>
|
<#return collectedVolume["./title"].@@text>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
<#function getCollectedVolumePublisher collectedVolume>
|
<#function getCollectedVolumePublisher collectedVolume>
|
||||||
<#return collectedVolume["./publisher"]>
|
<#return collectedVolume["./publisher"]>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#function getCollectedVolumePlace collectedVolume>
|
||||||
|
<#return collectedVolume["./place"]>
|
||||||
|
</#function>
|
||||||
|
|
||||||
|
<#function hasProceedings item>
|
||||||
|
<#return (item["./proceedings"]?size > 0)>
|
||||||
|
</#function>
|
||||||
|
|
||||||
<#function getProceedings item>
|
<#function getProceedings item>
|
||||||
<#return item["./proceedings"]>
|
<#return item["./proceedings"]>
|
||||||
</#function>
|
</#function>
|
||||||
Loading…
Reference in New Issue