Skip to content

Commit

Permalink
rm Svl elib fake deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
kaipoykio committed Nov 25, 2024
1 parent 7e43ac1 commit 66432e0
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//241125 KP, removes all fake deleted holds for Svl with 'origin:Elib'

String Svl_elib_holds = """
collection = 'hold'
and data#>>'{@graph,1,heldBy,@id}' = 'https://libris.kb.se/library/Svl'
and data#>'{@graph,1,cataloguersNote}' @> '["origin:Elib"]'::jsonb
and data#>'{@graph,1,cataloguersNote}' @> '["deleted"]'::jsonb
and deleted = false
"""


selectBySqlWhere(Svl_elib_holds) { d ->
//def hold = d.getGraph()
//def id = hold[0].'@id'
//println('I: ' + id)
//println(hold)
d.scheduleDelete(loud: true)
}

0 comments on commit 66432e0

Please sign in to comment.