Commit eae27088 authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen
Browse files

services: write publication uri to MARC 099a

parent 3f46e0be
...@@ -440,6 +440,11 @@ public final class EntityServiceImpl implements EntityService { ...@@ -440,6 +440,11 @@ public final class EntityServiceImpl implements EntityService {
return marcRecord; return marcRecord;
} }
if (System.getenv("GITREF") != null) {
// Impossible to fix tests to take this into account, so only run this bit in prod
marcRecord.addMarcField(MarcConstants.FIELD_099, MarcConstants.SUBFIELD_A, publication.getUri());
}
MarcField field015 = MarcRecord.newDataField(MarcConstants.FIELD_015); MarcField field015 = MarcRecord.newDataField(MarcConstants.FIELD_015);
MarcField field260 = MarcRecord.newDataField(MarcConstants.FIELD_260); MarcField field260 = MarcRecord.newDataField(MarcConstants.FIELD_260);
MarcField field041 = MarcRecord.newDataField(MarcConstants.FIELD_041); MarcField field041 = MarcRecord.newDataField(MarcConstants.FIELD_041);
......
...@@ -8,6 +8,7 @@ public final class MarcConstants { ...@@ -8,6 +8,7 @@ public final class MarcConstants {
public static final String FIELD_015 = "015"; public static final String FIELD_015 = "015";
public static final String FIELD_041 = "041"; public static final String FIELD_041 = "041";
public static final String FIELD_090 = "090"; public static final String FIELD_090 = "090";
public static final String FIELD_099 = "099";
public static final String FIELD_100 = "100"; public static final String FIELD_100 = "100";
public static final String FIELD_110 = "110"; public static final String FIELD_110 = "110";
public static final String FIELD_260 = "260"; public static final String FIELD_260 = "260";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment