sesar

package
v0.0.0-...-79441cb Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessString

func ProcessString(inputString string) (value string, ids []generic.Id, links []generic.Link, emails []string)

func ToGenericType

func ToGenericType(sesarType Type) generic.Type

Types

type ExtraDataModel

type ExtraDataModel struct {
	Children     []ExtraId          `xml:"sample>children>samples>sample"`
	Parents      []ExtraId          `xml:"sample>parents>samples>sample"`
	Siblings     []ExtraId          `xml:"sample>siblings>samples>sample"`
	CruseProgram string             `xml:"sample>cruise_field_prgrm"`
	ExternalUrls []ExtraExternalUrl `xml:"sample>external_urls>external_url"`
}

type ExtraExternalUrl

type ExtraExternalUrl struct {
	Url         string `xml:"url"`
	Description string `xml:"description"`
}

type ExtraId

type ExtraId struct {
	Name string `xml:"name"`
	Id   string `xml:"igsn"`
}

type Model

type Model struct {
	IGSN                        string `json:"igsn"`
	Name                        string `json:"name"`
	SampleId                    string `json:"sample_id"`
	SampleDescription           string `json:"sample_description"`
	FieldName                   string `json:"field_name"`
	SampleComment               string `json:"sample_comment"`
	ExternalSampleId            string `json:"external_sample_id"`
	Latitude                    string `json:"latitude"`
	Longitude                   string `json:"longitude"`
	PrimaryLocationType         string `json:"primary_location_type"`
	PrimaryLocationName         string `json:"primary_location_name"`
	LocationDescription         string `json:"location_description"`
	Locality                    string `json:"locality"`
	LocalityDescription         string `json:"locality_description"`
	CountryName                 string `json:"country_name"`
	City                        string `json:"city"`
	PlatformType                string `json:"platform_type"`
	PlatformName                string `json:"platform_name"`
	PlatformDescription         string `json:"platform_descr"`
	CruiseFieldProgram          string `json:"cruise_field_program"`
	Collector                   string `json:"collector"`
	CollectorDetails            string `json:"collector_detail"`
	CollectionStartDate         string `json:"collection_start_date"`
	CollectionEndDate           string `json:"collection_end_date"`
	CollectionDatePrecision     string `json:"collection_date_precision"`
	CollectionMethod            string `json:"collection_method"`
	CollectionMethodDescription string `json:"collection_method_descr"`
	CurrentArchive              string `json:"current_archive"`
	CurrentArchiveContact       string `json:"current_archive_contact"`
	OriginalArchive             string `json:"original_archive"`
	OriginalArchiveContact      string `json:"original_archive_contact"`
	Size                        string `json:"size"`
	SizeUnit                    string `json:"size_unit"`
	DepthMin                    string `json:"depth_min"`
	DepthMax                    string `json:"depth_max"`
	DepthScale                  string `json:"depth_scale"`
	AgeMin                      string `json:"age_min"`
	AgeMax                      string `json:"age_max"`
	AgeUnit                     string `json:"age_unit"`
	GeologicalAge               string `json:"geological_age"`
	GeologicalUnit              string `json:"geological_unit"`
	Elevation                   string `json:"elevation"`
	ElevationEnd                string `json:"elevation_end"`
	ElevationUnit               string `json:"elevation_unit"`
	OrgRegistrantName           string `json:"org_registrant_name"`
	CurRegistrantName           string `json:"cur_registrant_name"`
	TopLevelClassification      string `json:"top_level_classification"`
	Classification              string `json:"classification"`
	ClassificationComment       string `json:"classification_comment"`
	SampleType                  string `json:"sample_type"`
	ParentSampleType            string `json:"parent_sample_type"`
	IsArchived                  string `json:"is_archived"`
	NavTypeName                 string `json:"nav_type_name"`
	LaunchTypeName              string `json:"launch_type_name"`
	LaunchId                    string `json:"launch_id"`
	LaunchPlatformName          string `json:"launch_platform_name"`
	Purpose                     string `json:"purpose"`
	PublishDate                 string `json:"publish_date"`
	SampleOtherNames            string `json:"sample_other_names"`
}

func (Model) Serialize

func (sesar Model) Serialize() *models.Item

type Type

type Type string
const (
	TypeGrab                         Type = "1"
	TypeHole                         Type = "2"
	TypeCuttings                     Type = "3"
	TypeCore                         Type = "4"
	TypeCoreSections                 Type = "5"
	TypeCoreSectionHalf              Type = "6"
	TypeCoreWholeRound               Type = "7"
	TypeCoreHalfRound                Type = "8"
	TypeCoreQuarterRound             Type = "9"
	TypeCorePiece                    Type = "10"
	TypeCoreSubPiece                 Type = "11"
	TypeDredge                       Type = "12"
	TypeTerrestrialSections          Type = "13"
	TypeOther                        Type = "14"
	TypeIndividualSamples            Type = "15"
	TypeTrawl                        Type = "16"
	TypeCoreOriented                 Type = "17"
	TypeIndividualSampleSlab         Type = "19"
	TypeIndividualSampleCube         Type = "20"
	TypeIndividualSampleCylinder     Type = "21"
	TypeIndividualSampleSpecimen     Type = "23"
	TypeIndividualSampleToothpick    Type = "24"
	TypeIndividualSampleGas          Type = "25"
	TypeIndividualSampleLiquid       Type = "26"
	TypeIndividualSampleThinSection  Type = "28"
	TypeIndividualSampleSmear        Type = "29"
	TypeIndividualSampleMechFraction Type = "30"
	TypeIndividualSampleChemFraction Type = "31"
	TypeIndividualSamplePowder       Type = "32"
	TypeIndividualSampleBead         Type = "33"
	TypeIndividualSampleCulture      Type = "34"
	TypeIndividualRockPowder         Type = "35"
	TypeCTD                          Type = "36"
	TypeSite                         Type = "37"
	TypeExperimentalSpecimen         Type = "38"
	TypeExperimentalSpecimenOther    Type = "40"
)

Jump to

Keyboard shortcuts

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