Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
DOAJExportDom Class Reference

Public Member Functions

 file_ext ($filename)
 
 formatDate ($date)
 
generateAffiliationsList ($authors)
 
generateArticleDom (&$doc, &$journal, &$issue, &$section, &$article)
 
generateAuthorDom (&$doc, &$journal, &$issue, &$article, &$author, &$affilList)
 
generateJournalDom (&$doc, &$journal)
 
 mapLang ($val)
 

Detailed Description

DOAJ import/export plugin DOM functions for export.

Definition at line 18 of file DOAJExportDom.inc.php.

Member Function Documentation

DOAJExportDom::file_ext (   $filename)

Get the file extension of a filename.

Parameters
$filename
Returns
string

Definition at line 203 of file DOAJExportDom.inc.php.

DOAJExportDom::formatDate (   $date)

Format a date by Y-m-d format.

Parameters
$datestring
Returns
string

Definition at line 212 of file DOAJExportDom.inc.php.

Referenced by generateArticleDom().

& DOAJExportDom::generateAffiliationsList (   $authors)

Generate a list of affiliations among all authors of an article.

Parameters
$authorsobject Array of article authors

Definition at line 184 of file DOAJExportDom.inc.php.

Referenced by generateArticleDom().

& DOAJExportDom::generateArticleDom ( $doc,
$journal,
$issue,
$section,
$article 
)

Generate the DOM tree for a given article.

Parameters
$docobject DOM object
$journalobject Journal
$issueobject Issue
$sectionobject Section
$articleobject Article

Definition at line 56 of file DOAJExportDom.inc.php.

References formatDate(), generateAffiliationsList(), generateAuthorDom(), mapLang(), String\substr(), and Request\url().

Referenced by generateJournalDom().

& DOAJExportDom::generateAuthorDom ( $doc,
$journal,
$issue,
$article,
$author,
$affilList 
)

Generate the author export DOM tree.

Parameters
$docobject DOM object
$journalobject Journal
$issueobject Issue
$articleobject Article
$authorobject Author
$affilListarray List of author affiliations

Definition at line 167 of file DOAJExportDom.inc.php.

Referenced by generateArticleDom().

& DOAJExportDom::generateJournalDom ( $doc,
$journal 
)

Generate the export DOM tree for a given journal.

Parameters
$docobject DOM object
$journalobject Journal to export

Definition at line 24 of file DOAJExportDom.inc.php.

References generateArticleDom(), and DAORegistry\getDAO().

Referenced by DOAJPlugin\exportJournal().

DOAJExportDom::mapLang (   $val)

Map a language from a 2-letter code to a 3-letter code. FIXME: This should be moved to XML and reconciled against other mapping implementations.

Parameters
$valstring 2-letter language code to map
Returns
string

Definition at line 224 of file DOAJExportDom.inc.php.

Referenced by generateArticleDom().


The documentation for this class was generated from the following file: