Skip to content

Instantly share code, notes, and snippets.

Created July 8, 2013 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5947454 to your computer and use it in GitHub Desktop.
Save anonymous/5947454 to your computer and use it in GitHub Desktop.
*** OAIMetadataFormat_DC.inc.php.original Mon Feb 20 17:20:56 2012
--- OAIMetadataFormat_DC.inc.php Mon Feb 20 17:20:39 2012
***************
*** 99,105 ****
$this->formatElement('date', date('Y-m-d', strtotime($issue->getDatePublished()))) .
$this->formatElement('type', $types, true) .
$this->formatElement('format', $formats) .
! $this->formatElement('identifier', Request::url($journal->getPath(), 'article', 'view', array($article->getBestArticleId()))) .
(($doi = $article->getDOI())?$this->formatElement('identifier', $doi, false, array('xsi:type' => 'dcterms:DOI')):'') .
$this->formatElement('source', $sources, true) .
$this->formatElement('language', strip_tags($article->getLanguage())) .
--- 99,111 ----
$this->formatElement('date', date('Y-m-d', strtotime($issue->getDatePublished()))) .
$this->formatElement('type', $types, true) .
$this->formatElement('format', $formats) .
! $this->formatElement('identifier', Request::url($journal->getPath(), 'article', 'view', array($article->getBestArticleId()))) ;
!
! foreach ($article->getGalleys() as $galley) {
! $response .= $this->formatElement('identifier', Request::url($journal->getPath(), 'article', 'download', array($article->getBestArticleId(),$galley->getId())));
! };
!
! $response .=
(($doi = $article->getDOI())?$this->formatElement('identifier', $doi, false, array('xsi:type' => 'dcterms:DOI')):'') .
$this->formatElement('source', $sources, true) .
$this->formatElement('language', strip_tags($article->getLanguage())) .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment