mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Big update, corpus analysis reworked, versioned services, preliminary work for contributions
This commit is contained in:
		@@ -50,8 +50,8 @@ h1 .nopaque-icons, h2 .nopaque-icons, h3 .nopaque-icons, h4 .nopaque-icons,
 | 
			
		||||
}
 | 
			
		||||
.nopaque-icons.service-icon[data-service="corpus-analysis"]:empty:before {content: "H";}
 | 
			
		||||
.nopaque-icons.service-icon[data-service="file-setup"]:empty:before {content: "E";}
 | 
			
		||||
.nopaque-icons.service-icon[data-service="nlp"]:empty:before {content: "G";}
 | 
			
		||||
.nopaque-icons.service-icon[data-service="ocr"]:empty:before {content: "F";}
 | 
			
		||||
.nopaque-icons.service-icon[data-service="spacy-nlp"]:empty:before {content: "G";}
 | 
			
		||||
.nopaque-icons.service-icon[data-service="tesseract-ocr"]:empty:before {content: "F";}
 | 
			
		||||
 | 
			
		||||
.status-text[data-status]:empty:before {content: attr(data-status);}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -53,7 +53,7 @@ class CorpusAnalysisApp {
 | 
			
		||||
    this.data.cQiClient = new CQiClient(this.settings.corpusId);
 | 
			
		||||
    this.data.cQiClient.connect()
 | 
			
		||||
      .then(cQiStatus => {
 | 
			
		||||
        return this.data.cQiClient.corpora.get('CORPUS');
 | 
			
		||||
        return this.data.cQiClient.corpora.get(`NOPAQUE_${this.settings.corpusId}`);
 | 
			
		||||
      })
 | 
			
		||||
      .then(
 | 
			
		||||
        cQiCorpus => {
 | 
			
		||||
 
 | 
			
		||||
@@ -100,7 +100,10 @@ class JobDisplay extends RessourceDisplay {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  setServiceArgs(serviceArgs) {
 | 
			
		||||
    this.setElements(this.displayElement.querySelectorAll('.job-service-args'), serviceArgs);
 | 
			
		||||
    this.setElements(
 | 
			
		||||
      this.displayElement.querySelectorAll('.job-service-args'),
 | 
			
		||||
      JSON.stringify(serviceArgs)
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  setServiceVersion(serviceVersion) {
 | 
			
		||||
 
 | 
			
		||||
@@ -10,25 +10,10 @@ class JobResultList extends RessourceList {
 | 
			
		||||
      </tr>
 | 
			
		||||
    `.trim(),
 | 
			
		||||
    ressourceMapper: jobResult => {
 | 
			
		||||
      let description;
 | 
			
		||||
 | 
			
		||||
      if (jobResult.filename.endsWith('.pdf.zip')) {
 | 
			
		||||
        description = 'PDF files with text layer';
 | 
			
		||||
      } else if (jobResult.filename.endsWith('.txt.zip')) {
 | 
			
		||||
        description = 'Raw text files';
 | 
			
		||||
      } else if (jobResult.filename.endsWith('.vrt.zip')) {
 | 
			
		||||
        description = 'VRT compliant files including the NLP data';
 | 
			
		||||
      } else if (jobResult.filename.endsWith('.xml.zip')) {
 | 
			
		||||
        description = 'TEI compliant files';
 | 
			
		||||
      } else if (jobResult.filename.endsWith('.poco.zip')) {
 | 
			
		||||
        description = 'HOCR and image files for post correction (PoCo)';
 | 
			
		||||
      } else {
 | 
			
		||||
        description = 'All result files created during this job';
 | 
			
		||||
      }
 | 
			
		||||
      return {
 | 
			
		||||
        id: jobResult.id,
 | 
			
		||||
        creationDate: jobResult.creation_date,
 | 
			
		||||
        description: description,
 | 
			
		||||
        description: jobResult.description,
 | 
			
		||||
        filename: jobResult.filename
 | 
			
		||||
      };
 | 
			
		||||
    },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user