Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Till Kinstler <kinstler@gm...> - 2011-04-18 08:23:46
Am 16.04.2011 19:59, schrieb Stephanie Funk:
> Vufind displays further titles from one author in the list next to the
> titledisplay as "Array". But when I select one of these, the title is
> displayed correctly.
"Array" usually means that PHP (or Smarty in this case) encounters a
data structure holding multiple values (in a data structure called
Array), when it expects only a single value in a variable.
It seems, here the title of the similar items records is passed in an
array to the Smarty front end. That means, the Solr search engine
returns the title in an array data structure...
Have you changed the title field in the Solr configuration to
multiValued="true"? That would explain, why titles are put in an array
> Can someone pleas tell me, if I can solve my problem in the following file
> (I found similar in this forum, but not my problem):
Assuming for some good reason the title field in Solr is multivalued and
you always want to display the "first title", you could simply change
Or do something more fancy with the additional values in the
$similar.title array there...