← Back to team overview

goobi-release team mailing list archive

[Question #216205]: Title array in List View

 

New question #216205 on Goobi.Presentation:
https://answers.launchpad.net/goobi-presentation/+question/216205

Every time we have got substructures like chapters in our digitized works/METS files, we encounter that the $metadata array which is being used in tx_dlf_listview::getEntry() contains a subarray that holds all mods:titles of all substructures of that work, like this:

Array
(
    [shelfmark] => Array
        (
            [0] => Mus.ms.autogr. Weber, C. M. v. 7
            [1] => Mus.ms.autogr. Weber, C. M. v. 7
        )

    [title] => Array
        (
            [0] => Der Freischütz; J 277; WeV C.7; op.77
            [1] => [title page, p. 1:] Der Freyschütze | Romantische Oper in drey Aufzügen | gedichtet, von Friedr. Kind. | Music, von Carl Maria von Weber. | Dresden. vollendet d: 13. May | 1820.
            [2] => Overtura
            [3] => [Erster Aufzug]
            [4] => Nro. 1. Introduzione: Victoria, der Meister soll leben
            [5] => Nro. 2. Terzetto con Cori: O! diese Sonne
            [6] => Nro. 3. Walzer
            [7] => [Nro. 3 Forts. Scena ed Aria]: Nein! länger trag ich nicht die Qualen
            [8] => Nro. 4. Lied: Hier im ird'schen Jammertal
            [9] => Nro. 5. Aria: Schweig! schweig! damit dich niemand warnt
            [10] => Zweyter Aufzug
            [11] => Nro. 6. Duetto: Schelm! halt fest
            [12] => Nro. 7. Arietta: Kommt ein schlanker Bursch gegangen
            [13] => Nro. 8. Scena ed Aria: Wie nahte mir der Schlummer
            [14] => Nro. 9. Terzetto: Wie? Was? Entsetzen!
            [15] => Nro. 10. Finale: Milch des Mondes fiel auf's Kraut
            [16] => Dritter Aufzug
            [17] => Nro. 11. Entre Act
            [18] => Nro. 12. Cavatina: Und ob die Wolke sie verhülle
            [19] => Nro. 13. Romanza ed Aria: Einst träumte meiner sel'gen Base
            [20] => Nro. 14 [olim: 13]. Volkslied: Wir winden dir den Jungfernkranz
            [21] => Nro. 15 [olim: 14]. Jägerchor: Was gleicht wohl auf Erden
            [22] => Nro. 16 [olim: 15]. Finale: Schaut, o schaut!
        )

    [author] => Array
        (
            [0] => Weber, Carl Maria von
        )

    [type] => Array
        (
            [0] => manuscript
        )

)

And due to the do loop in tx_dlf_listview::getEntry(), this leads to the fact that the found work does not get [title][0] as it's title in the hit list, but rather (in this example) [title][22].

Is this caused by some strange misconfiguration of ours or must it be deemed a bug in Goobi.Presentation? It is easily to be fixed for us by using a simple break; in the title part of the do loop, but only as long as we do still (?) have deduplication in search lists (see question before).

-- 
You received this question notification because you are a member of
Goobi Community Board, which is an answer contact for
Goobi.Presentation.