Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • E eScriptorium
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 81
    • Issues 81
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • scripta
  • eScriptorium
  • Issues
  • #341
Closed
Open
Issue created Mar 23, 2021 by Alix Chagué@achague🏡Developer

Improving names of exported archives

Because there is no limit to the length of documents' names, and because some of our users named their documents with a lot of details, we are sometimes facing cases where the exported file creates a Windows bug where the name of the file is too long to be able to be manipulated once it's downloaded. Besides, it is very helpful to rely of document's ids, since we can easily reconstruct the url based on this id, which is not the case with the document's name (not unique nor permanent). So, I see 2 ways to impove the naming of the archive files exported from escriptorium:

  • in export_%s_%s_%s.txt" % (slugify(document.name).replace('-', '_'),file_format, datetime.now().strftime('%Y%m%d%H%M')) ; set a max length to document.name
  • add the document's id in the name such as : export_%s_%s_%s_%s.txt" % (document.pk, slugify(document.name).replace('-', '_'),file_format, datetime.now().strftime('%Y%m%d%H%M'))

As a side comment, Transkribus enables the user to set the pattern of the exported filename. I have never used it so I consider it's probably too much effort to build an equivalent option. But I mention it still, juste in case. It looks like this:

image

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking