Skip to content

Commit

Permalink
[FINNA-1243] Try different function
Browse files Browse the repository at this point in the history
  • Loading branch information
tmikkonen committed Apr 9, 2024
1 parent 72ed314 commit 34e282e
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,12 @@

namespace Finna\RecordDriver\Feature;

use Vufind\RecordDriver\Feature\MarcReaderTrait;
use VuFind\RecordDriver\Feature\VersionAwareInterface;
use VuFindSearch\Command\RetrieveCommand;
use VuFindSearch\Command\SearchCommand;
use VuFindSearch\Query\WorkKeysQuery;

use function array_filter;
use function array_merge;
use function array_search;
use function array_unique;
use function in_array;
use function intval;
use function is_array;
Expand Down Expand Up @@ -584,9 +581,9 @@ public function getOriginalLanguages()
{
$languages = array_unique(array_filter(array_merge(
// 041h - language code of original
$this->getMarcReader()->getFieldsSubfields('041', ['h'], false, true, true),
$this->getFieldArray('041', ['h'], false, true, true),
// 979i - component part original language
$this->getMarcReader()->getFieldsSubfields('979', ['i'], false, true, true)
$this->getFieldArray('979', ['i'], false, true, true)
)));
if (!empty($languages)) {
foreach ($this->getMarcReader()->getFields('041') as $field) {
Expand Down

0 comments on commit 34e282e

Please sign in to comment.