Changeset 31529

Show
Ignore:
Timestamp:
21.03.2017 17:02:35 (3 years ago)
Author:
ak19
Message:

Committing what I think are bugfixes. These methods could surely not have worked before, as the parameters they were called with were incorrect.

Location:
main/trunk/greenstone3/web/interfaces/default/js
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/GSMetadata.js

    r25948 r31529  
    2727                if(_archivesPosition != null) 
    2828                { 
    29                     gs.functions.setArchivesMetadata(_collection, _site, _documentID, _name, _archivesPosition); 
     29                    gs.functions.setArchivesMetadata(_collection, _site, _documentID, _name, _archivesPosition, _value); 
    3030                } 
    3131                else 
     
    3838                if(_indexPosition != null) 
    3939                { 
    40                     gs.functions.setIndexMetadata(_collection, _site, _documentID, _name, _indexPosition); 
     40                    gs.functions.setIndexMetadata(_collection, _site, _documentID, _name, _indexPosition, _value); 
    4141                } 
    4242                else 
  • main/trunk/greenstone3/web/interfaces/default/js/javascript-global-functions.js

    r31120 r31529  
    522522    callMetadataServer("getImportMetadata", url, function(responseText) 
    523523    { 
    524         var metadata = new GSMetadata(collection, site, documentID, metadataName, null, responseText); 
     524        var metadata = new GSMetadata(collection, site, documentID, metadataName, null, null, responseText); 
    525525        if(responseFunction != null) 
    526526        { 
     
    540540    callMetadataServer("getArchivesMetadata", url, function(responseText) 
    541541    { 
    542         var metadata = new GSMetadata(collection, site, documentID, metadataName, metadataPosition, responseText); 
     542        var metadata = new GSMetadata(collection, site, documentID, metadataName, null, metadataPosition, responseText); // indexPos, archivesPos, metaval (responseText) 
    543543        if(responseFunction != null) 
    544544        { 
     
    558558    callMetadataServer("getIndexMetadata", url, function(responseText) 
    559559    { 
    560         var metadata = new GSMetadata(collection, site, documentID, metadataName, metadataPosition, responseText); 
     560        var metadata = new GSMetadata(collection, site, documentID, metadataName, metadataPosition, null, responseText); // indexPos, archivesPos, metaval (responseText) 
    561561         
    562562        if(responseFunction != null)