headScript()->appendFile('record.js'); $this->headScript()->appendFile('check_save_statuses.js'); // Activate Syndetics Plus if necessary: if ($this->syndeticsPlus()->isActive()) { $this->headScript()->appendFile($this->syndeticsPlus()->getScript()); } // Add any extra scripts the tabs require: foreach ($this->tabsExtraScripts as $script) { $this->headScript()->appendFile($script); } // Add RDF header link if applicable: if ($this->export()->recordSupportsFormat($this->driver, 'RDF')) { $this->headLink()->appendAlternate($this->recordLinker()->getActionUrl($this->driver, 'RDF', options: ['excludeSearchId' => true]), 'application/rdf+xml', 'RDF Representation'); } // Add canonical header link for SEO: $canonicalUrl = $this->recordLinker()->getUrl($this->driver, ['excludeSearchId' => true]); $this->headLink(['rel' => 'canonical', 'href' => $canonicalUrl]); // Set flag for special cases relating to full-width hierarchy tree tab: $tree = (strtolower($this->activeTab) == 'hierarchytree'); // Set up breadcrumbs: $lastSearch = $this->searchMemory()->getLastSearchLink($this->transEsc('Search')); if (!empty($lastSearch)) { $this->layout()->breadcrumbs = '