Project

General

Profile

« Previous | Next » 

Revision 2650

Added by Jing Tao over 18 years ago

Add rev in get data doc info.

View differences:

src/edu/ucsb/nceas/metacat/MetacatReplication.java
739 739
    try
740 740
    {
741 741
      //docid was switch to two parts uinque code and rev
742
      String uniqueCode=MetaCatUtil.getDocIdFromString(docid);
743
      int rev=MetaCatUtil.getVersionFromString(docid);
742
      //String uniqueCode=MetaCatUtil.getDocIdFromString(docid);
743
      //int rev=MetaCatUtil.getVersionFromString(docid);
744 744
      if(params.containsKey("dbaction"))
745 745
      {
746 746
        dbaction = ((String[])params.get("dbaction"))[0];
......
757 757
      // get the document info from server
758 758
      URL docinfourl = new URL("https://" + server +
759 759
                               "?server="+util.getLocalReplicationServerName()
760
                               +"&action=getdocumentinfo&docid=" + uniqueCode);
760
                               +"&action=getdocumentinfo&docid=" + docid);
761 761

  
762 762
      String docInfoStr = MetacatReplication.getURLContent(docinfourl);
763 763

  

Also available in: Unified diff