Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions src/RecordManager/Finna/Record/Marc.php
Original file line number Diff line number Diff line change
Expand Up @@ -2013,6 +2013,7 @@ protected function getAltTitles(): array
'p', 'r', 's', 't',
]],
[MarcHandler::GET_BOTH, '740', ['a']],
[MarcHandler::GET_BOTH, '774', ['t']],
// 979b = component part title
[MarcHandler::GET_BOTH, '979', ['b']],
// 979e = component part uniform title
Expand Down Expand Up @@ -2304,6 +2305,9 @@ protected function getAllFields(): array
'0', '4', '6', '7', '8', 'g', 'q',
'w',
],
'774' => [
'i', '9',
],
'787' => ['i'],
// Koha serial enumerations
'952' => ['a', 'b', 'c', 'o'],
Expand Down
8 changes: 7 additions & 1 deletion tests/RecordManagerTest/Finna/Record/MarcTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,9 @@ public function testMarcThesis1()
'AMK-opinnäytetyö',
'Second Sample Program',
'testaus',
'Studies towards an elephant utopia',
'997807363506253',
'On the sources of mighty mammoths',
'AMK-opinnäytetyö',
],
'language' => [
Expand Down Expand Up @@ -803,7 +806,10 @@ public function testMarcThesis1()
'title_sub' => '',
'title_short' => 'Thesis Title',
'title_full' => 'Thesis Title / Test Author',
'title_alt' => [],
'title_alt' => [
'Studies towards an elephant utopia',
'On the sources of mighty mammoths',
],
'title_old' => [],
'title_new' => [],
'title_sort' => 'thesis title test author',
Expand Down
12 changes: 12 additions & 0 deletions tests/fixtures/Finna/record/marc-thesis1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@
<subfield code="2">yso/fin</subfield>
<subfield code="0">http://www.yso.fi/onto/yso/p8471</subfield>
</datafield>
<datafield tag="774" ind1="0">
<subfield code="i">Yhteensidottuna:</subfield>
<subfield code="t">Studies towards an elephant utopia</subfield>
<subfield code="w">997807363506253</subfield>
<subfield code="9">unrelated</subfield>
</datafield>
<datafield tag="774" ind1="0">
<subfield code="i">Yhteensidottuna:</subfield>
<subfield code="t">On the sources of mighty mammoths</subfield>
<subfield code="w">997807363506253</subfield>
<subfield code="9">unrelated</subfield>
</datafield>
<datafield tag="920" ind1=" " ind2=" ">
<subfield code="a">AMK-opinnäytetyö :</subfield>
<subfield code="c">Sample Program,</subfield>
Expand Down
Loading