diff --git a/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-author.phtml b/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-author.phtml index fdd7fe966a2d7d2667fe9236afbe083b3c190a32..de7d0c87204b0eb30c0ecd74f74f4a02c736db4c 100644 --- a/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-author.phtml +++ b/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-author.phtml @@ -1 +1,6 @@ -<?=$this->url('author-home')?>?author=<?=urlencode($this->lookfor)?> +<?php $searchRoute = $this->searchOptions($this->driver->getSourceIdentifier())->getSearchAction(); ?> +<?php if ($searchRoute === 'search-results'): // override search-results with author module ?> + <?=$this->url('author-home')?>?author=<?=urlencode($this->lookfor)?> +<?php else: ?> + <?=$this->url($searchRoute)?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Author +<?php endif; ?> diff --git a/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-journaltitle.phtml b/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-journaltitle.phtml index 154b38cbbb1d9899e131d99f74d19c5be8477e60..d238071508ca905cf894e78e820be500d550bd95 100644 --- a/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-journaltitle.phtml +++ b/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-journaltitle.phtml @@ -1 +1,2 @@ -<?=$this->url('search-results')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=JournalTitle +<?php $searchRoute = $this->searchOptions($this->driver->getSourceIdentifier())->getSearchAction(); ?> +<?=$this->url($searchRoute)?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=JournalTitle diff --git a/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-series.phtml b/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-series.phtml index 3b0406eeff76aa9ae5e463083713810713b7e265..f9aefd443a787b1cc35a373348a00636271fc075 100644 --- a/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-series.phtml +++ b/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-series.phtml @@ -1 +1,2 @@ -<?=$this->url('search-results')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Series +<?php $searchRoute = $this->searchOptions($this->driver->getSourceIdentifier())->getSearchAction(); ?> +<?=$this->url($searchRoute)?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Series diff --git a/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-subject.phtml b/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-subject.phtml index 6424a15c8860a6df7df0bb882ebbf82093c1f078..187e19bd3eb765159f4b5bac14dcfb5edcd69e2b 100644 --- a/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-subject.phtml +++ b/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-subject.phtml @@ -1 +1,2 @@ -<?=$this->url('search-results')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Subject +<?php $searchRoute = $this->searchOptions($this->driver->getSourceIdentifier())->getSearchAction(); ?> +<?=$this->url($searchRoute)?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Subject diff --git a/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-title.phtml b/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-title.phtml index 163ccdcb55b7fe8e9a02c4eceff950af447096e7..591cc334703a2df8c10a47900cfce9fab075a3d6 100644 --- a/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-title.phtml +++ b/themes/bootstrap3/templates/RecordDriver/DefaultRecord/link-title.phtml @@ -1 +1,2 @@ -<?=$this->url('search-results')?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Title +<?php $searchRoute = $this->searchOptions($this->driver->getSourceIdentifier())->getSearchAction(); ?> +<?=$this->url($searchRoute)?>?lookfor=%22<?=urlencode($this->lookfor)?>%22&type=Title