First part of FTL support of publication detail view in ccm-scipublications-navigation
git-svn-id: https://svn.libreccm.org/ccm/trunk@6314 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
356dfe5a05
commit
299023f003
|
|
@ -19,6 +19,25 @@
|
|||
<#return model["/bebop:page/nav:sci-publication-list[@id='${listId}']"]>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Checks if the current page is showing a single publication (retrieved via
|
||||
NativeSQL queries).
|
||||
|
||||
@return `true` if the model contains a single publication `false` otherwise.
|
||||
-->
|
||||
<#function hasPublication>
|
||||
<#return (model["/bebop:page/nav:publication"]?size > 0)>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Retrieve a single publication from the model.
|
||||
|
||||
@return The model of the publication.
|
||||
-->
|
||||
<#function getPublication>
|
||||
<#return model["/bebop:page/nav:publication/publication"]>
|
||||
</#function>
|
||||
|
||||
<#--doc
|
||||
Get the publications from a publication list
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue