ISOCitation | R Documentation |
ISOCitation
ISOCitation
R6Class
object.
Object of R6Class
for modelling an ISO Citation
geometa::geometaLogger
-> geometa::ISOAbstractObject
-> ISOCitation
title
title
alternateTitle
alternate title
date
date list
edition
edition
editionDate
edition date
identifier
identifier list
citedResponsibleParty
list of cited responsible parties
presentationForm
list of presentation forms
series
series
otherCitationDetails
other citation details
collectiveTitle
collective title
ISBN
ISBN
ISSN
ISSN
geometa::geometaLogger$ERROR()
geometa::geometaLogger$INFO()
geometa::geometaLogger$WARN()
geometa::ISOAbstractObject$addFieldAttrs()
geometa::ISOAbstractObject$addListElement()
geometa::ISOAbstractObject$contains()
geometa::ISOAbstractObject$createLocalisedProperty()
geometa::ISOAbstractObject$decode()
geometa::ISOAbstractObject$delListElement()
geometa::ISOAbstractObject$encode()
geometa::ISOAbstractObject$getClass()
geometa::ISOAbstractObject$getClassName()
geometa::ISOAbstractObject$getNamespaceDefinition()
geometa::ISOAbstractObject$isDocument()
geometa::ISOAbstractObject$isFieldInheritedFrom()
geometa::ISOAbstractObject$print()
geometa::ISOAbstractObject$save()
geometa::ISOAbstractObject$setAttr()
geometa::ISOAbstractObject$setCodeList()
geometa::ISOAbstractObject$setCodeListValue()
geometa::ISOAbstractObject$setCodeSpace()
geometa::ISOAbstractObject$setHref()
geometa::ISOAbstractObject$setId()
geometa::ISOAbstractObject$setIsNull()
geometa::ISOAbstractObject$setValue()
geometa::ISOAbstractObject$validate()
geometa::ISOAbstractObject$wrapBaseElement()
new()
Initializes object
ISOCitation$new(xml = NULL)
xml
object of class XMLInternalNode-class
setTitle()
Set title
ISOCitation$setTitle(title, locales = NULL)
title
title
locales
list of localized names. Default is NULL
setAlternateTitle()
Set alternate title
ISOCitation$setAlternateTitle(alternateTitle, locales = NULL)
alternateTitle
alternate title
locales
list of localized names. Default is NULL
addAlternateTitle()
Adds alternate title
ISOCitation$addAlternateTitle(alternateTitle, locales = NULL)
alternateTitle
alternate title
locales
list of localized titles. Default is NULL
TRUE
if added, FALSE
otherwise
delAlternateTitle()
Deletes alternate title
ISOCitation$delAlternateTitle(alternateTitle, locales = NULL)
alternateTitle
alternate title
locales
list of localized titles. Default is NULL
TRUE
if deleted, FALSE
otherwise
addDate()
Adds date
ISOCitation$addDate(date)
date
date
TRUE
if added, FALSE
otherwise
setEdition()
Set edition
ISOCitation$setEdition(edition, locales = NULL)
edition
edition
locales
list of localized editions. Default is NULL
setEditionDate()
Sets the edition date, either an ISODate object containing date and dateType or
a simple R date "POSIXct"/"POSIXt" object. For thesaurus citations, an ISODate
should be used while for the general citation of ISODataIdentification
,
a simple R date should be used.
ISOCitation$setEditionDate(editionDate)
editionDate
object of class Date or POSIXct
setIdentifier()
Set identifier
ISOCitation$setIdentifier(identifier)
identifier
identifier, object of class ISOMetaIdentifier
addIdentifier()
Adds identifier
ISOCitation$addIdentifier(identifier)
identifier
identifier, object of class ISOMetaIdentifier
locales
list of localized identifiers. Default is NULL
TRUE
if added, FALSE
otherwise
delIdentifier()
Deletes identifier
ISOCitation$delIdentifier(identifier)
identifier
identifier, object of class ISOMetaIdentifier
locales
list of localized identifiers. Default is NULL
TRUE
if deleted, FALSE
otherwise
setCitedResponsibleParty()
Set cited responsible party
ISOCitation$setCitedResponsibleParty(rp)
rp
cited responsible party, object of class ISOResponsibleParty
addCitedResponsibleParty()
Adds cited responsible party
ISOCitation$addCitedResponsibleParty(rp)
rp
cited responsible party, object of class ISOResponsibleParty
locales
list of localized responsible parties. Default is NULL
TRUE
if added, FALSE
otherwise
delCitedResponsibleParty()
Deletes cited responsible party
ISOCitation$delCitedResponsibleParty(rp)
rp
cited responsible party, object of class ISOResponsibleParty
locales
list of localized responsible parties. Default is NULL
TRUE
if deleted, FALSE
otherwise
setPresentationForm()
Sets presentation form
ISOCitation$setPresentationForm(presentationForm)
presentationForm
presentation form, object of class ISOPresentationForm or character among values
returned by ISOPresentationForm$values()
addPresentationForm()
Adds presentation form
ISOCitation$addPresentationForm(presentationForm)
presentationForm
presentation form, object of class ISOPresentationForm or
character among values returned by ISOPresentationForm$values()
TRUE
if added, FALSE
otherwise
delPresentationForm()
Deletes presentation form
ISOCitation$delPresentationForm(presentationForm)
presentationForm
presentation form, object of class ISOPresentationForm or
character among values returned by ISOPresentationForm$values()
TRUE
if deleted, FALSE
otherwise
setSeries()
Set series
ISOCitation$setSeries(series)
series
object of class ISOCitationSeries
setOtherCitationDetails()
Set other citation details
ISOCitation$setOtherCitationDetails(otherCitationDetails, locales = NULL)
otherCitationDetails
other citation details
locales
list of localized other citation details. Default is NULL
setCollectiveTitle()
Set collective title
ISOCitation$setCollectiveTitle(collectiveTitle, locales = NULL)
collectiveTitle
collective title
locales
list of localized titles. Default is NULL
setISBN()
Set ISBN
ISOCitation$setISBN(isbn)
isbn
isbn
setISSN()
Set ISSN
ISOCitation$setISSN(issn)
issn
issn
clone()
The objects of this class are cloneable with this method.
ISOCitation$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
ISO 19115:2003 - Geographic information – Metadata
#create ISOCitation
md <- ISOCitation$new()
md$setTitle("sometitle")
md$setEdition("1.0")
md$setEditionDate(ISOdate(2015,1,1))
md$addIdentifier(ISOMetaIdentifier$new(code = "identifier"))
md$addPresentationForm("mapDigital")
#add a cited responsible party
rp <- ISOResponsibleParty$new()
rp$setIndividualName("someone")
rp$setOrganisationName("somewhere")
rp$setPositionName("someposition")
rp$setRole("pointOfContact")
contact <- ISOContact$new()
phone <- ISOTelephone$new()
phone$setVoice("myphonenumber")
phone$setFacsimile("myfacsimile")
contact$setPhone(phone)
address <- ISOAddress$new()
address$setDeliveryPoint("theaddress")
address$setCity("thecity")
address$setPostalCode("111")
address$setCountry("France")
address$setEmail("someone@theorg.org")
contact$setAddress(address)
res <- ISOOnlineResource$new()
res$setLinkage("http://www.somewhereovertheweb.org")
res$setName("somename")
contact$setOnlineResource(res)
rp$setContactInfo(contact)
md$addCitedResponsibleParty(rp)
xml <- md$encode()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.