o

ch.swisscollections

EnrichFromMongo

object EnrichFromMongo extends Logging

Linear Supertypes
Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EnrichFromMongo
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def buildIiifManifestUrl(platform: String, identifier: String): Option[String]

    Build iiif manifest url based on platform and identifier

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. def enrichWithERaraEManuscriptaInfo(solrRecord: String): String

    extract doi from kafka message check if it is erara / emanuscripta if no don't do anything if yes get record from mongo based on doi convert to xmlElement enrich the record with erara / emanuscripta info Details https://ub-basel.atlassian.net/wiki/spaces/RH/pages/2254012440/Implementation

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def extractPageInformation(page: Node, availableFulltexts: Seq[String]): String

    For a given page, get a string like this "2940906###Scan 2###1###0" //ID, LABEL, ORDER, Fulltext availability aus METS separated with ###

    For a given page, get a string like this "2940906###Scan 2###1###0" //ID, LABEL, ORDER, Fulltext availability aus METS separated with ###

    page

    XML Node representing the page

    availableFulltexts

    List of page identifiers where the fulltext is available

    returns

    a string like this "2940906###Scan 2###1###0" //ID, LABEL, ORDER, Fulltext availability aus METS separated with ###

  11. def getAddedFields(metsRecordXML: Elem, doi: String): String

    Adds "digital_platform": ["e-rara.ch"] //not an array, if multiple platforms available, only one is listed !$ "id_digital_platform": ["2940903"], //not an array ! "iiif_manifest_url" : ["https://www.e-rara.ch/i3f/v20/2940903/manifest"], //calculated, based on digital_object_id, platform and iiif prefix "digital_reproduction_licence" : ["pdm"], //rightsMD "digital_reproduction_right_owner" : ["Universitätsbibliothek Basel"], //rightsMD "digital_reproduction_call_number" : [""], //mets shelflocator (2 places), not available for this example "digital_object_pages_details": [ "2940906###Scan 2###1###0", //ID, LABEL, ORDER, Fulltext availability aus METS separated with ### "2940907###Scan 3###2###0", ...

    Adds "digital_platform": ["e-rara.ch"] //not an array, if multiple platforms available, only one is listed !$ "id_digital_platform": ["2940903"], //not an array ! "iiif_manifest_url" : ["https://www.e-rara.ch/i3f/v20/2940903/manifest"], //calculated, based on digital_object_id, platform and iiif prefix "digital_reproduction_licence" : ["pdm"], //rightsMD "digital_reproduction_right_owner" : ["Universitätsbibliothek Basel"], //rightsMD "digital_reproduction_call_number" : [""], //mets shelflocator (2 places), not available for this example "digital_object_pages_details": [ "2940906###Scan 2###1###0", //ID, LABEL, ORDER, Fulltext availability aus METS separated with ### "2940907###Scan 3###2###0", ... "2940912###Scan 8###7###1", ... ]

  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. def getDigitalObjectPagesDetails(metsRecordXML: Elem): Seq[String]

    For each page of the document, get the details of each page

  14. def getDigitalPlatform(metsRecordXML: Elem): Option[String]

    Get the digital platform from METS Record

    Get the digital platform from METS Record

    returns

    "e-rara.ch" or "e-manuscripta.ch"

  15. def getDigitalReproductionCallNumber(metsRecordXML: Elem): Option[String]

    Aus METS: Wenn vorhanden, dann aus mods:mods/mods:location/mods:shelfLocator Wenn nicht, dann aus mods:mods/mods:location/mods:holdingSimple/mods:copyInformation/mods:shelfLocator

  16. def getDigitalReproductionLicence(metsRecordXML: Elem): Option[String]

    From METS: mets:amdSec/mets:rightsMD/mets:mdWrap[@OTHERMDTYPE=”DVRIGHTS”]/mets:xmlData/dv:rights/dv:license

  17. def getDigitalReproductionRightOwner(metsRecordXML: Elem): Option[String]

    From METS, get digital reproduction right owner

  18. def getEplatformDoi(solrRecordXML: Elem): Option[String]

    Returns the first doi which starts with 10.3931 or 10.7891 in a Some().

    Returns the first doi which starts with 10.3931 or 10.7891 in a Some(). Otherwise None This is based on the solr record

  19. def getFulltextId(fulltext: Node): String

    To get the fulltext id corresponding to the page id, we need to remove the "ALTO" or "TR" or "HTML" prefixes

  20. def getIdDigitalPlatform(metsRecordXML: Elem): Option[String]

    Get the id of the digital platform (VLID or Visual Library ID)

  21. def getListOfAvailableFulltexts(metsRecordXML: Elem): Seq[String]

    Get the page identifiers of all the pages which have a fulltext available (in ALTO format, but this is the base for all fulltext formats)

  22. def getMongoClient: MongoWrapper

    Get the mongo client for a given database

  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. val logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped