/** * Assign necessary Smarty variables and return a template name to * load in order to display core metadata (the details shown in the * top portion of the record view pages, above the tabs). * * @return string Name of Smarty template file to display. * @access public */ public function getCoreMetadata() { global $configArray; global $interface; $template = parent::getCoreMetadata(); $interface->assign('coreIsPartOfArchiveSeries', $this->isPartOfArchiveSeries()); $interface->assign('coreOrigination', $this->getOrigination()); $interface->assign('coreOriginationId', $this->getOriginationID()); $interface->assign('corePhysicalLocation', $this->getPhysicalLocation()); if ($this->record->did->daogrp) { $interface->assign('coreDigitizedMaterial', true); } $interface->assign('coreIdentifier', $this->getIdentifier()); $interface->assign('coreSubjects', isset($this->fields['topic']) ? $this->fields['topic'] : array()); $interface->assign('coreGeographicSubjects', isset($this->fields['geographic']) ? $this->fields['geographic'] : array()); if (isset($this->fields['measurements'])) { $interface->assign('coreMeasurements', $this->fields['measurements']); } $datasource = $this->fields['datasource_str_mv'][0]; if (isset($configArray['Record']['ead_document_order_link_template'][$datasource])) { $interface->assign('coreDocumentOrderLinkTemplate', $configArray['Record']['ead_document_order_link_template'][$datasource]); } if (isset($configArray['Record']['ead_usage_permission_request_link_template'][$datasource])) { $interface->assign('coreUsagePermissionRequestLinkTemplate', $configArray['Record']['ead_usage_permission_request_link_template'][$datasource]); } if (isset($configArray['Record']['ead_external_link_template'][$datasource])) { $interface->assign('coreExternalLinkTemplate', $configArray['Record']['ead_external_link_template'][$datasource]); } $unitId = $this->record->xpath("did/unitid"); if (count($unitId)) { $interface->assign('coreReferenceCode', (string) $unitId[0]); } return 'RecordDrivers/Ead/core.tpl'; }
/** * Assign necessary Smarty variables and return a template name to * load in order to display core metadata (the details shown in the * top portion of the record view pages, above the tabs). * * @return string Name of Smarty template file to display. * @access public */ public function getCoreMetadata() { global $interface; parent::getCoreMetadata(); $interface->assign('coreAbstracts', $this->getAbstracts()); return 'RecordDrivers/Qdc/core.tpl'; }
/** * Assign necessary Smarty variables and return a template name to * load in order to display core metadata (the details shown in the * top portion of the record view pages, above the tabs). * * @return string Name of Smarty template file to display. * @access public */ public function getCoreMetadata() { global $interface; parent::getCoreMetadata(); $interface->assign('coreImages', $this->getAllImages()); $interface->assign('coreSubjectDates', $this->getSubjectDates()); $interface->assign('coreSubjectPlaces', $this->getSubjectPlaces()); $interface->assign('coreSubjectActors', $this->getSubjectActors()); $interface->assign('coreSubjectDetails', $this->getSubjectDetails()); $interface->assign('coreFormatClassifications', $this->getFormatClassifications()); $interface->assign('coreMeasurements', $this->getMeasurements()); $interface->assign('coreEvents', $this->getEvents()); $interface->assign('coreInscriptions', $this->getInscriptions()); $interface->assign('coreWebResource', $this->getWebResource()); $interface->assign('coreLocalIdentifiers', $this->getLocalIdentifiers()); // todo: corerights $interface->assign('coreIdentifier', $this->getIdentifier()); return 'RecordDrivers/Lido/core.tpl'; }
/** * Overload the IndexRecord method to include other references from MARC field 787. * * @return string Name of Smarty template file to display. * @access public */ public function getCoreMetadata() { global $configArray; global $interface; $interface->assign('coreOtherLinks', $this->getOtherLinks()); $interface->assign('coreUniformTitles', $this->getUniformTitles()); // Call the parent method: return parent::getCoreMetadata(); }