Changeset 4657


Ignore:
Timestamp:
03/07/14 16:44:39 (10 years ago)
Author:
andmor
Message:

Modified 'NEW' and 'SINK' queries to update the original documents after updating the database

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/SCHEMAcat/trunk/urn.org.isocat.schemacat.access.data/access/schemaAuthorizedIDs.dpml

    r4568 r4657  
    135135                                                error(xs:QName('sc:accessSchemaIdNotSupplied'),'ERROR updating schema access: schema ID not supplied!')
    136136                                            else
    137                                                 (db:output(element sc:response {attribute success {'true'}, element sc:written-data {$newAccessRules} }), replace node /sc:schema[@xml:id = $schemaID]/sc:access with $newAccessRules)
     137                                                (
     138                                                let $db-name := db:name(/sc:schema[@xml:id = $schemaID])
     139                                                return
     140                                                    (db:output(element sc:response {attribute success {'true'}, element sc:written-data {$newAccessRules} }), replace node /sc:schema[@xml:id = $schemaID]/sc:access with $newAccessRules,
     141                                                    put(/sc:schema[@xml:id = $schemaID], concat(string(db:list-details()[. = $db-name]/@path), file:dir-separator(),db:path(/sc:schema[@xml:id = $schemaID]))))
     142                                                )
    138143                                    </query>
    139144                                </literal>
Note: See TracChangeset for help on using the changeset viewer.