export

package
v0.0.0-...-896db50 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InteroperableExportXml

func InteroperableExportXml(tx *sqlx.Tx, w io.Writer, databaseId int, lang string) (dbInfos_ *model.DatabaseFullInfos, err error)

func SitesAsCSV

func SitesAsCSV(dbInfos *model.DatabaseFullInfos, siteIDs []int, isoCode string, includeDbName bool, includeSiteId bool, includeInterop bool, tx *sqlx.Tx) (outp string, err error)

SitesAsCSV exports database and sites as as csv file

func SitesAsOmeka

func SitesAsOmeka(databaseId int, chronoId int, isoCode string, tx *sqlx.Tx) (sites string, caracs string, err error)

SitesAsOmeka exports database and sites as as csv file for omeka

Types

type Chronocached

type Chronocached struct {
	Id         int
	ParentId   int
	Name       string
	Path       string
	Start_date int
	End_date   int
}

type Geom

type Geom struct {
	Type        string
	Coordinates [][][]float64
}

type MyDatabase

type MyDatabase struct {
	model.Database
	Sites               []MySite                 `json:"sites"`
	Database_trs        []model.Database_tr      `json:"database_trs"`
	Database_contexts   []model.Database_context `json:"database_contexts"`
	OwnerUser           model.User               `json:"owneruser"`
	Authors             []MyUser                 `json:"authors"`
	Default_language_tr model.Lang_tr            `json:"default_language_tr"`
	License             model.License            `json:"license"`
}

type MySite

type MySite struct {
	model.Site
	Site_ranges    []MySite_range  `json:"site_ranges"`
	Site_trs       []model.Site_tr `json:"site_trs"`
	St_latitude    float64         `json:"st_latitude"`
	St_latitude3d  float64         `json:"st_latitude3d"`
	St_longitude   float64         `json:"st_longitude"`
	St_longitude3d float64         `json:"st_longitude3d"`
	St_altitude    float64         `json:"st_altitude"`
	St_altitude3d  float64         `json:"st_altitude3d"`
}

type MySiteRangeCharac

type MySiteRangeCharac struct {
	model.Site_range__charac
	Charac                 model.Charac                  `json:"charac"`
	Charac_trs             []model.Charac_tr             `json:"charac_trs"`
	Site_range__charac_trs []model.Site_range__charac_tr `json:"srcharactrs"`
}

type MySite_range

type MySite_range struct {
	model.Site_range
	SiteRangeCharacs []MySiteRangeCharac `json:"site_range__characs"`
}

type MyUser

type MyUser struct {
	model.User
	Companies []model.Company `json:"companies"`
}

type StringL

type StringL struct {
	Content string `xml:",innerxml"`
	Lang    string `xml:"xml:lang,attr"`
}

type XsiTyped

type XsiTyped struct {
	Content string `xml:",innerxml"`
	Xsitype string `xml:"xsi:type,attr,omitempty"`
	Lang    string `xml:"xml:lang,attr,omitempty"`
}

Jump to

Keyboard shortcuts

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