joewiz
12/13/2016 - 5:10 PM

Update career-type of chiefs of mission

Update career-type of chiefs of mission

xquery version "3.1";

(: uses eXist XQuery Update syntax :)

let $ids := 
    (
        'rodney-caesar-augustus', 'forbes-john-murray', 'baylies-francis', 'pollard-richard', 
        'watterson-harvey-magee', 'bissell-william-henry', 'peden-james-a', 'lamar-mirabeau-buonaparte', 
        'legendre-charles-william', 'white-julius', 'wilson-francis-mairs-huntington', 
        'carter-john-ridgely', 'brent-william', 'harris-william-alexander', 'pendleton-john-strother', 
        'yancey-benjamin-cudworth', 'cushman-john-franklin', 'palmer-robert-m', 'kirk-robert-crothers', 
        'asboth-alexander', 'worthington-henry-gaither', 'white-julius', 'osborn-thomas-ogden', 
        'hanna-bayless-w', 'pitkin-john-robert-graham', 'buchanan-william-insco', 'lord-william-paine', 
        'barrett-john', 'beaupre-arthur-matthias', 'eddy-spencer-fayette', 'sherrill-charles-hitchcock', 
        'garrett-john-work'
    )
let $records := collection('/db/apps/pocom/people')/person[id = $ids]
return 
    update replace $records/career-type with 'pre-1915'