Skip to content
Snippets Groups Projects
Commit 40f8e8bc authored by Frank Morgner's avatar Frank Morgner
Browse files

refs #13811

* modifies order of clauses to determine genre of further OpenUrl processing
parent 493d7e40
No related merge requests found
......@@ -249,7 +249,11 @@ trait SolrDefaultFincTrait
$formats = $explode_formats($formats);
if (in_array('Book', $formats)) {
if (strlen($this->getCleanISSN()) > 0) {
return 'Journal';
} else if (strlen($this->getCleanISBN()) > 0) {
return 'Book';
} else if (in_array('Book', $formats)) {
return 'Book';
} else if (in_array('Article', $formats)) {
return 'Article';
......@@ -257,10 +261,6 @@ trait SolrDefaultFincTrait
return 'Journal';
} else if (isset($formats[0])) {
return $formats[0];
} else if (strlen($this->getCleanISSN()) > 0) {
return 'Journal';
} else if (strlen($this->getCleanISBN()) > 0) {
return 'Book';
}
return 'UnknownFormat';
}
......
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