-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using this module with Islandora 7x-1.10 #21
Comments
More on the problem of seeing metadata specified in the islandora-solr-teaser.tpl.php file. I set up a View using the Islandora Solr Collection View on an Islandora 7x.1.7 server which works fine. Meaning, the metadata fields all show up that I have specified in the islandora-solr-teaser.tpl.php file. Moreover, if I add dpm($values); to the islandora-solr-teaser.tpl.php file in order to view the array, I see all the Solr indexes for the Islandora objects being display. But on the server with Islandora 7x.1.10, dpm(values) displays only three indexed items:
My question: Why don't views created using the Islandora Solr Collection View with Islandora 7x.1.10 modules fully populate the $values array with full Solr Indexes for the objects it is displaying. |
I just investigated the problem with the $values array on the Islandora 7x.1.10 vagrant image and get the same output from dpm($values); $values[] doesn't contain the DC metadata from Solr. This is true even when I use the default "collections" View that comes with Islandora Solr Collection View. I guess I need to now try it on HEAD. |
I just created a server with Islandora HEAD modules on it and still see that the $values[] array has only three components: but not a full set of Solr indexes like (I think) it is supposed to have. Sorry for all the messages about this. I don't use good programming tools so I'm not sure I'll be able to track down the origin of the problem but I'll try. Peter |
@petermacdonald what happens if you add new Solr fields to your view using the Views GUI, for example |
Mark:
When I add the Field "Islandora Solr: dc.title" in addition to having
"Islandora Solr: Teaser" as a Field, I still get only the PID: as follows.
…On Thu, Apr 26, 2018 at 9:52 AM, Mark Jordan ***@***.***> wrote:
@petermacdonald <https://github.com/petermacdonald> what happens if you
add new Solr fields to your view using the Views GUI, for example
`dc.title'? Do the new fields show up in your collection list display?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAqWGWby0iaQXsL8kC1tqRwezKWu63RQks5tsdEwgaJpZM4SyvHT>
.
--
Peter MacDonald,
Library Information Systems Specialist
Hamilton College Library
Clinton, New York
315 859-4493
pmacdona-hamilton (Skype)
|
Can you remove the teaser from the view display to see if any of the other fields you have added (like dc:title) show up? Another question: are you modifying the markup in the teaser template, or just adding field names? |
I just upgraded all my Islandora modules to 7x-1.10, but the collection views I used under Islandora 7x-1.9 and created using "Islandora_solr_collection_views" do not display the objects' metadata I have configured in the "islandora-solr-teaser-tpl.php" file. For example, the following code does not find anything in $values['dc.title']:
php if (isset($values['dc.title']));
If I try to force the display of dc.title: "print filter_xss($values['dc.title']['0']);" it errors out with this message:
Undefined index: dc.title in include() (line 27 of /home2/lisham/public_html/sites/sparc.hamilton.edu/themes/garland_sparc/templates/islandora-solr-teaser.tpl.php).
My question: Why has the module stopped reading my added metadata routines in the teaser.tpl file?
Thanks,
Peter
The text was updated successfully, but these errors were encountered: