Package ugh.dl

Examples of ugh.dl.Prefs


      if (p.getBenutzerGesperrt() != null) {
        Helper.setFehlerMeldung("metadata locked: ", p.getTitel());
      } else {
        myLogger.debug("Prozess: " + p.getTitel());
        Prefs myPrefs = p.getRegelsatz().getPreferences();
        Fileformat gdzfile;
        try {
          gdzfile = p.readMetadataFile();

          MetadataType mdt = ughhelp.getMetadataType(myPrefs, "pathimagefiles");
View Full Code Here


        String myBandnr = p.getTitel();
        StringTokenizer tokenizer = new StringTokenizer(p.getTitel(), "_");
        while (tokenizer.hasMoreTokens()) {
          myBandnr = "_" + tokenizer.nextToken();
        }
        Prefs myPrefs = p.getRegelsatz().getPreferences();
        try {
          Fileformat gdzfile = p.readMetadataFile();
          DocStruct dsTop = gdzfile.getDigitalDocument().getLogicalDocStruct();
          DocStruct dsFirst = null;
          if (dsTop.getAllChildren() != null && dsTop.getAllChildren().size() > 0) {
View Full Code Here

    for (Prozess p : pl) {
   
      if (p.getBenutzerGesperrt() != null) {
        Helper.setFehlerMeldung("metadata locked: " + p.getTitel());
      } else {
        Prefs myPrefs = p.getRegelsatz().getPreferences();
        try {
          Fileformat gdzfile = p.readMetadataFile();
          DocStruct dsTop = gdzfile.getDigitalDocument().getLogicalDocStruct();
          MetadataType mdtPpnDigital = ughhelp.getMetadataType(myPrefs, "CatalogIDSource");
View Full Code Here

      } else {
        String ppn = bhelp.WerkstueckEigenschaftErmitteln(p, "PPN digital").replace("PPN ", "").replace("PPN", "");
        String jahr = bhelp.ScanvorlagenEigenschaftErmitteln(p, "Bandnummer");
        String ppnAufBandebene = "PPN" + ppn + "_" + jahr;

        Prefs myPrefs = p.getRegelsatz().getPreferences();
        try {
          Fileformat gdzfile = p.readMetadataFile();
          DocStruct dsTop = gdzfile.getDigitalDocument().getLogicalDocStruct();
          DocStruct dsFirst = null;
          if (dsTop.getAllChildren() != null && dsTop.getAllChildren().size() > 0) {
View Full Code Here

        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

  }

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

  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

  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

Related Classes of ugh.dl.Prefs

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.