Class: QgsAcademicReference¶
Encapsulates an academic reference and formats it according to style guidelines.
Added in version 4.4.
List of all members, including inherited members
Constructor
Methods
Returns a HTML formatted representation of the reference (in APA style). |
|
Returns a plain text representation of the reference (in APA style). |
|
Returns the authors of the reference. |
|
Returns |
|
Returns the issue number. |
|
Returns the journal title. |
|
Returns the page numbers. |
|
Returns the publisher name. |
|
Sets the authors of the reference. |
|
Sets the issue number. |
|
Sets the journal title. |
|
Sets the page numbers. |
|
Sets the publisher name. |
|
Sets the title of the work. |
|
Sets the reference type. |
|
Sets the url. |
|
Sets the volume identifier. |
|
Sets the publication year. |
|
Returns the title of the work. |
|
Returns the reference type. |
|
Returns the URL. |
|
Returns the volume identifier. |
|
Returns the publication year. |
Static Methods
Creates a book reference. |
|
Creates a journal article reference. |
|
Creates a preprint reference. |
|
Creates a conference paper or presentation reference. |
|
Creates a web page or online resource reference. |
- class qgis.core.QgsAcademicReference[source]¶
Bases:
object- __init__()¶
Constructor for an invalid QgsAcademicReference.
- __init__(a0: QgsAcademicReference)
- Parameters:
a0 (QgsAcademicReference)
- asHtml(self) str[source]¶
Returns a HTML formatted representation of the reference (in APA style).
- Return type:
str
- asPlainText(self) str[source]¶
Returns a plain text representation of the reference (in APA style).
- Return type:
str
- authors(self) list[str][source]¶
Returns the authors of the reference.
See also
- Return type:
list[str]
- static createBook(authors: Iterable[str | None], year: int, title: str | None, publisher: str | None) QgsAcademicReference[source]¶
Creates a book reference.
- Parameters:
- Return type:
- static createJournalArticle(authors: Iterable[str | None], year: int, title: str | None, journal: str | None, volume: str | None = '', issue: str | None = '', pages: str | None = '') QgsAcademicReference[source]¶
Creates a journal article reference.
- Parameters:
authors (Iterable[Optional[str]]) – list of authors
year (int) – publication year
title (Optional[str]) – article title
journal (Optional[str]) – journal name
volume (Optional[str] = '') – volume identifier
issue (Optional[str] = '') – issue identifier
pages (Optional[str] = '') – page range or number
- Return type:
- static createPreprint(authors: Iterable[str | None], year: int, title: str | None, repository: str | None, url: str | None) QgsAcademicReference[source]¶
Creates a preprint reference.
- Parameters:
- Return type:
- static createPresentation(authors: Iterable[str | None], year: int, title: str | None, meeting: str | None, publisher: str | None = '', pages: str | None = '') QgsAcademicReference[source]¶
Creates a conference paper or presentation reference.
- Parameters:
- Return type:
- static createWebPage(authors: Iterable[str | None], year: int, title: str | None, url: str | None) QgsAcademicReference[source]¶
Creates a web page or online resource reference.
- Parameters:
- Return type:
- isValid(self) bool[source]¶
Returns
Falseif this is a default constructed, invalid reference.- Return type:
bool
- setAuthors(self, authors: Iterable[str | None])[source]¶
Sets the
authorsof the reference.Individual authors should be formatted using surname first, followed by a comma and the author’s initials. E.g. “Smith, J. P.”.
See also
- Parameters:
authors (Iterable[Optional[str]])
- setIssue(self, issue: str | None)[source]¶
Sets the
issuenumber.See also
- Parameters:
issue (Optional[str])
- setJournal(self, journal: str | None)[source]¶
Sets the
journaltitle.See also
- Parameters:
journal (Optional[str])
- setPages(self, pages: str | None)[source]¶
Sets the page numbers.
See also
- Parameters:
pages (Optional[str])
- setPublisher(self, publisher: str | None)[source]¶
Sets the
publishername.See also
- Parameters:
publisher (Optional[str])
- setTitle(self, title: str | None)[source]¶
Sets the
titleof the work.See also
- Parameters:
title (Optional[str])
- setType(self, type: Qgis.AcademicReferenceType)[source]¶
Sets the reference
type.See also
- Parameters:
type (Qgis.AcademicReferenceType)
- setVolume(self, volume: str | None)[source]¶
Sets the
volumeidentifier.See also
- Parameters:
volume (Optional[str])
- type(self) Qgis.AcademicReferenceType[source]¶
Returns the reference type.
See also
- Return type: