Skip to content

Commit

Permalink
Merge pull request #1305 from libris/feature/lxl-4263-set-missing-des…
Browse files Browse the repository at this point in the history
…cription-modifier

Add cleanup script
  • Loading branch information
kwahlin authored Sep 12, 2023
2 parents 1cb9737 + 9226346 commit faf7e44
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
def where = """
changedIn = 'batch import'
and modified > '2023-09-07' and modified < '2023-09-09'
and data#>'{@graph,0,descriptionLastModifier,@id}' = 'null'
"""

selectBySqlWhere(where) {
def record = it.graph[0]
record['descriptionCreator'] = ['@id':'https://libris.kb.se/library/SEK']
record['descriptionLastModifier'] = ['@id':'https://libris.kb.se/library/SEK']
it.scheduleSave()
}

0 comments on commit faf7e44

Please sign in to comment.