Skip to content
Snippets Groups Projects
Commit 03d3dfdf authored by Charlotte Bataille's avatar Charlotte Bataille
Browse files

fix/21614 : WIP list used archival profiles

parent bcd61fbe
No related branches found
No related tags found
No related merge requests found
Pipeline #19701 failed
......@@ -619,4 +619,13 @@ class archivalProfile
return $archivalProfile->archivalProfileId;
}
/**
* Get identifiers of used archival profiles reference
*
* @return recordsManagement/archivalProfile[] Array of archival profiles
*/
public function getUsedArchivalProfilesReference() {
return $this->sdoFactory->summarise("organization/archivalProfileAccess","archivalProfileReference");
}
}
......@@ -129,4 +129,11 @@ interface archivalProfileInterface
*/
public function readArchivalprofileExport_profileReference_();
/**
* Get used archival profiles reference
*
* @action recordsManagement/archivalProfile/getUsedArchivalProfilesReference
*/
public function readUsedArchivalProfiles();
}
......@@ -61,6 +61,7 @@ class archivalProfile
public function index()
{
$archivalProfiles = \laabs::callService('recordsManagement/archivalProfile/readIndex');
$usedArchivalProfiles = \laabs::callService('recordsManagement/archivalProfile/readUsedArchivalProfiles');
$this->view->addContentFile('recordsManagement/archivalProfile/index.html');
......@@ -71,6 +72,7 @@ class archivalProfile
$this->view->translate();
$this->view->setSource("profile", $archivalProfiles);
var_dump($usedArchivalProfiles);
$this->view->merge();
return $this->view->saveHtml();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment