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

Public Member Functions

 file_ext ($filename)
 
 formatDate ($date)
 
 generateAffiliationsList ($authors, $article)
 
 generateArticleDom ($doc, $journal, $issue, $section, $article)
 
 generateAuthorDom ($doc, $journal, $issue, $article, $author, $affilList)
 
 generateJournalDom ($doc, $journal, $selectedObjects)
 
 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 247 of file DOAJExportDom.inc.php.

DOAJExportDom::formatDate (   $date)

Format a date by Y-m-d format.

Parameters
$datestring
Returns
string

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

Referenced by generateArticleDom().

DOAJExportDom::generateAffiliationsList (   $authors,
  $article 
)

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

Parameters
$authorsobject Array of article authors
$articleArticle
Returns
array

Definition at line 228 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 93 of file DOAJExportDom.inc.php.

References formatDate(), generateAffiliationsList(), generateAuthorDom(), String\html2text(), 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 209 of file DOAJExportDom.inc.php.

Referenced by generateArticleDom().

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

Generate the export DOM tree for a given journal.

Parameters
$docobject DOM object
$journalobject Journal to export
$selectedObjectsarray

Definition at line 25 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 268 of file DOAJExportDom.inc.php.

Referenced by generateArticleDom().


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