Skip to content

Commit

Permalink
link to individual authors from title or pseudonym results
Browse files Browse the repository at this point in the history
  • Loading branch information
hossman committed Mar 21, 2011
1 parent cf533bf commit 21dd6e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/isfdb-solr-home/conf/velocity/doc_author.vm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Author: <b>#field('canonical_name')</b>
</div>

#if($doc.containsKey('birth_place'))<div>Birth Place: #field('birth_place')</div>#end
#if($doc.containsKey('real_canonical_name'))<div>Real Name: #field('real_canonical_name')</div>#end
#if($doc.containsKey('real_canonical_name'))<div>Real Name: <a href="#url_for_home?q=doc_id:AUTHOR_$doc.getFieldValue('real_author_id')">#field('real_canonical_name')</a></div>#end

#if ($doc.containsKey('pseudonym_names'))
<div>Pseudonyms:
Expand Down
2 changes: 1 addition & 1 deletion src/isfdb-solr-home/conf/velocity/doc_title.vm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Title: <b>#field('title')</b> <i>#field('ttype')</i>

#if($doc.containsKey('rating'))<div>Rating: #field('rating')</div>#end
#if (1 == $doc.getFieldValues('author_names').size())
<div>Author: #field('author_names')</div>
<div>Author: <a href="#url_for_home?q=doc_id:AUTHOR_$doc.getFieldValue('author_ids')">#field('author_names')</a></div>
#end
#if (1 < $doc.getFieldValues('author_names').size())
<div>Authors:
Expand Down

0 comments on commit 21dd6e9

Please sign in to comment.