Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SQL/0000-00-02-Permission.sql
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ INSERT INTO `candidate_identifier_types`
VALUES
(
'PSCID',
'{SITE:ALIAS}{SEQUENCE:4,FORMAT:alphanumeric}',
'{SITE:ALIAS}{SEQUENCE:4,FORMAT:alphanumeric,PADDING:0}',
1, 1, 1, 0
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ INSERT INTO `candidate_identifier_types`
VALUES
(
'PSCID',
'{SITE:ALIAS}{SEQUENCE:4,FORMAT:alphanumeric}',
'{SITE:ALIAS}{SEQUENCE:4,FORMAT:alphanumeric,PADDING:0}',
1, 1, 1, 0
);

Expand Down
19 changes: 19 additions & 0 deletions modules/api/php/endpoints/candidate/candidate.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,25 @@ class Candidate extends Endpoint implements \LORIS\Middleware\ETagCalculator
}

// Delegate to sub-endpoints
if ($pathparts[0] === 'identifiers') {
array_shift($pathparts);

$newrequest = $request->withAttribute(
'pathparts',
$pathparts
);

$handler = new Identifiers(
$this->loris,
$this->_candidate
);

return $handler->process(
$newrequest,
$handler
);
}

$visit_label = urldecode(array_shift($pathparts));
$newrequest = $request
->withAttribute('pathparts', $pathparts);
Expand Down
Loading
Loading