gocfl / ocfl / extensions
While OCFL objects are filesystem-based and human-readable, navigating through different versions and viewing metadata directly in the directory structure can be overwhelming. gocfl offers a built-in web viewer for this purpose.
display CommandWith the display command (alias: viewer), gocfl starts a local web server that provides a graphical interface for exploring the storage root and the objects it contains.
gocfl display [path to storage root or object]
To view the storage root created in the workshop in the browser, we use:
gocfl --config ./gocfl/config/gocfl.toml display ./gocfl/temp/test42/
Explanation:
display: Starts the integrated web server../gocfl/temp/test42/: The path to the storage root.http://localhost:8080.Once the server is running and you call the address in your browser, the gocfl viewer offers the following possibilities:
v1 and v2).NNNN-indexer).NNNN-thumbnail extension).If the default port 8080 is already occupied or access is to be made from another computer, the following flags can be helpful:
--display-addr: Changes the address or port on which the server listens (e.g., :9090).--display-external-addr: Sets the URL used for links within the viewer (important when operating behind a reverse proxy).Since the command blocks the terminal process while the server is running, the viewer can be closed at any time by pressing Ctrl+C.
| Back to Validation | Back to Table of Contents | Next Topic: Extracting Content |