Skip to content

Commit

Permalink
Process crosswalks as 'basic' types
Browse files Browse the repository at this point in the history
  • Loading branch information
bherr2 committed Sep 26, 2023
1 parent 2f36277 commit d073a54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/enrichment/enrich.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export function enrich(context) {
const obj = context.selectedDigitalObject;
sh.mkdir('-p', resolve(obj.path, 'enriched'));
header(context, 'run-enrich');
switch (obj.type) {
let processedType = obj.name.endsWith('crosswalk') ? 'basic' : obj.type;
switch (processedType) {
case 'asct-b':
enrichAsctbMetadata(context);
enrichAsctbData(context);
Expand Down
4 changes: 2 additions & 2 deletions src/normalization/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export async function normalize(context) {
const { selectedDigitalObject: obj } = context;
sh.mkdir('-p', resolve(obj.path, 'normalized'));
header(context, 'run-normalize');
let processedType = obj.type;
switch (obj.type) {
let processedType = obj.name.endsWith('crosswalk') ? 'basic' : obj.type;
switch (processedType) {
case 'asct-b':
normalizeAsctbMetadata(context);
await normalizeAsctbData(context);
Expand Down

0 comments on commit d073a54

Please sign in to comment.