Examples of Prefs


Examples of ugh.dl.Prefs

        if (testForData()) {
            List<ImportObject> answer = new ArrayList<ImportObject>();
            Integer batchId = null;

            // found list with ids
            Prefs prefs = this.template.getRegelsatz().getPreferences();
            String tempfolder = ConfigMain.getParameter("tempfolder");
            this.plugin.setImportFolder(tempfolder);
            this.plugin.setPrefs(prefs);

            if (StringUtils.isNotEmpty(this.idList)) {
View Full Code Here

Examples of ugh.dl.Prefs

  }

  /* =============================================================== */

  private void createNewFileformat() {
    Prefs myPrefs = this.prozessKopie.getRegelsatz().getPreferences();
    try {
      DigitalDocument dd = new DigitalDocument();
      Fileformat ff = new XStream(myPrefs);
      ff.setDigitalDocument(dd);
      /* BoundBook hinzufügen */
      DocStructType dst = myPrefs.getDocStrctTypeByName("BoundBook");
      DocStruct dsBoundBook = dd.createDocStruct(dst);
      dd.setPhysicalDocStruct(dsBoundBook);

      /* Monographie */
      if (!this.co.getDoctypeByName(this.docType).isPeriodical() && !this.co.getDoctypeByName(this.docType).isMultiVolume()) {
        DocStructType dsty = myPrefs.getDocStrctTypeByName(this.co.getDoctypeByName(this.docType).getRulesetType());
        DocStruct ds = dd.createDocStruct(dsty);
        dd.setLogicalDocStruct(ds);
        this.myRdf = ff;
      }

      /* Zeitschrift */
      else if (this.co.getDoctypeByName(this.docType).isPeriodical()) {
        DocStructType dsty = myPrefs.getDocStrctTypeByName("Periodical");
        DocStruct ds = dd.createDocStruct(dsty);
        dd.setLogicalDocStruct(ds);

        DocStructType dstyvolume = myPrefs.getDocStrctTypeByName("PeriodicalVolume");
        DocStruct dsvolume = dd.createDocStruct(dstyvolume);
        ds.addChild(dsvolume);
        this.myRdf = ff;
      }

      /* MultivolumeBand */
      else if (this.co.getDoctypeByName(this.docType).isMultiVolume()) {
        DocStructType dsty = myPrefs.getDocStrctTypeByName("MultiVolumeWork");
        DocStruct ds = dd.createDocStruct(dsty);
        dd.setLogicalDocStruct(ds);

        DocStructType dstyvolume = myPrefs.getDocStrctTypeByName("Volume");
        DocStruct dsvolume = dd.createDocStruct(dstyvolume);
        ds.addChild(dsvolume);
        this.myRdf = ff;
      }
      if (this.docType.equals("volumerun")) {
        DocStructType dsty = myPrefs.getDocStrctTypeByName("VolumeRun");
        DocStruct ds = dd.createDocStruct(dsty);
        dd.setLogicalDocStruct(ds);

        DocStructType dstyvolume = myPrefs.getDocStrctTypeByName("Record");
        DocStruct dsvolume = dd.createDocStruct(dstyvolume);
        ds.addChild(dsvolume);
        this.myRdf = ff;
      }

View Full Code Here

Examples of ugh.dl.Prefs

  public void setTitel(String titel) {
    this.titel = titel;
  }

  public Prefs getPreferences() {
    this.mypreferences = new Prefs();
    try {
      this.mypreferences.loadPrefs(ConfigMain.getParameter("RegelsaetzeVerzeichnis")
          + this.datei);
    } catch (PreferencesException e) {
      logger.error(e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.