Skip to content
Snippets Groups Projects
Commit a50434d9 authored by Ulf Seltmann's avatar Ulf Seltmann
Browse files

refs #9362:

* reordered switch-block in getOpenURL
* made genre 'bookitem' select book-related OpenURL params
parent 5d5754ed
No related merge requests found
...@@ -388,15 +388,23 @@ class SolrAI extends SolrDefault implements ...@@ -388,15 +388,23 @@ class SolrAI extends SolrDefault implements
$genre = $this->getAIRecord('rft.genre'); $genre = $this->getAIRecord('rft.genre');
// Set up parameters based on the format of the record: // Set up parameters based on the format of the record:
switch ($genre) { switch ($genre) {
case 'book': case "article":
$params = $this->getBookOpenURLParams();
break;
case 'article':
$params = $this->getArticleOpenURLParams(); $params = $this->getArticleOpenURLParams();
break; break;
case 'journal': case "book":
case "bookitem":
$params = $this->getBookOpenURLParams();
break;
case "journal":
$params = $this->getJournalOpenURLParams(); $params = $this->getJournalOpenURLParams();
break; break;
case "conference":
case "document":
case "issue":
case "preprint":
case "proceeding":
case "report":
case "unknown":
default: default:
$format = $this->getFormats(); $format = $this->getFormats();
$params = $this->getUnknownFormatOpenURLParams($format); $params = $this->getUnknownFormatOpenURLParams($format);
......
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