Documentation for the Freemarker libraries provided by ccm-sci-publications

git-svn-id: https://svn.libreccm.org/ccm/trunk@6308 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2019-11-03 17:51:05 +00:00
parent 1862edc503
commit 659ceaa9a4
12 changed files with 517 additions and 214 deletions

View File

@ -7,6 +7,17 @@
<#import "../ccm-cms/content-item.ftl" as ContentItem> <#import "../ccm-cms/content-item.ftl" as ContentItem>
<#--doc
Functions for the processing collected volumes.
-->
<#--doc
Constructs the the link to the detail view to a collected volume.
@param collectedVolume The Collected Volume to use.
@return The link to the detail view of the Collected Volume.
-->
<#function getHref collectedVolume> <#function getHref collectedVolume>
<#return ContentItem.generateContentItemLink(collectedVolume["./@oid"])> <#return ContentItem.generateContentItemLink(collectedVolume["./@oid"])>
</#function> </#function>

View File

@ -5,22 +5,61 @@
"ui": "http://www.arsdigita.com/ui/1.0"} "ui": "http://www.arsdigita.com/ui/1.0"}
> >
<#--filedoc
Funtions for processing the export links for publications.
-->
<#--doc
Gets the export links of a publication.
@param item The publication item to use.
@return A sequence of the export links of the publication.
-->
<#function getExportLinks item> <#function getExportLinks item>
<#return item["./publicationExportLink"]> <#return item["./publicationExportLink"]>
</#function> </#function>
<#--doc
Determines if the provided publication item has export links.
@param item The publication item to use.
@return `true` if the publication item has export links, `false` otherwise.
-->
<#function hasExportLinks item> <#function hasExportLinks item>
<#return (item["./publicationExportLink"]?size > 0)> <#return (item["./publicationExportLink"]?size > 0)>
</#function> </#function>
<#--doc
Constructs the URL for the export link.
@param exportLink The export link to use (as returned by `getExportLinks`).
@return The URL of the export link.
-->
<#function getHref exportLink> <#function getHref exportLink>
<#return "${dispatcherPrefix}/scipublications/export/?format=${exportLink['./formatKey']}&publication=${exportLink['./publicationId']}"> <#return "${dispatcherPrefix}/scipublications/export/?format=${exportLink['./formatKey']}&publication=${exportLink['./publicationId']}">
</#function> </#function>
<#--doc
Gets the format key of an export link.
@param exportLink The export link to use (as returned by `getExportLinks`).
@return The key for the format provided by the export link.
-->
<#function getFormatKey exportLink> <#function getFormatKey exportLink>
<#return exportLink["./formatKey"]> <#return exportLink["./formatKey"]>
</#function> </#function>
<#--doc
Gets the format name of an export link.
@param exportLink The export link to use (as returned by `getExportLinks`).
@return The of the export format provided by the export link.
-->
<#function getFormatName exportLink> <#function getFormatName exportLink>
<#return exportLink["./formatName"]> <#return exportLink["./formatName"]>
</#function> </#function>

View File

@ -7,22 +7,61 @@
<#import "../ccm-cms/content-item.ftl" as ContentItem> <#import "../ccm-cms/content-item.ftl" as ContentItem>
<#--filedoc
Functions for processing the the data of Journals.
-->
<#--doc
Gets the value of the `firstYear` property of the journal.
@param journal The journal to use.
@return The value of the `firstYear` property of the Journal.
-->
<#function getFirstYear(journal)> <#function getFirstYear(journal)>
<#return journal["./firstYear"]> <#return journal["./firstYear"]>
</#function> </#function>
<#--doc
Constructs the link to the detail view of the journal.
@param journal The journal to use.
@return The URL of the detail view of the Journal.
-->
<#function getHref journal> <#function getHref journal>
<#return ContentItem.generateContentItemLink(journal["./@oid"])> <#return ContentItem.generateContentItemLink(journal["./@oid"])>
</#function> </#function>
<#--doc
Gets the ISSN of the Journal.
@param journal The journal to use.
@return The ISSN of the Journal.
-->
<#function getIssn journal> <#function getIssn journal>
<#return journal["./issn"]> <#return journal["./issn"]>
</#function> </#function>
<#--doc
Gets the value of the `lastYear` property of the journal.
@param journal The journal to use.
@return The value of the `firstYear` property of the Journal.
-->
<#function getLastYear(journal)> <#function getLastYear(journal)>
<#return journal["./lastYear"]> <#return journal["./lastYear"]>
</#function> </#function>
<#--doc
Gets the title of the Journal.
@param journal The journal to use.
@return The title of the journal.
-->
<#function getTitle journal> <#function getTitle journal>
<#return journal["./title"]> <#return journal["./title"]>
</#function> </#function>

View File

@ -5,18 +5,50 @@
"ui": "http://www.arsdigita.com/ui/1.0"} "ui": "http://www.arsdigita.com/ui/1.0"}
> >
<#--filedoc
Functions for processing library signatures.
-->
<#--doc
Gets the library of the signature.
@param signature The signature to use.
@return The library of the signature.
-->
<#function getLibrary signature> <#function getLibrary signature>
<#return signature["./library"]> <#return signature["./library"]>
</#function> </#function>
<#--doc
Gets the libray specific signature.
@param signature The signature to use.
@return The signature associated with the book for the a specific library.
-->
<#function getSignature signature> <#function getSignature signature>
<#return signature["./signature"]> <#return signature["./signature"]>
</#function> </#function>
<#--doc
Gets the link to the library.
@param signature The signature to use.
@return The link to the library of the signature.
-->
<#function getLibraryLink signature> <#function getLibraryLink signature>
<#return signature["./libraryLink"]> <#return signature["./libraryLink"]>
</#function> </#function>
<#--doc
Gets the value of `misc` property to the signature.
@param signature The signature to use.
@return The value of `misc` of the signature.
-->
<#function getMisc signature> <#function getMisc signature>
<#return signature["./misc"]> <#return signature["./misc"]>
</#function> </#function>

View File

@ -5,6 +5,17 @@
"ui": "http://www.arsdigita.com/ui/1.0"} "ui": "http://www.arsdigita.com/ui/1.0"}
> >
<#--filedoc
Functions for processing the orderer of an expertise.
-->
<#--doc
Gets the name of the orderer.
@param orderer The orderer to use.
@return The name of the orderer.
-->
<#function getName orderer> <#function getName orderer>
<#return orderer["./title"]> <#return orderer["./title"]>
</#function> </#function>

View File

@ -7,10 +7,29 @@
<#import "../ccm-cms/content-item.ftl" as ContentItem> <#import "../ccm-cms/content-item.ftl" as ContentItem>
<#--filedoc
Functions for processing Proceedings items.
-->
<#--doc
Gets the URL of the detail view of the proceedings item.
@param proceedings The proceedings item to use.
@return The URL of the detail view of the proceedings.
-->
<#function getHref proceedings> <#function getHref proceedings>
<#return ContentItem.generateContentItemLink(proceedings["./@oid"])> <#return ContentItem.generateContentItemLink(proceedings["./@oid"])>
</#function> </#function>
<#--doc
Gets the URL of the detail of a paper (InProceedings item) of a proceedings
publication.
@param paper The InProceedings item to use.
@return The URL of the detail view of the paper.
-->
<#function getPaperHref paper> <#function getPaperHref paper>
<#return ContentItem.generateContentItemLink(paper["./@oid"])> <#return ContentItem.generateContentItemLink(paper["./@oid"])>
</#function> </#function>

View File

