ualbertalib / discovery

Discovery is the University of Alberta Libraries' catalogue interface, built using Blacklight
http://search.library.ualberta.ca
12 stars 3 forks source link

It occurs to me that I don't know how we're handling deletions #770

Closed ghost closed 8 years ago

ghost commented 8 years ago

It should be pretty straightforward - we use the "d" in the leader, I think, for the Ebsco extract, so this should work:

status_text = 000[5], ( map.record_status ), DeleteRecordIfFieldEmpty 
map.record_status .d = null 
map.record_status .displayRawIfMissing = 1 
**Note that his will insert a dummy value in all records in Solr, that do 
not have a "d" in character 5 of the leader. **
sjshores commented 8 years ago

You could confirm with Jim and Elaine.

Thanks,

Sandra

On 2 December 2015 at 13:37, redlibrarian notifications@github.com wrote:

It should be pretty straightforward - we use the "d" in the leader, I think, for the Ebsco extract, so this should work:

status_text = 000[5], ( map.record_status ), DeleteRecordIfFieldEmpty map.record_status .d = null map.record_status .displayRawIfMissing = 1 _Note that his will insert a dummy value in all records in Solr, that do not have a "d" in character 5 of the leader. _

— Reply to this email directly or view it on GitHub https://github.com/ualbertalib/discovery/issues/770.

ghost commented 8 years ago

@sjshores Yes, I'll do that. I'm pretty sure this is what we did to resolve the EDS problem we had last year.

ghost commented 8 years ago

OK, I've added the deletion logic to the symphony ingest rules. I can't really test it - we'll have to keep an eye on it. For non-symphony records (SFX, Databases), this is made trickier because either we don't use marc (Databases) or we don't use the 001 as ID (SFX). I'd recommend just running a rake delete on the whole collection before ingesting these, since they don't take very long.