package eu.dnetlib.hope.domains.archive import java.util.List import eu.dnetlib.hope.domains.common.* /** * Fields that can be used in any level of c elements (did element excluded). * * @author alessia * */ class EadCElement { String europeanaType, europeanaRights String pid, level, thumbnail List bioghistPars, custodHistPars, acquinfoPars, scopecontentPars, appraisalPars, acrualsPars, arrangmentPars, accessrestrictPars,userrestrictPars, phystechPars, otherfindaids, originalslocs, altformavails, relatedmaterials, separatedmaterials, bibliographies List controlAccesses EadDaoLoc landingPage; List originalsLocs } class EadControlAccess { String controlaccess, language List persNames, corpNames, famNames, materials, subjects, geognames } /*Mid levels are for fonds, subfonds, series, subseries, etc, that is everything that is a c element but not at item level.*/ class EadMidLevel extends EadCElement{ EadDid did; List nestedLevels List items } class EadDid { /** * Identifiers. Mapped to unitId with different type attributes. */ String callNumber, localId; /** * Titles and dates. */ List unittitles; List alternativeTitles; List parentTitles; List unitdates; List physicalDescriptions; List originations; String repository; List langmaterials; List notes, odds } class EadDate{ String normal, value; } class EadItem extends EadCElement { EadDid did String daogrpId, daogrpPid, type, rights int numberOfEntries List languages //TODO: check this: transcription should be a list of transcription strings? String transcription, localIDNext List daolocs } class EadOrigination { String origination, language List persnames, corpnames } class EadPhysDesc { /** * Elements for the physical description. Extent and genreform are subelements of physdesc. */ String physdesc, language List extents, genreforms; } class EadDaoLoc { String href, label; } class Language{ String code, text } class UnitTitle{ String title, date, normalDate, language @Override public String toString() { return "UnitTitle [title=" + title + ", date=" + date + ", normalDate=" + normalDate + ", language=" + language + "]"; } }