marc

package module
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2025 License: BSD-3-Clause Imports: 0 Imported by: 0

README

go-marc

Go package for working with MARC records.

Important

Not all of MARC. Probably not ever. Just the 034 field so far. If you are looking for a general-purpose library for working with MARC records I'd recommend looking at miku/marc21.

Documentation

Go Reference

Tools

$> make cli

rm -rf bin/*
go build -mod vendor -ldflags="-s -w" -o bin/parse cmd/parse/main.go
go build -mod vendor -ldflags="-s -w" -o bin/server cmd/server/main.go
go build -mod vendor -ldflags="-s -w" -o bin/convert cmd/convert/main.go
parse

Parse one or more MARC 034 strings and emit a (S, W, N, E) bounding box for each.

Documentation for the parse tool can be found in cmd/parse/README.md.

There are also WebAssembly binaries (wasm-js and wasi-p1) available for the parse tool in the aaronland/go-marc-wasm package.

convert

Process one or more CSV files containing MARC 034 data and append bounding box information to a new CSV document.

Documentation for the parse tool can be found in cmd/convert/README.md.

server

A web application for converting MARC 034 strings in to bounding boxes and/or batch processing CSV files uploaded to the server.

Documentation for the server tool can be found in cmd/server/README.md.

See also

Documentation

Overview

package marc provides methods for working with MARC records.

Directories

Path Synopsis
app
convert
convert processes one or more CSV files containing MARC 034 data and append bounding box information to a new CSV document.
convert processes one or more CSV files containing MARC 034 data and append bounding box information to a new CSV document.
server
server is a web application for converting MARC 034 strings in to bounding boxes (formatted as GeoJSON).
server is a web application for converting MARC 034 strings in to bounding boxes (formatted as GeoJSON).
cmd
convert command
parse command
marc-034 parses one or more MARC 034 strings and emit a (S, W, N, E) bounding box for each.
marc-034 parses one or more MARC 034 strings and emit a (S, W, N, E) bounding box for each.
server command
marc-034d is a web application for converting MARC 034 strings in to bounding boxes (formatted as GeoJSON).
marc-034d is a web application for converting MARC 034 strings in to bounding boxes (formatted as GeoJSON).
package fields provides methods for working with individual fields in MARC records.
package fields provides methods for working with individual fields in MARC records.
package http provides net/http Handlers for web applications
package http provides net/http Handlers for web applications
static
www
package www provides an embedded filesystem for web application static assets (JavaScript, CSS).
package www provides an embedded filesystem for web application static assets (JavaScript, CSS).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL