Skip to content

Commit

Permalink
remove proxy from mjr (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
southeo authored Oct 28, 2024
1 parent bf2d3bd commit 007ae5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public String createJobRecordForDisscover(Annotation annotation, String orcid) {
handle,
JobState.RUNNING,
"DISSCOVER",
annotation.getOaHasTarget().getId(),
annotation.getOaHasTarget().getId().replaceAll("https://(doi\\.org|hdl\\.handle\\.net)/", ""),
getMjrTargetType(annotation),
orcid,
true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package eu.dissco.backend.service;

import static eu.dissco.backend.TestUtils.HANDLE;
import static eu.dissco.backend.TestUtils.ID;
import static eu.dissco.backend.TestUtils.ID_ALT;
import static eu.dissco.backend.TestUtils.MAPPER;
Expand Down Expand Up @@ -157,7 +158,7 @@ void testCreateMasJobRecordForDissco() {
JOB_ID,
JobState.RUNNING,
"DISSCOVER",
TARGET_ID,
TARGET_ID.replace(HANDLE,""),
MjrTargetType.DIGITAL_SPECIMEN,
ORCID,
true,
Expand All @@ -180,7 +181,7 @@ void testCreateMasJobRecordForDisscoMedia() {
JOB_ID,
JobState.RUNNING,
"DISSCOVER",
TARGET_ID,
TARGET_ID.replace(HANDLE,""),
MjrTargetType.MEDIA_OBJECT,
ORCID,
true,
Expand Down

0 comments on commit 007ae5c

Please sign in to comment.