Media Types

This commit is contained in:
gexce
2017-09-26 13:51:03 +02:00
parent 1e2a0c6c67
commit 22dc51df7a
2 changed files with 58 additions and 3 deletions
@@ -65,7 +65,7 @@ public class MamMigrationSelective implements CommandLineRunner {
private ObjectMapper jsonMapper = new ObjectMapper();
private List<String> locations = new ArrayList<String>();
@Override
public void run(String... strings) throws Exception {
@@ -126,8 +126,7 @@ public class MamMigrationSelective implements CommandLineRunner {
record.addClassification("BusinessUnit.CAP");
// media type
// TODO
record.addClassification("MediaType.Other");
record.addClassification(Definitions.mediaTypes.get(entry.mediaType.id));
// Fields
record.addField("byr_Title", entry.name.get("en"));