@ -5,50 +5,144 @@
"ui": "http://www.arsdigita.com/ui/1.0"} "ui": "http://www.arsdigita.com/ui/1.0"}
> >
<#--filedoc
Commons functions for publication types. Some functions in this
module will only work for specific publication types.
-->
<#--doc
Gets the assigned terms of an publication.
@param item The publication item to use.
@param domain The domain to use.
@return The assigned terms.
-->
<#function getAssignedTermsDomains item domain> <#function getAssignedTermsDomains item domain>
<#return item["./terms:assignedTerms/terms:term[@domain='${domain}']"]> <#return item["./terms:assignedTerms/terms:term[@domain='${domain}']"]>
</#function> </#function>
<#--doc
Gets the authors of the publication.
@param item The publication item to use.
@return A sequence of the authors of the publication. The authors can
be further processed by the functions provided by the `authors` library.
-->
<#function getAuthors item> <#function getAuthors item>
<#return item["./authors/author"]> <#return item["./authors/author"]>
</#function> </#function>
<#--doc
Gets the publisher of an publication.
@param item The publication item to use.
@return The publisher of the publication. The `publisher` library
provides functions for processing the publisher.
-->
<#function getPublisher item> <#function getPublisher item>
<#return item["./publisher"]> <#return item["./publisher"]>
</#function> </#function>
<#--doc
Gets the value of the `yearOfPublication` property of the publication.
@param item The publication item to use.
@return The value of the `yearOfPublication` property of the publication.
-->
<#function getYearOfPublication item> <#function getYearOfPublication item>
<#return item["./yearOfPublication"]> <#return item["./yearOfPublication"]>
</#function> </#function>
<#--doc
Gets the value of the `numberOfPages` property of the publication.
@param item The publication item to use.
@return The value of the `numberOfPages` property of the publication.
-->
<#function getNumberOfPages item> <#function getNumberOfPages item>
<#return item["./numberOfPages"]> <#return item["./numberOfPages"]>
</#function> </#function>
<#--doc
Gets the value of the `numberOfVolumes` property of the publication.
@param item The publication item to use.
@return The value of the `numberOfVolumes` property of the publication.
-->
<#function getNumberOfVolumes item> <#function getNumberOfVolumes item>
<#return item["./numberOfVolumes"]> <#return item["./numberOfVolumes"]>
</#function> </#function>
<#--doc
Gets the value of the `volume` property of the publication.
@param item The publication item to use.
@return The value of the `volume` property of the publication.
-->
<#function getVolume item> <#function getVolume item>
<#return item["./volume"]> <#return item["./volume"]>
</#function> </#function>
<#--doc
Gets the value of the `edition` property of the publication.
@param item The publication item to use.
@return The value of the `edition` property of the publication.
-->
<#function getEdition item> <#function getEdition item>
<#return item["./edition"]> <#return item["./edition"]>
</#function> </#function>
<#--doc
Gets the value of the `isbn` property of the publication.
@param item The publication item to use.
@return The value of the `isbn` property of the publication.
-->
<#function getIsbn item> <#function getIsbn item>
<#return item["./isbn"]> <#return item["./isbn"]>
</#function> </#function>
<#--doc
Gets the value of the `languageOfPublication` property of the publication.
@param item The publication item to use.
@return The value of the `languageOfPublication` property of the publication.
-->
<#function getLanguageOfPublication item> <#function getLanguageOfPublication item>
<#return item["./languageOfPublication"]> <#return item["./languageOfPublication"]>
</#function> </#function>
<#--doc
Gets the series associated with publication.
@param item The publication item to use.
@return A sequence of series associated with the publication. The `series`
module provides functions for processing the returned data.
-->
<#function getSeries item> <#function getSeries item>
<#return item["./series/series"]> <#return item["./series/series"]>
</#function> </#function>
<#--doc
Gets the value of the `reviewed` property of the publication.
@param item The publication item to use.
@return The value of the `reviewed` property of the publication.
-->
<#function isReviewed item> <#function isReviewed item>
<#if (item["./reviewed"]?size > 0)> <#if (item["./reviewed"]?size > 0)>
<#return item["./reviewed"] == "true"> <#return item["./reviewed"] == "true">
@ -57,122 +151,337 @@
</#if> </#if>
</#function> </#function>
<#--doc
Gets the value of the `abstract` property of the publication.
@param item The publication item to use.
@return The value of the `abstract` property of the publication.
-->
<#function getAbstract item> <#function getAbstract item>
<#return item["./abstract"]> <#return item["./abstract"]>
</#function> </#function>
<#--doc
Gets the value of the `misc` property of the publication.
@param item The publication item to use.
@return The value of the `misc` property of the publication.
-->
<#function getMisc item> <#function getMisc item>
<#return item["./misc"]> <#return item["./misc"]>
</#function> </#function>
<#--doc
Determines if the publication has a value of the `languageOfPublicatiopn` property.
@param item The publication item to use.
@return `true` if the publication has a value for the `languageOfPublication`.
-->
<#function hasPlace item> <#function hasPlace item>
<#return (item["./place"]?size > 0)> <#return (item["./place"]?size > 0)>
</#function> </#function>
<#--doc
Gets the value of the `place` property of the publication.
@param item The publication item to use.
@return The value of the `place` property of the publication.
-->
<#function getPlace item> <#function getPlace item>
<#return item["./place"].@@text> <#return item["./place"].@@text>
</#function> </#function>
<#--doc
Gets the value of the `pagesFrom` property of the publication.
@param item The publication item to use.
@return The value of the `getPagesFrom` property of the publication.
-->
<#function getPagesFrom item> <#function getPagesFrom item>
<#return item["./pagesFrom"]> <#return item["./pagesFrom"]>
</#function> </#function>
<#--doc
Gets the value of the `pagesTo` property of the publication.
@param item The publication item to use.
@return The value of the `pagesTo` property of the publication.
-->
<#function getPagesTo item> <#function getPagesTo item>
<#return item["./pagesTo"]> <#return item["./pagesTo"]>
</#function> </#function>
<#--doc
Gets the value of the `number` property of the publication.
@param item The publication item to use.
@return The value of the `number` property of the publication.
-->
<#function getNumber item> <#function getNumber item>
<#return item["./number"]> <#return item["./number"]>
</#function> </#function>
<#--doc
Gets the value of the `yearFirstPublished` property of the publication.
@param item The publication item to use.
@return The value of the `yearFirstPublished` property of the publication.
-->
<#function getYearFirstPublished item> <#function getYearFirstPublished item>
<#return item["./yearFirstPublished"]> <#return item["./yearFirstPublished"]>
</#function> </#function>
<#--doc
Gets the library signatures of the publication.
@param item The publication item to use.
@return A sequence of the library signatures associated with the
publication. The `librarySignatures` module provides functions for
processing library signatures.
-->
<#function getLibrarySignatures item> <#function getLibrarySignatures item>
<#return item["./librarysignatures/librarysignatures"]> <#return item["./librarysignatures/librarysignatures"]>
</#function> </#function>
<#--doc
Gets the organizations associated with the publication.
@param item The publication item to use.
@return A sequence of organizations associated with the publication.
-->
<#function getOrganization item> <#function getOrganization item>
<#return item["./organization"]> <#return item["./organization"]>
</#function> </#function>
<#--doc
Gets the orderer of the publication.
@param item The publication item to use.
@return A sequence or the orderers (organizations) of the publication.
-->
<#function getOrderer item> <#function getOrderer item>
<#return item["./orderer"]> <#return item["./orderer"]>
</#function> </#function>
<#--doc
Gets the value of the `issn` property of the publication.
@param item The publication item to use.
@return The value of the `issn` property of the publication.
-->
<#function getIssn item> <#function getIssn item>
<#return item["./issn"]> <#return item["./issn"]>
</#function> </#function>
<#--doc
Gets the value of the `lastAccesed` property of the publication.
@param item The publication item to use.
@return The value of the `lastAccessed` property of the publication.
-->
<#function getLastAccessed item> <#function getLastAccessed item>
<#return item["./lastAccessed"]> <#return item["./lastAccessed"]>
</#function> </#function>
<#--doc
Gets the value of the `url` property of the publication.
@param item The publication item to use.
@return The value of the `url` property of the publication.
-->
<#function getUrl item> <#function getUrl item>
<#return item["./url"]> <#return item["./url"]>
</#function> </#function>
<#--doc
Gets the value of the `urn` property of the publication.
@param item The publication item to use.
@return The value of the `urn` property of the publication.
-->
<#function getUrn item> <#function getUrn item>
<#return item["./getUrn"]> <#return item["./getUrn"]>
</#function> </#function>
<#--doc
Gets the value of the `doi` property of the publication.
@param item The publication item to use.
@return The value of the `doi` property of the publication.
-->
<#function getDoi item> <#function getDoi item>
<#return item["./doi"]> <#return item["./doi"]>
</#function> </#function>
<#--doc
Gets the value of the `issue` property of the publication.
@param item The publication item to use.
@return The value of the `issue` property of the publication.
-->
<#function getIssue item> <#function getIssue item>
<#return item["./issue"]> <#return item["./issue"]>
</#function> </#function>
<#--doc
Gets the journal associated with a publication.
@param item The publication item to use.
@return The Jornal associated with the the publication. The `journal`
module provides function for processing the journal.
-->
<#function getJournal item> <#function getJournal item>
<#return item["./journal"]> <#return item["./journal"]>
</#function> </#function>
<#--doc
Gets the collected volume associated with a publication.
@param item The publication item to use.
@return The collected volume associated with the publication. The
`collected-volume` module provides functions for processing the
collected volume.
-->
<#function getCollectedVolume item> <#function getCollectedVolume item>
<#return item["./collectedVolume"]> <#return item["./collectedVolume"]>
</#function> </#function>
<#--doc
Gets the value of the `chapter` property of the publication.
@param item The publication item to use.
@return The value of the `chapter` property of the publication.
-->
<#function getChapter item> <#function getChapter item>
<#return item["./chapter"]> <#return item["./chapter"]>
</#function> </#function>
<#--doc
Gets the value of the `nameOfConference` property of the publication.
@param item The publication item to use.
@return The value of the `nameOfConference` property of the publication.
-->
<#function getNameOfConference item> <#function getNameOfConference item>
<#return item["./nameOfConference"]> <#return item["./nameOfConference"]>
</#function> </#function>
<#--doc
Gets the value of the `placeOfConference` property of the publication.
@param item The publication item to use.
@return The value of the `placeOfConference` property of the publication.
-->
<#function getPlaceOfConference item> <#function getPlaceOfConference item>
<#return item["./placeOfConference"]> <#return item["./placeOfConference"]>
</#function> </#function>
<#--doc
Gets the value of the `dateFromOfConference` property of the publication.
@param item The publication item to use.
@return The value of the `dateFromOfConference` property of the publication.
-->
<#function getDateFromOfConference item> <#function getDateFromOfConference item>
<#return item["./dateFromOfConference"]> <#return item["./dateFromOfConference"]>
</#function> </#function>
<#--doc
Gets the value of the `dateToOfConference` property of the publication.
@param item The publication item to use.
@return The value of the `dateToOfConference` property of the publication.
-->
<#function getDateToOfConference item> <#function getDateToOfConference item>
<#return item["./dateToOfConference"]> <#return item["./dateToOfConference"]>
</#function> </#function>
<#--doc
Gets the Proceedings item associated with a InProceedings publication
@param item The publication item to use.
@return The Proceedings item associated with a InProceedings publication.
-->
<#function getProceedings item> <#function getProceedings item>
<#return item["./proceedings"]> <#return item["./proceedings"]>
</#function> </#function>
<#--doc
Gets the articles of a CollectedVolume, item or Journal.
@param item The publication item to use.
@return A sequence of articles.
-->
<#function getArticles item> <#function getArticles item>
<#return item["./articles/article"]> <#return item["./articles/article"]>
</#function> </#function>
<#--doc
Gets the papers of a Proceedings papers
@param item The publication item to use.
@return A sequence of InProccedings items.
-->
<#function getProceedingsPapers item> <#function getProceedingsPapers item>
<#return item["./papers/paper"]> <#return item["./papers/paper"]>
</#function> </#function>
<#--doc
Gets the volumes of a series.
@param item The series to use.
@return A sequence of the publications in the series.
-->
<#function getSeriesVolumes item> <#function getSeriesVolumes item>
<#return item["./volumes/publication"]> <#return item["./volumes/publication"]>
</#function> </#function>
<#--doc
Gets the value of the `event` property of the publication.
@param item The publication item to use.
@return The value of the `event` property of the publication.
-->
<#function getEvent item> <#function getEvent item>
<#return item["./event"]> <#return item["./event"]>
</#function> </#function>
<#--doc
Gets the value of the `dateOfTalk` property of the publication.
@param item The publication item to use.
@return The value of the `dateOfTalk` property of the publication.
-->
<#function getDateOfTalk item> <#function getDateOfTalk item>
<#return item["./dateOfTalk"]> <#return item["./dateOfTalk"]>
</#function> </#function>

View File

@ -1,175 +0,0 @@
# Freemarker functions for publication items.
Import Path
: `/ccm-sci-publications/publications.ftl`
## `getAssignedTermsDomains(item: Node, domain: String): Sequence<Node>`
Returns the categories from the category system with the name provided
by the `domain` parameters which are assigned to the publication.
## `getAuthors(item: Node): Sequence<Node>`
Returns the authors of the publication.
## `getPublisher(item: Node): Sequence<Node>`
Returns the publisher of the publication.
## `getYearOfPublication(item: Node): Sequence<Node>`
Returns the year of publication.
## `getNumberOfPages(item: Node): String`
Gets the number of pages of the publication.
## `getNumberOfVolumes(item: Node): String`
Gets the number of volumes of the publication.
## `getVolume(item: Node): String`
Gets the value of the `volume` property of the publication.
## `getEdition(item: Node): String`
Get the edition of the publication.
## `getIsbn(item: Node): String`
Gets the ISBN of the publication.
## `getLanguageOfPublication(item: Node): String`
Gets the language of the publication.
## `getSeries(item: Node): Node`
Gets the series to which the publication is assigned.
## `isReviewed(item: Node): boolean`
Determines if the publication is reviewed.
## `getAbstract(item: Node): String`
Returns the abstract of the publication.
## `getMisc(item: Node): String`
Returns the value of the `misc` property of the publication.
## `getExportLinks(item: Node): Sequence<Node>`
Returns the export links for the publication.
## `getPlace(item: Node): String`
Returns the value of the `place` property of the publication.
## `getPagesFrom(item: Node): String`
Returns the value of the `pagesFrom` property of the publication.
## `getPagesTo(item: Node): String`
Returns the value of the `pagesTo` property of the publication.
## `getNumber(item: Node): String`
Returns the value of the `number` property of the publication.
## `getYearFirstPublished(item: Node): String`
Returns the value of the `yearFirstPublished` property of the
publication.
## `getLibrarySignatures(item: Node): Sequence<Node>`
Returns the library signatures assigned to a publication.
## `getOrganization(item: Node): Node`
Gets the organization assigned to a publication.
## `getOrderer(item: Node): Node`
Gets the orderer assigned to a publication.
## `getIssn(item: Node): Node`
Gets the ISSN of a publication.
## `getLastAccessed(item: Node): String`
Gets the value of the `lastAccessed` property of a publication.
## `getUrl(item: Node): String`
Gets the value of the `url` property of a publication.
## `getUrn(item: Node): String`
Gets the value of the `urn` property of a publication.
## `getDoi(item: Node): String`
Gets the value of the `doi` property of a publication.
## `getIssue(item: Node): String`
Gets the issue of a publication.
## `getJournal(item: Node): Node`
Gets the journal to which a publication is assigned.
## `getCollectedVolume(item: Node): Node`
Gets the collected volume to which a publication is assigned.
## `getChapter(item: Node): String`
Gets the value of the `chapter` property of a publication.
## `getNameOfConference(item: Node): String`
Gets the name of the conference.
## `getPlaceOfConference(item: Node): String`
Gets the place of the conference.
## `getDateFromConference(item: Node): DateNode`
Gets the start date of the conference.
## `getDateToConference(item: Node): DateNode`
Gets the end date of the conference.
## `getProceedings(item: Node): Node`
Gets the proceedings to which an publication is assigned.
## `getProceedingsPapers(item: Node): Sequence<Node>`
Gets the papers of a proceedings publication item.
## `getSeriesVolume(item: Node): String`
Gets the volume of the series for a publication.
## `getEvent(item: Node): String`
Gets the value of the `event` property of a publication of the type
_talk_.
## `getDateOfTask(item: Node): DateNode`
Gets the value of the `date` property of a publication of the type
_talk_.

