uclibs / scholar_uc_legacy

Source code for Scholar@UC up to version 3.x. Replaced by ucrate
Other
5 stars 1 forks source link

DOIs status not updated for deleted works #1903

Closed jamesvanmil closed 6 years ago

jamesvanmil commented 6 years ago

Descriptive summary

DOI status should be updated to unavailable when a work is deleted.

We receive monthly emails when this happens, and we can manually manage problem DOIs, so this is lower priority.

Actual behavior

DOI status is not being changed when a work is deleted.

Steps to reproduce the behavior

  1. Create a work with a DOI
  2. Delete the work and visit the DOI path
jamesvanmil commented 6 years ago

Confirmed that this some simple code will flip it to unavailable:

require 'rest-client'
 RestClient.post url, "_status: unavailable", {content_type: :text}