GithubHelp home page GithubHelp logo

correspsearch / cmif-creator Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 31.45 MB

Browser-based editor to create CMIF-XML file.

Home Page: https://correspsearch.net/en/cmif-creator.html

License: GNU Lesser General Public License v3.0

JavaScript 0.94% HTML 1.93% Vue 97.14%
correspondence correspondence-metadata

cmif-creator's People

Contributors

jomula avatar stefandumont avatar

Watchers

 avatar  avatar

cmif-creator's Issues

uncertain dates

I want to set date when uncertain attribute

  • went into CMIF Creator
  • set value
    20200722_071604
  • saved json file
    20200722_071616
    20200722_071621
    • which timezone is active on your machine, export was performed at 2020-07-22 07:16:21
  • to my surprise attribute evidence has value conjecture set
    I expected attribute cert with value low
    20200722_071931
  • save xml file
    20200722_071641
  • to my surprise attribute evidence has value conjecture set
    I expected attribute cert with value low
    20200722_071827

just for fun, tried the other way too

  • CMIF Creator is showing data different as data
    20200722_082816
    20200722_082856

please find xml and json files

CMIF_Creator_20200723.zip

Optimierung für Briefwechsel

Neue Funktionen, um die Erfassung von Briefwechseln zwischen zwei Personen zu erleichtern:

  • Weiteren Datensatz basierend auf dem aktuell erstellten hinzufügen (okay, das Label besprechen wir nochmal ;-))
  • Absender- und Empfängerangaben (Person, Ort und Datum zusammen) vertauschen (Schaltfläche vlt. tatsächlich zwischen linker und rechter Spalte)
  • evtl. kann man beide Aktionen nochmal in einer dritten Aktion kombinieren, die auch über Schaltfläche unterhalb des aktuellen Datensatzes ausgewählt werden kann=

restricted dates

Dates are restricted to be lower than 1999-12-31.
Dates after 2000-01-01 should work also!
On the other hand '0000' is accepted, also it isn't a valid date.

Update used JSON2XML-API

Please update the use API for JSON2XML from https://correspSearch.net/api/v1.1/converter/json2xml.xql to https://correspSearch.net/api/v1.2/converter/json2xml.xql (1.1 to 1.2) in the next release.

wrong info on correspSearch website

Hi!

on the correspSearch website: https://correspsearch.net/en/participate.html there's a box with:
"CSV to CMIF with Python script

Klaus Rettinghaus has developed a Python script that converts CSV tables into CMIF files. The script and the manual can be found on the GitHub account of the SAW-Leipzig.

SAW Leipzig now also offers a corresponding webapp that enables the transformation online. [To the CSV2CMI webapp]"

but Klaus Rettinghaus in this issue: saw-leipzig/csv2cmi#65 says:
"This project is not connected to https://github.com/correspSearch and the generated XML files are not suitable for use in the CMIF-Creator."

What are the tools and the supported CMIF format suited to upload correspondences in correspSearch? Is CMIF the only available format?

Thanks!

Julian calendar dates

I haven't found any information on how to handle non-gregorian calendar dates. I suggest to explicitly require in the manual and the documentation that all dates must be converted to the gregorian calendar (to make it conform to ISO 8601).

editor without email

<email> is not mandatory in <editor>, but without it, the file doesn't load properly (editor text is lost).

Problem with escaping of "&" (and "&amp;")

There seems to be a problem with names containing the character & (for example in names of companies as in Gebrüder Bla & Blub). Exporting CMIF data with such names only works with JSON, no XML export is possible. In the case of importing, XML-based CMIF data containing the name encoded with the entity &amp; cannot be loaded with the CMIF creator.

As reported from a user:

Wir haben in unserer Edition viele Absender, deren Firmennamen nach dem Schema "Firma Blabla & Co." oder "Gebrüder Bla & Blub" aufgebaut sind. Nachdem wir alle dieser Namen im CMIF-Creator eingetragen hatten, ließ sich das Briefverzeichnis nur noch als Json, jedoch nicht mehr als XML-Datei ausgeben. Durch herumprobieren haben wir dann herausgefunden, dass es am Zeichen & lag, dass vom CMIF-Creator wohl nicht als String behandelt wird. Unser Workaround war nun, die Json-Datei herunterzuladen, die & durch einen beliebigen String zu ersetzen, das ganze wieder in den CMIF-Creator zu laden und schließlich als XML-Datei ausgeben zu lassen. In der XML-Datei selbst haben wir dann die beliebigen Strings durch &amp; ersetzt. Nun ist die Datei vorerst fertig, allerdings kann sie auch nicht mehr in den Creator geladen werden.

This description makes it quite clear, that there is a problem with the handling of the & character for xml serialization/deserialization and also JSON import. We should check if this also happens for other XML entities such as &lt;, &gt; and so on.

A sample (XML) CMIF file is available if needed (I haven't attached it here yet, because I think it's not yet published).

Import adds all attributes to title

When a file is imported where the title carries multiple attributes, these will appear in the title field as JSON. Only the text() should be considered.

Example input:

<titleStmt>
    <title xml:id="titleID" type="main">Test</title>
    <editor xml:id="editorID">Erika Mustermann</editor>
</titleStmt>

leads to:

{  "xml:id": "titleID",  "type": "main",  "#text": "Test"}

Wrong label "URL to CMIF file" in step 3

In step "3: Letter records", there is a field labelled "URL to CMIF file" ("URL zur CMIF-Datei" in German), but I think it is meant to say "URL to the letter"/"URL zum Brief".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.