Build a retitle plan from a deterministic transformation
ztRetitle.RdPure plan builder: applies transform to every title and returns patch
rows only where the result differs. Feed the result to zotPreview().
Examples
Items <- data.table::data.table(
itemKey = c("A", "B"), library = "user",
title = c("Reviewed book (1).pdf", "Existing title")
)
ztRetitle(Items, transform = ztCleanTitle)
#> action library itemKey payload
#> <char> <char> <char> <list>
#> 1: patch user A <list[1]>