joconde

package
v0.0.0-...-5eb4926 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMainTitle

func GetMainTitle(title string) string

GetMainTitle : returns the main title "Saint Jérôme pénitent#Dit aussi Saint Jérôme à l'auréole" => "Saint Jérôme pénitent"

func ReferenceURL

func ReferenceURL(ref string) string

ReferenceURL : gives the url for reference

func ReverseName

func ReverseName(name string) string

ReverseName : Reverse name sent by Joconde api "LAST NAME First name" => "First name LAST NAME" "LA TOUR Georges de" => "Georges de LA TOUR"

Types

type Artwork

type Artwork struct {
	AcquisitionDate string
	Author          string
	City            string
	Denomination    string
	Dimensions      string
	Domain          string
	Inventory       string
	Materials       string
	Museo           string
	Reference       string
	ReferenceURL    string
	School          string
	Title           string
	Vintage         string
}

Artwork data read from Joconde API

func GetArtwork

func GetArtwork(ref string) (Artwork, error)

GetArtwork : Get artwork data for reference ref eg. 09940004427

func JSONtoArtwork

func JSONtoArtwork(ref string, js string) (Artwork, error)

Jump to

Keyboard shortcuts

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