Revision 3456 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/csw/drivers/CSWCatalogServiceDriver.java

View differences:

CSWCatalogServiceDriver.java
70 70
    private String[] typeNames = null;
71 71
    private String[] resultType = null;
72 72
    private String[] NAMESPACE = null;
73
    private String ServerProfile = null;
74 73
    private String version = "2.0.0";
75 74
    private CswSupportedProtocolOperations operations = null;
76 75

  
......
141 140
        
142 141
        if (getOperations().getGetRecords()==null)
143 142
        	return null;
144
       
143
      
145 144
        if (getServerProfile().equals("ISO19115")){
146
            firstRecord = firstRecord -1;
145
            firstRecord = firstRecord - 1;
147 146
        }
148 147
        
149 148
        for (int i=0 ; i<getOperations().getGetRecords().length; i++){
......
498 497
        this.elementSetName = elementSetName;
499 498
    }
500 499

  
501
    /**
502
     * @return Returns the serverProfile.
503
     */
504
    public String getServerProfile() {
505
        return ServerProfile;
506
    }
507

  
508
    /**
509
     * @param serverProfile The serverProfile to set.
510
     */
511
    public void setServerProfile(String serverProfile) {
512
        ServerProfile = serverProfile;
513
    }
514
 
515 500
	/**
516 501
	 * @return Returns the operations.
517 502
	 */
......
524 509
	public void setOperations(CswSupportedProtocolOperations operations) {
525 510
		this.operations = operations;
526 511
	}
512

  
513

  
514
    /* (non-Javadoc)
515
     * @see es.gva.cit.catalogClient.drivers.ICatalogServiceDriver#getServerPofile()
516
     */
517
    public String getQueryProfile() {
518
        // TODO Auto-generated method stub
519
        return getServerProfile();
520
    }
527 521
}

Also available in: Unified diff