Revision 3486 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/search/SearchLowerPanel.java

View differences:

SearchLowerPanel.java
40 40
*/
41 41
package es.gva.cit.catalogClient.ui.search;
42 42

  
43
import es.gva.cit.catalogClient.profiles.Profile;
43 44
import es.gva.cit.catalogClient.querys.Coordinates;
44 45
import es.gva.cit.catalogClient.traductor.ITranslator;
45 46
import es.gva.cit.catalogClient.traductor.Translator;
46 47
import es.gva.cit.catalogClient.utils.Doubles;
48
import es.gva.cit.catalogClient.utils.comboServer.ServerData;
47 49

  
48 50
import java.awt.Color;
49 51
import java.awt.FlowLayout;
......
809 811
    private JComboBox getCoordenadasCombo() {
810 812
        if (coordenadasCombo == null) {
811 813
            String[] coordenadas;
812
            if (serverType.equals("Z3950")){
814
            if (serverType.equals(ServerData.SERVER_SUBTYPE_CATALOG_Z3950)){
813 815
                coordenadas = new String[4];
814 816
                coordenadas[0] = Translator.getText(translator,"coordinatesContains");
815 817
                coordenadas[1] = Translator.getText(translator,"coordinatesEqual");
......
1044 1046
        //System.out.println("TYPE: " + type);
1045 1047
        //System.out.println("SUBTYPE: " + profile);
1046 1048
        
1047
        if (type.equals("Z3950")){
1049
        if (type.equals(ServerData.SERVER_SUBTYPE_CATALOG_Z3950)){
1048 1050
            getCategoriaCombo().setEnabled(false);
1049 1051
        }
1050 1052
        
1051
        if (type.equals("SRW") || profile.equals("DUBLINCORE")){
1053
        if (type.equals(ServerData.SERVER_SUBTYPE_CATALOG_SRW) || profile.equals(Profile.DUBLINCORE)){
1052 1054
            getKeyWordText().setEnabled(false);
1053 1055
            getCategoriaCombo().setEnabled(false);
1054 1056
            getEscalaCombo().setEnabled(false);
......
1061 1063
            getToText().setEnabled(false);
1062 1064
        }
1063 1065
        
1064
        if (profile.equals("ebRIM")){
1066
        if (profile.equals(Profile.EBRIM)){
1065 1067
            getEscalaCombo().setEnabled(false);
1066 1068
            getProviderText().setEnabled(false);
1067 1069
            getFromText().setEnabled(false);
1068 1070
            getToText().setEnabled(false);
1069 1071
        }
1070 1072
        
1071
        if (profile.equals("ISO19115")){
1073
        if (profile.equals(Profile.ISO19115)){
1072 1074
            getKeyWordText().setEnabled(false);
1073 1075
            getCategoriaCombo().setEnabled(false);
1074 1076
            getEscalaCombo().setEnabled(false);

Also available in: Unified diff