Package ugh.dl

Examples of ugh.dl.DigitalDocument


      /* --------------------------------
       * xml-Datei einlesen und Hauptelement ermitteln
       * --------------------------------*/
      Fileformat gdzfile = inProzess.readMetadataFile();
      DigitalDocument mydocument;
      mydocument = gdzfile.getDigitalDocument();
      this.logicalTopstruct = mydocument.getLogicalDocStruct();
      RussischeDatenLoeschen(this.logicalTopstruct);
      //      if (1 == 1) {
      //         gdzfile.Write(help.metadatenverzeichnis() + myProzesseID + "/meta.xml");
      //         return;
      //      }
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;
      }

    } catch (TypeNotAllowedForParentException e) {
View Full Code Here

  /**
   * alle Seiten ermitteln ================================================================
   */
    public void retrieveAllImages() {
    DigitalDocument mydocument = null;
    try {
      mydocument = this.gdzfile.getDigitalDocument();
    } catch (PreferencesException e) {
      Helper.setMeldung(null, "Can not get DigitalDocument: ", e.getMessage());
    }

    List<DocStruct> meineListe = mydocument.getPhysicalDocStruct().getAllChildren();
    if (meineListe == null) {
      this.alleSeiten = null;
      return;
    }
    int zaehler = meineListe.size();
View Full Code Here

TOP

Related Classes of ugh.dl.DigitalDocument

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.