Documentation

MetadataController extends ArcheBaseController
in package

Description of MetadataController

Tags
author

nczirjak

Table of Contents

Constants

LINKSET_SERVICE_URL  = 'https://arche-linkset.acdh.oeaw.ac.at/'

Properties

$config  : Config
$helper  : mixed
$model  : mixed
$ontology  : Ontology
$pdo  : PDO
$repoDb  : RepoDb
$schema  : Schema
$siteLang  : mixed

Methods

__construct()  : mixed
detailAjaxView()  : Response
This function is called if the user is jumping inside the arche content, it will rerender the metadata view
detailView()  : string
Resource Metadata view
discoverView()  : string
The main discover/smartsearch view
displayAccessibilityPage()  : mixed
redirectOldDetailView()  : mixed
we have to redirect the old metadata url to the new one old: oeaw_detail new: metadata
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
attachLinksetSignposting()  : void
Advertise the reusable ARCHE linkset service for this landing page.
checkTmpDirs()  : mixed
getCurrentLanguage()  : type
Get the site actual language
getLinksetLinks()  : array<string|int, mixed>
Build linkset service URLs for both supported serializations.

Constants

LINKSET_SERVICE_URL

private mixed LINKSET_SERVICE_URL = 'https://arche-linkset.acdh.oeaw.ac.at/'

Properties

Methods

detailAjaxView()

This function is called if the user is jumping inside the arche content, it will rerender the metadata view

public detailAjaxView(string $identifier) : Response
Parameters
$identifier : string
Return values
Response

detailView()

Resource Metadata view

public detailView(string $identifier) : string
Parameters
$identifier : string
Return values
string

discoverView()

The main discover/smartsearch view

public discoverView([type $str = NULL ]) : string
Parameters
$str : type = NULL
Return values
string

redirectOldDetailView()

we have to redirect the old metadata url to the new one old: oeaw_detail new: metadata

public redirectOldDetailView(string $identifier) : mixed
Parameters
$identifier : string

changeAPILanguage()

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

attachLinksetSignposting()

Advertise the reusable ARCHE linkset service for this landing page.

private attachLinksetSignposting(array<string|int, mixed> &$build, ResourceCoreObject $resource) : void
Parameters
$build : array<string|int, mixed>
$resource : ResourceCoreObject

getCurrentLanguage()

Get the site actual language

private getCurrentLanguage() : type
Return values
type

Build linkset service URLs for both supported serializations.

private getLinksetLinks(string $resourceUri) : array<string|int, mixed>
Parameters
$resourceUri : string
Return values
array<string|int, mixed>

        
On this page

Search results