eXistSolutions / LGPN

1 stars 0 forks source link

place name Antioch (syria) #169

Closed JSBLGPN closed 6 years ago

JSBLGPN commented 6 years ago

For this place name , there is no box for pleiades number... thanks

tuurma commented 6 years ago
xquery version "3.1";
declare namespace tei="http://www.tei-c.org/ns/1.0";

let $pleiades:=
    <location xmlns="http://www.tei-c.org/ns/1.0" type="pleiades">
        <label/>
    </location>

for $i in collection("/db/apps/lgpn-data/data")//tei:place[not(tei:location[@type='pleiades'])]
return
    update insert $pleiades into $i 
tuurma commented 6 years ago

Fixed with the conversion above, along with a number of similar cases