Documentation
¶
Index ¶
Constants ¶
View Source
const IllV1_2 = "1.2"
View Source
const TypeStatusEmpty = TypeStatus("")
View Source
const TypeStatusLoanedOrOverdue = TypeStatus("LoanedOrOverdue")
Variables ¶
View Source
var ActionMap = map[string]TypeAction{ string(TypeActionStatusRequest): TypeActionStatusRequest, string(TypeActionReceived): TypeActionReceived, string(TypeActionCancel): TypeActionCancel, string(TypeActionRenew): TypeActionRenew, string(TypeActionShippedReturn): TypeActionShippedReturn, string(TypeActionShippedForward): TypeActionShippedForward, string(TypeActionNotification): TypeActionNotification, }
View Source
var ReasonForMassageMap = map[string]TypeReasonForMessage{ string(TypeReasonForMessageRequestResponse): TypeReasonForMessageRequestResponse, string(TypeReasonForMessageStatusRequestResponse): TypeReasonForMessageStatusRequestResponse, string(TypeReasonForMessageRenewResponse): TypeReasonForMessageRenewResponse, string(TypeReasonForMessageCancelResponse): TypeReasonForMessageCancelResponse, string(TypeReasonForMessageStatusChange): TypeReasonForMessageStatusChange, string(TypeReasonForMessageNotification): TypeReasonForMessageNotification, }
View Source
var StatusMap = map[string]TypeStatus{ string(TypeStatusRequestReceived): TypeStatusRequestReceived, string(TypeStatusExpectToSupply): TypeStatusExpectToSupply, string(TypeStatusWillSupply): TypeStatusWillSupply, string(TypeStatusLoaned): TypeStatusLoaned, string(TypeStatusOverdue): TypeStatusOverdue, string(TypeStatusRecalled): TypeStatusRecalled, string(TypeStatusRetryPossible): TypeStatusRetryPossible, string(TypeStatusUnfilled): TypeStatusUnfilled, string(TypeStatusCopyCompleted): TypeStatusCopyCompleted, string(TypeStatusLoanCompleted): TypeStatusLoanCompleted, string(TypeStatusCompletedWithoutReturn): TypeStatusCompletedWithoutReturn, string(TypeStatusCancelled): TypeStatusCancelled, }
Functions ¶
func IsTransitionValid ¶
func IsTransitionValid(from, to TypeStatus) bool
Types ¶
type BibliographicItemIdCode ¶
type BibliographicItemIdCode string
const ( BibliographicItemIdCodeISBN BibliographicItemIdCode = "ISBN" BibliographicItemIdCodeISSN BibliographicItemIdCode = "ISSN" BibliographicItemIdCodeISMN BibliographicItemIdCode = "ISMN" )
func BibliographicItemIdCodeFromString ¶
func BibliographicItemIdCodeFromString(s string) (BibliographicItemIdCode, error)
type BibliographicRecordIdCode ¶
type BibliographicRecordIdCode string
const ( BibliographicRecordIdCodeOCLC BibliographicRecordIdCode = "OCLC" BibliographicRecordIdCodeLCCN BibliographicRecordIdCode = "LCCN" BibliographicRecordIdCodeAMICUS BibliographicRecordIdCode = "AMICUS" BibliographicRecordIdCodeBL BibliographicRecordIdCode = "BL" BibliographicRecordIdCodeFAUST BibliographicRecordIdCode = "FAUST" BibliographicRecordIdCodeJNB BibliographicRecordIdCode = "JNB" BibliographicRecordIdCodeLA BibliographicRecordIdCode = "LA" BibliographicRecordIdCodeMedline BibliographicRecordIdCode = "Medline" BibliographicRecordIdCodeNCID BibliographicRecordIdCode = "NCID" BibliographicRecordIdCodePID BibliographicRecordIdCode = "PID" BibliographicRecordIdCodePMID BibliographicRecordIdCode = "PMID" BibliographicRecordIdCodeTP BibliographicRecordIdCode = "TP" )
func BibliographicRecordIdCodeFromString ¶
func BibliographicRecordIdCodeFromString(s string) (BibliographicRecordIdCode, error)
type ElectronicAddressType ¶
type ElectronicAddressType string
const ( ElectronicAddressTypeEmail ElectronicAddressType = "Email" ElectronicAddressTypeFtp ElectronicAddressType = "FTP" )
type LoanCondition ¶
type LoanCondition string
const ( LoanConditionLibraryUseOnly LoanCondition = "LibraryUseOnly" LoanConditionNoReproduction LoanCondition = "NoReproduction" LoanConditionSignatureRequired LoanCondition = "SignatureRequired" LoanConditionSpecCollSupervReq LoanCondition = "SpecCollSupervReq" LoanConditionWatchLibraryUseOnly LoanCondition = "WatchLibraryUseOnly" )
func LoanConditionFromStringCI ¶
func LoanConditionFromStringCI(s string) (LoanCondition, bool)
LoanConditionFromStringCI converts a string to a LoanCondition. Case-insensitive.
type PublicationType ¶
type PublicationType string
const ( PublicationTypeArchiveMaterial PublicationType = "ArchiveMaterial" PublicationTypeArticle PublicationType = "Article" PublicationTypeAudioBook PublicationType = "AudioBook" PublicationTypeBook PublicationType = "Book" PublicationTypeChapter PublicationType = "Chapter" PublicationTypeConferenceProc PublicationType = "ConferenceProc" PublicationTypeGame PublicationType = "Game" PublicationTypeGovernmentPubl PublicationType = "GovernmentPubl" PublicationTypeImage PublicationType = "Image" PublicationTypeJournal PublicationType = "Journal" PublicationTypeManuscript PublicationType = "Manuscript" PublicationTypeMap PublicationType = "Map" PublicationTypeMovie PublicationType = "Movie" PublicationTypeMusicRecording PublicationType = "MusicRecording" PublicationTypeMusicScore PublicationType = "MusicScore" PublicationTypeNewspaper PublicationType = "Newspaper" PublicationTypePatent PublicationType = "Patent" PublicationTypeReport PublicationType = "Report" PublicationTypeSoundRecording PublicationType = "SoundRecording" PublicationTypeThesis PublicationType = "Thesis" )
func PublicationTypeFromStringCI ¶
func PublicationTypeFromStringCI(s string) (PublicationType, bool)
PublicationTypeFromStringCI converts a string to a PublicationType. Case-insensitive.
type ReasonRetry ¶
type ReasonRetry string
const ( ReasonRetryCostExceedsMaxCost ReasonRetry = "CostExceedsMaxCost" ReasonRetryOnLoan ReasonRetry = "OnLoan" ReasonRetryLoanCondition ReasonRetry = "LoanCondition" )
for now, a tiny subset of https://illtransactions.org/opencode/2017/
type ReasonUnfilled ¶
type ReasonUnfilled string
const (
ReasonUnfilledDuplicate ReasonUnfilled = "Duplicate"
)
type ServiceLevel ¶
type ServiceLevel string
const ( ServiceLevelExpress ServiceLevel = "Express" ServiceLevelNormal ServiceLevel = "Normal" ServiceLevelRush ServiceLevel = "Rush" ServiceLevelSecondaryMail ServiceLevel = "SecondaryMail" ServiceLevelStandard ServiceLevel = "Standard" ServiceLevelUrgent ServiceLevel = "Urgent" )
func ServiceLevelFromStringCI ¶
func ServiceLevelFromStringCI(s string) (ServiceLevel, bool)
ServiceLevelFromStringCI converts a string to a ServiceLevel. Case-insensitive.
Click to show internal directories.
Click to hide internal directories.