Skip to content

structured citations #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: stable-3_5_0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions classes/ArticleBack.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,30 @@
/**
* @file ArticleBack.php
*
* Copyright (c) 2003-2022 Simon Fraser University
* Copyright (c) 2003-2022 John Willinsky
* Copyright (c) 2003-2025 Simon Fraser University
* Copyright (c) 2003-2025 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file LICENSE.
*
* @brief JATS xml article back element
*/

namespace APP\plugins\generic\jatsTemplate\classes;

use PKP\db\DAORegistry;
use APP\publication\Publication;
use DOMDocument;
use DOMNode;

class ArticleBack extends \DOMDocument
class ArticleBack extends DOMDocument
{
/**
* create xml back DOMNode
* @param $publication
* @return \DOMNode
*/
public function create($publication): \DOMNode
public function create(Publication $publication): DOMNode
{
// create element back
$backElement = $this->appendChild($this->createElement('back'));

$citationDao = DAORegistry::getDAO('CitationDAO');
$citations = $citationDao->getByPublicationId($publication->getId())->toArray();
$citations = $publication->getData('citations');
if (count($citations)) {
// create element ref-list
$refListElement = $backElement->appendChild($this->createElement('ref-list'));
Expand Down