Granularchive: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "The Granularchive is a proposal to use as a tool during the presentation & radio broadcast of Zine Camp 2023, part of the Radio Worm: Protocols for an Active Archive Special Issue.")
 
No edit summary
Line 1: Line 1:
The Granularchive is a proposal to use as a tool during the presentation & radio broadcast of Zine Camp 2023, part of the [[Radio Worm: Protocols for an Active Archive]] Special Issue.
The Granularchive is a proposal to use as a tool during the presentation & radio broadcast of Zine Camp 2023, part of the [[Radio Worm: Protocols for an Active Archive]] Special Issue. Currently, the Granularchive can be visited via [https://hub.xpub.nl/chopchop/archive_non-tree/ ChopChop].
 
The Granularachive previews all contents of an archive, by making use of exiftool (which is already installed on ChopChop). The content is displayed by translating a JSON file into the interactive SVG graph using [https://d3js.org/ D3.js]. D3.js is an open-source javascript library.
 
==Updating the Granularachive==
# Upload new contents to the Granularchive folder on ChopChop via `/var/www/archive_non-tree' → name to be updated
# Within this folder, run <code>exiftool -json -r . > exiftool.json</code>.
# Make sure this exiftool.json is placed at the root of `/var/www/archive_non-tree', and overwrite the existing one. Now the tool is updated!
 
==Example of exiftool.json==
The data displayed below can be used to change the way the Granularchive is presented.
‎<syntaxhighlight lang="JSON" line>
{
    "SourceFile": "./hoi/Folder1/Radio_Show_2008_3.mp3",
    "ExifToolVersion": 12.5,
    "FileName": "Radio_Show_2008_3.mp3",
    "Directory": "./hoi/Folder1",
    "FileSize": "0 bytes",
    "FileModifyDate": "2023:10:28 23:16:26+02:00",
    "FileAccessDate": "2023:10:30 08:39:14+01:00",
    "FileInodeChangeDate": "2023:10:28 23:17:20+02:00",
    "FilePermissions": "-rw-r--r--",
    "Error": "File is empty"
  },
</syntaxhighlight>

Revision as of 14:15, 1 November 2023

The Granularchive is a proposal to use as a tool during the presentation & radio broadcast of Zine Camp 2023, part of the Radio Worm: Protocols for an Active Archive Special Issue. Currently, the Granularchive can be visited via ChopChop.

The Granularachive previews all contents of an archive, by making use of exiftool (which is already installed on ChopChop). The content is displayed by translating a JSON file into the interactive SVG graph using D3.js. D3.js is an open-source javascript library.

Updating the Granularachive

  1. Upload new contents to the Granularchive folder on ChopChop via `/var/www/archive_non-tree' → name to be updated
  2. Within this folder, run exiftool -json -r . > exiftool.json.
  3. Make sure this exiftool.json is placed at the root of `/var/www/archive_non-tree', and overwrite the existing one. Now the tool is updated!

Example of exiftool.json

The data displayed below can be used to change the way the Granularchive is presented.

{
    "SourceFile": "./hoi/Folder1/Radio_Show_2008_3.mp3",
    "ExifToolVersion": 12.5,
    "FileName": "Radio_Show_2008_3.mp3",
    "Directory": "./hoi/Folder1",
    "FileSize": "0 bytes",
    "FileModifyDate": "2023:10:28 23:16:26+02:00",
    "FileAccessDate": "2023:10:30 08:39:14+01:00",
    "FileInodeChangeDate": "2023:10:28 23:17:20+02:00",
    "FilePermissions": "-rw-r--r--",
    "Error": "File is empty"
  },