Class MCRClassificationAndSetMapper

java.lang.Object
org.mycore.oai.classmapping.MCRClassificationAndSetMapper

public class MCRClassificationAndSetMapper extends Object
This class maps MyCoRe classification names to set names and vice versa in OAI implementation. The mapping itself is stored in properties e.g. MCR.OAIDataProvider.OAI2.MapSetToClassification.doc-type=diniPublType
Version:
$Revision$ $Date$
Author:
Robert Stephan
  • Constructor Details

    • MCRClassificationAndSetMapper

      public MCRClassificationAndSetMapper()
  • Method Details

    • mapClassificationToSet

      public static String mapClassificationToSet(String prefix, String classid)
      maps a classification name to an OAI set name
      Parameters:
      prefix - - the properties prefix of the OAIAdapter
      classid - - the classification name
    • mapSetToClassification

      public static String mapSetToClassification(String prefix, String setid)
      maps an OAI set name to a classification name
      Parameters:
      prefix - - the property prefix for the OAIAdapter
      setid - - the set name