Open bondjimbond opened 5 years ago
Any reason this couldn't be done with Views? I'm just thinking about when you have 1000+ items...
Two reasons:
Your thoughts?
I wouldn't be too worried about the first question. All I'm saying is that if you just produce a table, you're eventually going to need to deal with pagination, etc. which might be a hassle.
By default, all .xml datastreams are slurped into their own Solr field, but that won't be of much use, unless you can do a string query for "PRESERVED" in the field the PRESERVATION datastream is indexed into (which I think is in fact possible in Views). Ideally, you would index all the elements in the PRESERVATION ds, but to get that to work, you need to add an XSLT to your gsearch configs, etc. so that's probably a no go.
So, maybe using the current approach is OK for now. But I stand by my warning about the future.
Yeah, if I could do this in Views I'd be a lot happier -- could add exposed filters and sort, for one. But while it's pretty easy to create a View that lists all objects with a PRESERVATION datastream... the question of how to read that datastream remains.
I don't know without getting my hands dirty. Maybe a query to the group will yield some suggestsions?
Just checked on my vagrant and the content of the PRESERVATION ds is not being slurped into a solr field like I thought. I was sure that all XML datastream content was indexed as a blob at the time I was developing https://github.com/SFULibrary/islandora_solution_pack_xml. Maybe the default gsearch configs have changed since then.
@mjordan Yeah, it only slurps the metadata about the PRESERVATION datastream, not the content. I think you would have to write in custom datastreams specially to get their content slurped up.
Thought: would it be possible to do this with Views PHP?
I'll have to do some experiments to see if this is plausible... If so, I may have questions about how to integrate a programmed View into a module.
Currently we have a link to a "Preserved objects list" page (admin/islandora/tools/westvault/objects), but it doesn't do anything.
It should produce the following: