Package ugh.dl

Examples of ugh.dl.Prefs


    } catch (IOException e) {
      myLogger.error("Error while reading von opac-config", e);
      Helper.setFehlerMeldung("Error while reading von opac-config", e);
      return null;
    }
    Prefs myPrefs = this.prozessVorlage.getRegelsatz().getPreferences();
    try {
      this.myRdf = new MetsMods(myPrefs);
      this.myRdf.read(this.metadataFile);
    } catch (PreferencesException e) {
      myLogger.error(e);
View Full Code Here


    } catch (IOException e) {
      myLogger.error("Error while reading von opac-config", e);
      Helper.setFehlerMeldung("Error while reading von opac-config", e);
      return null;
    }
    Prefs myPrefs = this.prozessVorlage.getRegelsatz().getPreferences();
    try {
      this.myRdf = new MetsMods(myPrefs);
      this.myRdf.read(this.metadataFile);
    } catch (PreferencesException e) {
      myLogger.error(e);
View Full Code Here

  public String OpacAuswerten(ImportObject io) {
    clearValues();
    readProjectConfigs();
    try {
      Prefs myPrefs = this.prozessVorlage.getRegelsatz().getPreferences();
      /* den Opac abfragen und ein RDF draus bauen lassen */
      this.myRdf = new MetsMods(myPrefs);
      this.myRdf.read(this.metadataFile);
   
      this.docType = this.myRdf.getDigitalDocument().getLogicalDocStruct().getType().getName();
View Full Code Here

  @Override
  public String OpacAuswerten() {
    clearValues();
    readProjectConfigs();
    try {
      Prefs myPrefs = this.prozessVorlage.getRegelsatz().getPreferences();
      /* den Opac abfragen und ein RDF draus bauen lassen */
      this.myRdf = new MetsMods(myPrefs);
      this.myRdf.read(this.metadataFile);
     
      this.docType = this.myRdf.getDigitalDocument().getLogicalDocStruct().getType().getName();
View Full Code Here

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

  private void createNewFileformat() {

    Prefs myPrefs = this.prozessKopie.getRegelsatz().getPreferences();

    Fileformat ff;
    try {
      ff = new MetsMods(myPrefs);
      ff.read(this.metadataFile);
View Full Code Here

  boolean autoSave = false;

  private String title;

  public boolean validate(Prozess inProzess) {
    Prefs myPrefs = inProzess.getRegelsatz().getPreferences();
    /*
     * -------------------------------- Fileformat einlesen --------------------------------
     */
    Fileformat gdzfile;
    try {
View Full Code Here

        if (insertPage.equals("lastPage")) {
            metadataBean.createPagination();
        } else {

            Prefs prefs = metadataBean.getMyProzess().getRegelsatz().getPreferences();
            DigitalDocument doc = metadataBean.getDocument();
            DocStruct physical = doc.getPhysicalDocStruct();

            List<DocStruct> pageList = physical.getAllChildren();

            int indexToImport = Integer.parseInt(insertPage);
            DocStructType newPageType = prefs.getDocStrctTypeByName("page");
            DocStruct newPage = doc.createDocStruct(newPageType);
            MetadataType physicalPageNoType = prefs.getMetadataTypeByName("physPageNumber");
            MetadataType logicalPageNoType = prefs.getMetadataTypeByName("logicalPageNumber");
            for (int index = 0; index < pageList.size(); index++) {

                if (index == indexToImport) {
                    DocStruct oldPage = pageList.get(index);
View Full Code Here

  List<DocStruct> docStructsOhneSeiten;
  Prozess myProzess;
  boolean autoSave = false;

  public boolean validate(Prozess inProzess) {
    Prefs myPrefs = inProzess.getRegelsatz().getPreferences();
    /*
     * -------------------------------- Fileformat einlesen --------------------------------
     */
    Fileformat gdzfile;
    try {
View Full Code Here

   * @param inName
   * @return MetadataType
   * @throws UghHelperException
   */
  public MetadataType getMetadataType(Prozess inProzess, String inName) throws UghHelperException {
    Prefs myPrefs = inProzess.getRegelsatz().getPreferences();
    return getMetadataType(myPrefs, inName);
  }
View Full Code Here

    script = script.replace("{", "(").replace("}", ")");
    DigitalDocument dd = null;
    ProcessObject po = ProcessManager.getProcessObjectForId(step.getProcessId());

    FolderInformation fi = new FolderInformation(po.getId(), po.getTitle());
    Prefs prefs = ProcessManager.getRuleset(po.getRulesetId()).getPreferences();

    try {
      dd = po.readMetadataFile(fi.getMetadataFilePath(), prefs).getDigitalDocument();
    } catch (PreferencesException e2) {
      logger.error(e2);
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.