Skip to content

Commit

Permalink
Merge pull request #1176 from NatLibFi/issue1100-vocab-properties
Browse files Browse the repository at this point in the history
Define order for more vocabulary home page properties
  • Loading branch information
osma authored Jun 2, 2021
2 parents f690b72 + 7224250 commit 7b196d5
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion model/Vocabulary.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,24 @@ public function getInfo($lang = null)
$sparql = $this->getSparql();
$result = $sparql->queryConceptScheme($defaultcs);
$conceptscheme = $result->resource($defaultcs);
$this->order = array("dc:title", "dc11:title", "skos:prefLabel", "rdfs:label", "dc:subject", "dc11:subject", "dc:description", "dc11:description", "dc:publisher", "dc11:publisher", "dc:creator", "dc11:creator", "dc:contributor", "dc:language", "dc11:language", "owl:versionInfo", "dc:source", "dc11:source");
$this->order = array(
"dc:title", "dc11:title", "skos:prefLabel", "rdfs:label",
"dc:subject", "dc11:subject",
"dc:description", "dc11:description",
"foaf:homepage",
"dc:publisher", "dc11:publisher",
"dc:creator", "dc11:creator",
"dc:contributor",
"dc:license",
"dc:rights", "dc11:rights",
"dc:language", "dc11:language",
"owl:versionInfo",
"dc:source", "dc11:source",
"dc:relation", "dc11:relation",
"dc:created",
"dc:modified",
"dc:date", "dc11:date"
);

foreach ($conceptscheme->properties() as $prop) {
foreach ($conceptscheme->allLiterals($prop, $lang) as $val) {
Expand Down

0 comments on commit 7b196d5

Please sign in to comment.