Project

General

Profile

Revision cd993d95

IDcd993d9573144e244060321aee0c1fb28416a73f
Parent 0c12e309
Child fde7c010

Added by Andreas Kohlbecker about 2 years ago

fix #7523 excluding taxon nams which are already published

View differences:

src/main/java/eu/etaxonomy/cdm/service/CdmFilterablePagingProvider.java
97 97
        super();
98 98
        this.type = type;
99 99
        this.service = service;
100

  
101
        // Logger.getLogger("org.hibernate.SQL").setLevel(Level.TRACE);
100 102
    }
101 103

  
102 104

  
......
110 112
        this.service = service;
111 113
        this.matchMode = matchMode;
112 114
        this.orderHints = orderHints;
115

  
116
        // Logger.getLogger("org.hibernate.SQL").setLevel(Level.TRACE);
113 117
    }
114 118

  
115 119
    /**
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java
52 52
import eu.etaxonomy.cdm.model.name.TaxonNameFactory;
53 53
import eu.etaxonomy.cdm.model.name.TypeDesignationBase;
54 54
import eu.etaxonomy.cdm.model.reference.Reference;
55
import eu.etaxonomy.cdm.persistence.dao.common.Restriction;
55 56
import eu.etaxonomy.cdm.persistence.hibernate.permission.CRUD;
56 57
import eu.etaxonomy.cdm.persistence.hibernate.permission.Operation;
58
import eu.etaxonomy.cdm.persistence.query.MatchMode;
57 59
import eu.etaxonomy.cdm.service.CdmFilterablePagingProvider;
58 60
import eu.etaxonomy.cdm.service.CdmStore;
59 61
import eu.etaxonomy.cdm.service.IRegistrationWorkingSetService;
......
226 228
    protected void activateComboboxes() {
227 229
        CdmFilterablePagingProvider<TaxonName, TaxonName> pagingProvider = new CdmFilterablePagingProvider<TaxonName, TaxonName>(
228 230
                getRepo().getNameService());
231
        pagingProvider.addRestriction(new Restriction<>("registrations.identifier", true, MatchMode.BEGINNING, "http://phycobank.org/"));
229 232
        CdmTitleCacheCaptionGenerator<TaxonName> titleCacheGenerator = new CdmTitleCacheCaptionGenerator<TaxonName>();
230 233
        getView().getAddExistingNameCombobox().setCaptionGenerator(titleCacheGenerator);
231 234
        getView().getAddExistingNameCombobox().loadFrom(pagingProvider, pagingProvider, pagingProvider.getPageSize());

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)