Skip to content

Commit

Permalink
Avoid duplicate titles.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed Nov 29, 2024
1 parent 8fd787a commit 241e41a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Plugin/OaiMetadataMap/DgiStandard.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ protected function handleTitleParagraphs(EntityReferenceRevisionsFieldItemList $
if (!$title->isEmpty() && $title->access()) {
$alt = $value->entity->get('field_title_type');
$dest = !$alt->isEmpty() ? static::TITLE_ELEMENT_ALTERNATIVE : static::TITLE_ELEMENT_MAIN;
$this->elements[$dest][] = $title->getString();
if ($dest) {
$this->elements[$dest][] = $title->getString();
}
Expand Down

0 comments on commit 241e41a

Please sign in to comment.