Changeset 3336


Ignore:
Timestamp:
08/09/13 06:00:27 (11 years ago)
Author:
mwindhouwer
Message:

M dc_change.acc

  • turn the user into an uid, so now the user paramater can be a login or a uid
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-access-data/access/dc_change.acc

    r2686 r3336  
    2626        <idoc>
    2727                <instr>
     28                        <type>ISOcat.access.data.user.id</type>
     29                        <user>var:user</user>
     30                        <target>var:user</target>
     31                </instr>
     32                <instr>
    2833                        <type>sloot.xquery</type>
    2934                        <operator>
     
    3843                                                "user"
    3944                                        )
    40                                         SELECT
    41                                                 {string($dc)} AS "owner",
    42                                                 'data category' AS "owner_type",
    43                                                 '{replace(string($change),"'","''")}' AS "text",
    44                                                 'change' AS "text_type",
    45                                                 core_user.id AS "user"
    46                                         FROM
    47                                                 core_user
    48                                         WHERE
    49                                                 core_user.login = '{string($user)}'
     45                                        VALUES
     46                                        (
     47                                                {string($dc)},
     48                                                'data category',
     49                                                '{replace(string($change),"'","''")}',
     50                                                'change',
     51                                                {string($user)}
     52                                        )
    5053                                        ;
    5154                                </sql>
Note: See TracChangeset for help on using the changeset viewer.