Changeset 27296


Ignore:
Timestamp:
05/03/13 18:48:33 (8 years ago)
Author:
ak19
Message:

Switched over from calling get-archives-metadata to get-index-metadata when loading existing user comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/macros/style.dm

    r27294 r27296  
    276276    // from the archives folder, where it is arranged easier than in index because it's in sequence already.
    277277
    278     username = gsapi.getArchivesMetadata(doc_id, "username", metapos);
     278    username = gsapi.getDocumentMetadata(doc_id, "username", metapos);
    279279   
    280280    // Keep looping, retrieving username, comment and timestamp
     
    293293        \}
    294294   
    295         timestamp = gsapi.getArchivesMetadata(doc_id, "usertimestamp", metapos);
    296         comment = gsapi.getArchivesMetadata(doc_id, "usercomment", metapos);
     295        timestamp = gsapi.getDocumentMetadata(doc_id, "usertimestamp", metapos);
     296        comment = gsapi.getDocumentMetadata(doc_id, "usercomment", metapos);
    297297
    298298        //alert("username: " + username + "\\ntime: " + timestamp + "\\ncomment: " + comment);
     
    313313           
    314314        metapos++;
    315         username = gsapi.getArchivesMetadata(doc_id, "username", metapos);//, "_cgiargun_", "_cgiargpw_");
     315        username = gsapi.getDocumentMetadata(doc_id, "username", metapos);
    316316    \}
    317317
Note: See TracChangeset for help on using the changeset viewer.