View File

@ -5,10 +5,28 @@
"ui": "http://www.arsdigita.com/ui/1.0"} "ui": "http://www.arsdigita.com/ui/1.0"}
> >
<#--filedoc
Functions for processing publishers.
-->
<#--doc
Gets the name of a publisher.
@param publisher The publisher to use.
@return The name of the publisher.
-->
<#function getName publisher> <#function getName publisher>
<#return publisher["./publisherName"]> <#return publisher["./publisherName"]>
</#function> </#function>
<#--doc
Gets the place of the publisher.
@param publisher The publisher to use.
@return The place of the publisher.
-->
<#function getPlace publisher> <#function getPlace publisher>
<#return publisher["./place"]> <#return publisher["./place"]>
</#function> </#function>

View File

@ -1,12 +0,0 @@
# Freemarker functions for processing Publishers
Import Path
: `/ccm-sci-publications/publisher.ftl`
## `getName(publisher: Node): String`
Gets the name of a publisher.
## `getPlace(publisher: Node): String`
Gets the place of a publisher.

View File

@ -7,22 +7,61 @@
<#import "../ccm-cms/content-item.ftl" as ContentItem> <#import "../ccm-cms/content-item.ftl" as ContentItem>
<#--filedoc
Functions for processing Series items.
-->
<#--doc
Gets the filters for the volumes list of the series.
@param series The series to use
@return A sequence of the filters for the list of volumes of the series.
-->
<#function getFilters series> <#function getFilters series>
<#return series["./filters/filter"]> <#return series["./filters/filter"]>
</#function> </#function>
<#--doc
Constructs the link to the details view of a series.
@param series The series to use.
@return The link to the detail view of the series.
-->
<#function getLink series> <#function getLink series>
<#return ContentItem.generateContentItemLink(series)> <#return ContentItem.generateContentItemLink(series)>
</#function> </#function>
<#--doc
Gets the name of the series.
@param series The series to use.
@return The name of the series.
-->
<#function getName series> <#function getName series>
<#return series["./title"]> <#return series["./title"]>
</#function> </#function>
<#--doc
Gets the volumes of the series.
@param series The series to use.
@return A sequence of the volumes of the series.
-->
<#function getVolume series> <#function getVolume series>
<#return series["./@volume"]> <#return series["./@volume"]>
</#function> </#function>
<#--doc
Gets the link to the detail view of volume of a series.
@param volume The volume to use.
@return The link to the detail view of the volume.
-->
<#function getVolumeHref volume> <#function getVolumeHref volume>
<#return ContentItem.generateContentItemLink(volume)> <#return ContentItem.generateContentItemLink(volume)>
</#function> </#function>

View File

@ -1,27 +0,0 @@
# Freemarker functions for Series
Import Path
: `/ccm-sci-publications/series.ftl`
## `getFilters(series: Node): Sequence<Node>`
Returns the filters for list of publications of the series. The
filters can be procesed by the functions provided for object list
filters.
## `getLink(series: Node): String`
Returns the link to the detail view of the series.
## `getName(series: Node): String`
Returns the name of a series.
## `getVolume(series: Node): String`
Gets the value of the `volume` property.
## `getVolumeHref(volume: Node): String`
Gets a link to a volume of a series.