Package de.unigoettingen.sub.search.opac

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


public class CatalogueConfiguration {

  @GET
  @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
  public ConfigOpac getCatalogueConfiguration() throws IOException {
    return new ConfigOpac();
  }
View Full Code Here


      return "";
    }

    clearValues();
    try {
      this.co = new ConfigOpac();
    } catch (IOException e) {
      myLogger.error("Error while reading von opac-config", e);
      Helper.setFehlerMeldung("Error while reading von opac-config", e);
      return null;
    }
View Full Code Here

      return "";
    }

    clearValues();
    try {
      this.co = new ConfigOpac();
    } catch (IOException e) {
      myLogger.error("Error while reading von opac-config", e);
      Helper.setFehlerMeldung("Error while reading von opac-config", e);
      return null;
    }
View Full Code Here


  @Override
  public List<String> getAllOpacCatalogues() {
    try {
      return new ConfigOpac().getAllCatalogueTitles();
    } catch (IOException e) {
      myLogger.error("Error while reading von opac-config", e);
      Helper.setFehlerMeldung("Error while reading von opac-config", e);
      return new ArrayList<String>();
    }
View Full Code Here

  }

  @Override
  public List<ConfigOpacDoctype> getAllDoctypes() {
    try {
      return new ConfigOpac().getAllDoctypes();
    } catch (IOException e) {
      myLogger.error("Error while reading von opac-config", e);
      Helper.setFehlerMeldung("Error while reading von opac-config", e);
      return new ArrayList<ConfigOpacDoctype>();
    }
View Full Code Here

     * @see de.sub.goobi.Import.IOpac#getOpacDocType(boolean)
     */
    @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());
                }
            }
View Full Code Here

  public String AddAdditionalOpacPpns() {
    StringTokenizer tokenizer = new StringTokenizer(this.additionalOpacPpns, "\r\n");
    while (tokenizer.hasMoreTokens()) {
      String tok = tokenizer.nextToken();
      try {
                ConfigOpacCatalogue coc = new ConfigOpac().getCatalogueByName(opacKatalog);
                IOpacPlugin iopac = (IOpacPlugin) PluginLoader.getPluginByTitle(PluginType.Opac, coc.getOpacType());

                Fileformat addrdf = iopac.search(this.opacSuchfeld, tok, coc, this.myPrefs);
        if (addrdf != null) {
          this.myDocStruct.addChild(addrdf.getDigitalDocument().getLogicalDocStruct());
View Full Code Here

  public String AddMetadaFromOpacPpn() {
    StringTokenizer tokenizer = new StringTokenizer(this.additionalOpacPpns, "\r\n");
    while (tokenizer.hasMoreTokens()) {
      String tok = tokenizer.nextToken();
      try {
                ConfigOpacCatalogue coc = new ConfigOpac().getCatalogueByName(opacKatalog);
                IOpacPlugin iopac = (IOpacPlugin) PluginLoader.getPluginByTitle(PluginType.Opac, coc.getOpacType());
                Fileformat addrdf = iopac.search(this.opacSuchfeld, tok, coc, this.myPrefs);
        if (addrdf != null) {

          /* die Liste aller erlaubten Metadatenelemente erstellen */
 
View Full Code Here

      return "";
    }

    clearValues();
    try {
      this.co = new ConfigOpac();
    } catch (IOException e) {
      myLogger.error("Error while reading von opac-config", e);
      Helper.setFehlerMeldung("Error while reading von opac-config", e);
      return null;
    }
View Full Code Here

   */
  public String OpacAuswerten() {
    clearValues();
    readProjectConfigs();
    try {
        ConfigOpacCatalogue coc = new ConfigOpac().getCatalogueByName(opacKatalog);
       
        myImportOpac = (IOpacPlugin) PluginLoader.getPluginByTitle(PluginType.Opac, coc.getOpacType());
       
      /* den Opac abfragen und ein RDF draus bauen lassen */
            this.myRdf = this.myImportOpac.search(this.opacSuchfeld, this.opacSuchbegriff, coc, this.prozessKopie.getRegelsatz().getPreferences());
View Full Code Here

TOP

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

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.