Skip to content
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

Open
petermacdonald opened this issue Mar 20, 2018 · 7 comments
Open

Using this module with Islandora 7x-1.10 #21

petermacdonald opened this issue Mar 20, 2018 · 7 comments

Comments

@petermacdonald
Copy link

petermacdonald commented Mar 20, 2018

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

@petermacdonald
Copy link
Author

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:

  • PID
  • title_Link
  • thumb_link

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.

@petermacdonald
Copy link
Author

petermacdonald commented Mar 23, 2018

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.

@petermacdonald
Copy link
Author

I just created a server with Islandora HEAD modules on it and still see that the $values[] array has only three components:
PID
title_Link
thumb_link

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
Copy link
Author

@mjordan
Hi Mark.
Please review my comments in issue #21 (/islandora_solr_collection_view/issues/21).

In the meantime, I've had to discontinue using this module, but would like to resume using it if possible.

I can't get it to work in recent versions of Islandora or on HEAD.

Many thanks,
Peter

@mjordan
Copy link
Contributor

mjordan commented Apr 26, 2018

@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?

@petermacdonald
Copy link
Author

petermacdonald commented Apr 26, 2018 via email

@mjordan
Copy link
Contributor

mjordan commented Apr 26, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants