use of cz.mzk.recordmanager.server.scripting.marc.MarcFunctionContext in project RecordManager2 by moravianlibrary.
the class MzkFormatFunctionsTest method photographyFormat2.
public void photographyFormat2() throws Exception {
List<String> data = new ArrayList<String>();
data.add("072 $afotografie $xfd132277");
String format = formatFunctions.getMZKFormat(new MarcFunctionContext(MarcRecordFactory.recordFactory(data)));
Assert.assertEquals(format, "Photography");
}
use of cz.mzk.recordmanager.server.scripting.marc.MarcFunctionContext in project RecordManager2 by moravianlibrary.
the class MzkFormatFunctionsTest method normFormat.
public void normFormat() throws Exception {
List<String> data = new ArrayList<String>();
data.add("991 $n norma a patenty");
String format = formatFunctions.getMZKFormat(new MarcFunctionContext(MarcRecordFactory.recordFactory(data)));
Assert.assertEquals(format, "Norm");
}
Aggregations