diff --git a/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php b/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php index f4ea71715dbdae55ec3fd5755091695e7fbb86f5..ab5c367796b72107382bb7a293eec96df93c4d44 100644 --- a/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php +++ b/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php @@ -135,6 +135,16 @@ class SolrDefault extends DefaultRecord parent::__construct($mainConfig, $recordConfig, $searchSettings); } + /** + * Get the date this record was first indexed (if set). + * + * @return string + */ + public function getFirstIndexed() + { + return $this->fields['first_indexed'] ?? ''; + } + /** * Get highlighting details from the object. *