object EnrichFromMongo extends Logging
- Alphabetic
- By Inheritance
- EnrichFromMongo
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buildIiifManifestUrl(platform: String, identifier: String): Option[String]
Build iiif manifest url based on platform and identifier
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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 ###
- 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", ... ]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getDigitalObjectPagesDetails(metsRecordXML: Elem): Seq[String]
For each page of the document, get the details of each page
- 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"
- 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
- def getDigitalReproductionLicence(metsRecordXML: Elem): Option[String]
From METS: mets:amdSec/mets:rightsMD/mets:mdWrap[@OTHERMDTYPE=”DVRIGHTS”]/mets:xmlData/dv:rights/dv:license
- def getDigitalReproductionRightOwner(metsRecordXML: Elem): Option[String]
From METS, get digital reproduction right owner
- 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
- 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
- def getIdDigitalPlatform(metsRecordXML: Elem): Option[String]
Get the id of the digital platform (VLID or Visual Library ID)
- 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)
- def getMongoClient: MongoWrapper
Get the mongo client for a given database
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)