Examples of importMarcXmlFromFile()


Examples of org.culturegraph.registry.importers.MarcImporter.importMarcXmlFromFile()

    mappings.put("502 $o", "xbib://identifierUniversityScript");
   
    marcImporter.setPrimaryIdTemplate("urn:nbn:de:eki:cg$ID");
    HashMapPropertyRecordDao dao = new HashMapPropertyRecordDao();
    marcImporter.setPropertyRecordDao(dao);
    marcImporter.importMarcXmlFromFile(new File(
        "test/input/A2010titmrc_1.xml"));
    logger.info(dao);
    assertEquals(162, dao.size());
       
    PropertyRecord firstRecord = dao.get("urn:nbn:de:eki:cg010014055");
View Full Code Here

Examples of org.culturegraph.registry.importers.MarcImporter.importMarcXmlFromFile()

    //mappings.put("027 $a", "dc:identifier");     
    //mappings.put("245 $a", "title");
    MongoDao dao = MongoDao.Factory.newTestMongoDao();
    marcImporter.setPropertyRecordDao(dao);
    marcImporter.setPrimaryIdTemplate("urn:nbn:de:eki:cg$ID");
    marcImporter.importMarcXmlFromFile(new File("test/input/A2010titmrc_1.xml"));

  }

  /**
   * just a little utility method to split the big XML-Dump
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.