Skip to content

Commit

Permalink
Delete holdings linkserv Kdig (#1289)
Browse files Browse the repository at this point in the history
* Create Delete-holdings-linkserv-Kdig.groovy

* Add ID file
  • Loading branch information
poacherone authored Aug 21, 2023
1 parent 9049542 commit 1c54cd2
Show file tree
Hide file tree
Showing 2 changed files with 24,187 additions and 0 deletions.
10 changes: 10 additions & 0 deletions whelktool/scripts/syslib/2023/Delete-holdings-linkserv-Kdig.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
String SIGEL_TO_DELETE = 'Kdig'
String HOLD_ID_FILE = 'Kdig-diff-ID-no-eebo.txt'

File holdsToRemove = new File(scriptDir, HOLD_ID_FILE)

selectByIds( holdsToRemove.readLines() ) { hold ->
if (hold.doc.getHeldBySigel() == SIGEL_TO_DELETE) {
hold.scheduleDelete(loud: true)
}
}
Loading

0 comments on commit 1c54cd2

Please sign in to comment.