bondjimbond / islandora_westvault

Automated preservation for Islandora objects
GNU General Public License v3.0
1 stars 1 forks source link

Add list of preserved objects #43

Open bondjimbond opened 5 years ago

bondjimbond commented 5 years ago

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:

mjordan commented 5 years ago

Any reason this couldn't be done with Views? I'm just thinking about when you have 1000+ items...

bondjimbond commented 5 years ago

Two reasons:

  1. I don't know how to do it (insert a View using code)
  2. I'm not sure that the XML-reading function at https://github.com/bondjimbond/islandora_westvault/pull/44/files#diff-7b756ae198963ede91c86d52f1385db8R147 to produce the "PRESERVED" or "PENDING" result could be done with Views

Your thoughts?

mjordan commented 5 years ago

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.

bondjimbond commented 5 years ago

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.

mjordan commented 5 years ago

I don't know without getting my hands dirty. Maybe a query to the group will yield some suggestsions?

mjordan commented 5 years ago

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.

bondjimbond commented 5 years ago

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

bondjimbond commented 5 years ago

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.