Skip to content

Commit ce6408f

Browse files
committed
workflow: update avlxml lookup path
1 parent 3e93d04 commit ce6408f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

hack/test-dpj/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ content-creation:
2525
@echo "--> Creating package: $(TMPDIR)/$(UUID)"
2626
@mkdir -p $(TMPDIR)/$(UUID)
2727
@rsync --exclude=".gitkeep" -aq $(CURDIR)/contents/ $(TMPDIR)/$(UUID)/
28-
@echo "<xml/>" > $(TMPDIR)/$(UUID)/DPJ/journal/$(UUID).xml
2928
@if [ "$(FIXITY_ERR)" = "yes" ]; then \
3029
mkdir -p $(TMPDIR)/metadata; \
31-
echo "2eb15cb1834214b05d0083c691f9545f $(UUID)/DPJ/journal/$(UUID).xml" > $(TMPDIR)/metadata/checksum.md5; \
30+
echo "2eb15cb1834214b05d0083c691f9545f $(UUID)/DPJ-SIP/journal/avlxml.xml" > $(TMPDIR)/metadata/checksum.md5; \
3231
fi
3332

3433
err: FIXITY_ERR = yes
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<xml>...</xml>

internal/workflow/hari_activity.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ func (a UpdateHARIActivity) url() (string, error) {
7575
}
7676

7777
func (a UpdateHARIActivity) sendRequest(ctx context.Context, apiURL string, tinfo *TransferInfo) error {
78-
// Location of AVLXML, e.g.: // e.g. `/transfer-path/<uuid>/<kind>/journal/<uuid>.xml`.
79-
var path = filepath.Join(tinfo.Bundle.FullPath, tinfo.OriginalID, tinfo.Bundle.Kind, "journal", tinfo.OriginalID+".xml")
78+
// Location of AVLXML, e.g.: // e.g. `/transfer-path/<uuid>/<kind>/journal/avlxml.xml`.
79+
var path = filepath.Join(tinfo.Bundle.FullPath, tinfo.OriginalID, tinfo.Bundle.Kind, "journal/avlxml.xml")
8080

8181
// Is there a better way to do this? We need to build the JSON document but
8282
// maybe this can be done with a buffer?

0 commit comments

Comments
 (0)