Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use the index of the names to link to the people

  • Loading branch information...
commit 0c52fd9e2613975b601ce9743135e945da5696e2 1 parent d38a78f
Hoss Man hossman authored
4 src/isfdb-solr-home/conf/velocity/doc_author.vm
View
@@ -13,7 +13,9 @@ Author: <b>#field('canonical_name')</b>
<div>Pseudonyms:
<ul>
#foreach($name in $doc.getFieldValues('pseudonym_names'))
- <li>$name</li>
+ #set($index = $velocityCount - 1)
+ #set($id = $doc.getFieldValues('pseudonym_ids').toArray().get($index))
+ <li><a href="#url_for_home?q=doc_id:AUTHOR_$id">$name</a></li>
#end
</ul>
</div>
4 src/isfdb-solr-home/conf/velocity/doc_title.vm
View
@@ -10,7 +10,9 @@ Title: <b>#field('title')</b> <i>#field('ttype')</i>
<div>Authors:
<ul>
#foreach($name in $doc.getFieldValues('author_names'))
- <li>$name</li>
+ #set($index = $velocityCount - 1)
+ #set($id = $doc.getFieldValues('author_ids').toArray().get($index))
+ <li><a href="#url_for_home?q=doc_id:AUTHOR_$id">$name</a></li>
#end
</ul>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.