Package de.unigoettingen.sub.search.opac

Examples of de.unigoettingen.sub.search.opac.ConfigOpacDoctype


      throw new IllegalArgumentException("Bad argument “docType”: Selected template doesn’t provide the standard field “doctype”.");

    boolean valueIsValid = false;
    Iterator<ConfigOpacDoctype> configOpacDoctypeIterator = dialog.getAllDoctypes().iterator();
    do {
      ConfigOpacDoctype option = configOpacDoctypeIterator.next();
      valueIsValid = docType.equals(option.getTitle());
    } while (!valueIsValid && configOpacDoctypeIterator.hasNext());
    if (valueIsValid)
      return true;
    throw new IllegalArgumentException("Bad argument “docType”: Selected template doesn’t provide a docType “{0}”.".replace("{0}",
        docType));
View Full Code Here


     */
    @Override
    public ConfigOpacDoctype getOpacDocType() {
        try {
            ConfigOpac co = new ConfigOpac();
            ConfigOpacDoctype cod = co.getDoctypeByMapping(this.gattung.substring(0, 2), this.coc.getTitle());
            if (cod == null) {
                if (verbose) {
                    Helper.setFehlerMeldung(Helper.getTranslation("CatalogueUnKnownType") + ": ", this.gattung);
                }
                cod = new ConfigOpac().getAllDoctypes().get(0);
                this.gattung = cod.getMappings().get(0);
                if (verbose) {
                    Helper.setFehlerMeldung(Helper.getTranslation("CatalogueChangeDocType") + ": ", this.gattung + " - " + cod.getTitle());
                }
            }
            return cod;
        } catch (IOException e) {
            myLogger.error("OpacDoctype unknown", e);
View Full Code Here

TOP

Related Classes of de.unigoettingen.sub.search.opac.ConfigOpacDoctype

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.