Skip to content
Snippets Groups Projects
Commit eedb154b authored by André Lahmann's avatar André Lahmann
Browse files

refs #8087:

* added method to read imprint Solr field
* hard coded SolrMarcFincTrait->getSeries() to use SolrDefault->getSeries() in order to not access fullrecord in result-list when generating OpenURLs (Coins)
parent adaf76c8
No related merge requests found
...@@ -908,6 +908,18 @@ trait SolrDefaultFincTrait ...@@ -908,6 +908,18 @@ trait SolrDefaultFincTrait
$this->fields['publishDateSort'] : ''; $this->fields['publishDateSort'] : '';
} }
/**
* Get a precompiled string of publication details stored in the Solr field
* imprint.
*
* @return string
*/
public function getImprint()
{
return isset($this->fields['imprint']) ?
$this->fields['imprint'] : '';
}
/** /**
* Get the item's place of publication. * Get the item's place of publication.
* *
......
...@@ -515,6 +515,17 @@ trait SolrMarcFincTrait ...@@ -515,6 +515,17 @@ trait SolrMarcFincTrait
return $retval; return $retval;
} }
/**
* Hardcoded overwrite to force use of SolrDefault getSeries method in order
* to prevent fullrecord loading in result-list due to Coins generation.
*
* @return array
*/
public function getSeries()
{
return SolrDefault::getSeries();
}
/** /**
* Get an array of title detail lines with original notations combining * Get an array of title detail lines with original notations combining
* information from MARC field 245 and linked content in 880. * information from MARC field 245 and linked content in 880.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment