DisseminationController
extends ArcheBaseController
in package
Description of MetadataController
Tags
Table of Contents
Properties
- $config : Config
- $helper : mixed
- $model : mixed
- $ontology : Ontology
- $pdo : PDO
- $repoDb : RepoDb
- $schema : Schema
- $siteLang : mixed
- $tmpDir : mixed
Methods
- __construct() : mixed
- audioView() : type
- The Audio player dissemination view
- collectionDownloadScript() : Response
- Return the collection download python script
- iiifView() : type
- Image viewer dissemination view
- pdfView() : type
- The PDF viewer dissemination view
- threedView() : Response
- This function is called if the user is jumping inside the arche content, it will rerender the metadata view
- changeAPILanguage() : void
- If the API needs a different response language then we have to change the session lang params to get the desired lang string translation
- changeCDLSText() : string
- Chnage the pyton file content
- checkTmpDirs() : mixed
- fetchBasicData() : object
- We have to fetch the basic data for the resource (title, description, etc.
- getCurrentLanguage() : type
- Get the site actual language
- getDissServices() : array<string|int, mixed>
- Get the available diss services for a given resource
- processCDLData() : string
- Get the pyton file and change the content
- setTmpDir() : mixed
Properties
$config
protected
Config
$config
$helper
protected
mixed
$helper
$model
protected
mixed
$model
$ontology
protected
Ontology
$ontology
$pdo
protected
PDO
$pdo
$repoDb
protected
RepoDb
$repoDb
$schema
protected
Schema
$schema
$siteLang
protected
mixed
$siteLang
$tmpDir
private
mixed
$tmpDir
Methods
__construct()
public
__construct() : mixed
audioView()
The Audio player dissemination view
public
audioView(string $identifier) : type
Parameters
- $identifier : string
Return values
typecollectionDownloadScript()
Return the collection download python script
public
collectionDownloadScript(string $identifier) : Response
Parameters
- $identifier : string
Return values
ResponseiiifView()
Image viewer dissemination view
public
iiifView(string $identifier) : type
Parameters
- $identifier : string
Return values
typepdfView()
The PDF viewer dissemination view
public
pdfView(string $identifier) : type
Parameters
- $identifier : string
Return values
typethreedView()
This function is called if the user is jumping inside the arche content, it will rerender the metadata view
public
threedView(string $identifier) : Response
Parameters
- $identifier : string
Return values
ResponsechangeAPILanguage()
If the API needs a different response language then we have to change the session lang params to get the desired lang string translation
protected
changeAPILanguage(string $lang) : void
Parameters
- $lang : string
changeCDLSText()
Chnage the pyton file content
private
changeCDLSText(string $text, string $repoUrl) : string
Parameters
- $text : string
- $repoUrl : string
Return values
stringcheckTmpDirs()
private
checkTmpDirs() : mixed
fetchBasicData()
We have to fetch the basic data for the resource (title, description, etc.
private
fetchBasicData(string $identifier) : object
.
Parameters
- $identifier : string
Return values
objectgetCurrentLanguage()
Get the site actual language
private
getCurrentLanguage() : type
Return values
typegetDissServices()
Get the available diss services for a given resource
private
getDissServices(string $id) : array<string|int, mixed>
Parameters
- $id : string
Return values
array<string|int, mixed>processCDLData()
Get the pyton file and change the content
private
processCDLData(string $repoUrl) : string
Parameters
- $repoUrl : string
Return values
stringsetTmpDir()
private
setTmpDir() : mixed