Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S SADE
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 22
    • Issues 22
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fontane-notizbuecherfontane-notizbuecher
  • SADE
  • Merge requests
  • !55

Closes #130, minor formatting

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged mrodzis requested to merge bugfix/#130-ueberblickskommentar into develop Nov 11, 2019
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

Sometimes in the index of literary sources ("Literaturverzeichnis") cases like these occur were we have a general bibliographic entry and two volumes belonging to it:

<bibl xmlns="http://www.tei-c.org/ns/1.0" xml:id="Varnhagen_1836">
    <choice>
        <abbr>Varnhagen 1836</abbr>
        <expan>Varnhagen von Ense, Karl August: Galerie von Bildnissen aus Rahel's Umgang und Briefwechsel. 2 Bände. Leipzig: Reichenbach 1836.</expan>
    </choice>
    <idno type="SWB" xml:base="http://swb.bsz-bw.de/DB=2.1/PRS=rdf/PPNSET?PPN=">028276094</idno>
    <linkGrp targFunc="active passive">
        <link corresp="http://bibframe.org/vocab/hasInstance" target="wrk:Varnhagen_Galerie_Werk #Varnhagen_1836"/>
    </linkGrp>
    <bibl xml:id="Varnhagen_1836_I">
        <choice>
            <abbr>Varnhagen 1836 I</abbr>
            <expan>Varnhagen von Ense, Karl August: Galerie von Bildnissen aus Rahel's Umgang und Briefwechsel. Erster Theil. Leipzig: Reichenbach 1836.</expan>
        </choice>
        <idno type="URN" xml:base="http://nbn-resolving.de/urn/resolver.pl?urn=">urn:nbn:de:bvb:12-bsb10067589-4</idno>
        <ptr type="fulltext" target="http://opacplus.bsb-muenchen.de/title/BV001166103/ft/bsb10067589?page=1"/>
        <linkGrp targFunc="active passive"/>
    </bibl>
    <bibl xml:id="Varnhagen_1836_II">
        <choice>
            <abbr>Varnhagen 1836 II</abbr>
            <expan>Varnhagen von Ense, Karl August: Galerie von Bildnissen aus Rahel's Umgang und Briefwechsel. Zweiter Theil. Leipzig: Reichenbach 1836.</expan>
        </choice>
        <idno type="URN" xml:base="http://nbn-resolving.de/urn/resolver.pl?urn=">urn:nbn:de:bvb:12-bsb10067590-2</idno>
        <ptr type="fulltext" target="http://opacplus.bsb-muenchen.de/title/BV001166104/ft/bsb10067590?page=1"/>
        <linkGrp targFunc="active passive"/>
    </bibl>
</bibl>

Up until now this isn't considered and causes ueberblickskommentar.xqm to try to do string operations like replace on all descending tei:abbr which leads to the error

It is a type error if, during the static analysis phase, an expression is found to have a static type that is not appropriate for the context in which the expression occurs, or during the dynamic evaluation phase, the dynamic type of a value does not match a required type as specified by the matching rules in 2.5.4 SequenceType Matching. Invalid cardinality for parameter $vp0. Expected zero or one, got 3.

This MR solves this issue (closes #130).

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: bugfix/#130-ueberblickskommentar