Fixed (file) comments.

This commit is contained in:
2018-06-19 18:02:04 +02:00
committed by Stefan Rohde-Enslin
parent 32345e9629
commit e3254eaaf7
13 changed files with 43 additions and 20 deletions

View File

@ -1,6 +1,7 @@
<?PHP
/**
* This file displays object detail pages as fetched from museum-digital.
* This script offers detail pages for collections
* based on data fetched from museum-digital.
*
* @author Joshua Ramon Enslin <joshua@jrenslin.de>
*/
@ -21,6 +22,8 @@ if (!isset($_GET['id']) or !is_numeric($_GET['id'])) {
ensureEnvironment();
$pages = loadPublicPages(); // Load overview of pages.
// Load data
$contents = json_decode(queryCachePage($settings['mdVersion'] . "?t=sammlung&gesusa=" . urlencode($_GET['id']) . "&output=json", "institution", $settings), true);
if (!$contents || (isset($contents[0]) and $contents[0] == "There is no collection with this ID yet.")) {