publicationcreating

package
v1.0.52 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

TODO this replicates to much of publicationviewing and publicationsearching

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindImportSingle

type BindImportSingle struct {
	Source          string `form:"source"`
	Identifier      string `form:"identifier"`
	PublicationType string `form:"publication_type"`
}

type Context

type Context struct {
	handlers.BaseContext
	Publication *models.Publication
}

type Handler

type Handler struct {
	handlers.BaseHandler
	Repo                   *repositories.Repo
	PublicationSearchIndex backends.PublicationIndex
	PublicationSources     map[string]backends.PublicationGetter
	PublicationDecoders    map[string]backends.PublicationDecoderFactory
	OrganizationService    backends.OrganizationService
}

func (*Handler) Add

func (h *Handler) Add(w http.ResponseWriter, r *http.Request, ctx Context)

func (*Handler) AddMultipleConfirm

func (h *Handler) AddMultipleConfirm(w http.ResponseWriter, r *http.Request, ctx Context)

func (*Handler) AddMultipleFinish

func (h *Handler) AddMultipleFinish(w http.ResponseWriter, r *http.Request, ctx Context)

func (*Handler) AddMultipleImport

func (h *Handler) AddMultipleImport(w http.ResponseWriter, r *http.Request, ctx Context)

func (*Handler) AddMultiplePublish

func (h *Handler) AddMultiplePublish(w http.ResponseWriter, r *http.Request, ctx Context)

func (*Handler) AddMultipleSave

func (h *Handler) AddMultipleSave(w http.ResponseWriter, r *http.Request, ctx Context)

func (*Handler) AddMultipleShow

func (h *Handler) AddMultipleShow(w http.ResponseWriter, r *http.Request, ctx Context)

TODO after changing tabs, the wrong url is pushed in the history

func (*Handler) AddSingleConfirm

func (h *Handler) AddSingleConfirm(w http.ResponseWriter, r *http.Request, ctx Context)

func (*Handler) AddSingleDescription

func (h *Handler) AddSingleDescription(w http.ResponseWriter, r *http.Request, ctx Context)

func (*Handler) AddSingleFinish

func (h *Handler) AddSingleFinish(w http.ResponseWriter, r *http.Request, ctx Context)

func (*Handler) AddSingleImport

func (h *Handler) AddSingleImport(w http.ResponseWriter, r *http.Request, ctx Context)

func (*Handler) AddSingleImportConfirm

func (h *Handler) AddSingleImportConfirm(w http.ResponseWriter, r *http.Request, ctx Context)

func (*Handler) AddSinglePublish

func (h *Handler) AddSinglePublish(w http.ResponseWriter, r *http.Request, ctx Context)

func (*Handler) Wrap

type YieldAddMultiple

type YieldAddMultiple struct {
	Context
	PageTitle   string
	Step        int
	ActiveNav   string
	RedirectURL string
	BatchID     string
	SearchArgs  *models.SearchArgs
	Hits        *models.PublicationHits
}

type YieldAddMultipleShow

type YieldAddMultipleShow struct {
	Context
	PageTitle    string
	Step         int
	ActiveNav    string
	SubNavs      []string // needed to render show_description
	ActiveSubNav string   // needed to render show_description
	RedirectURL  string   // needed to render show_description
	BatchID      string
}

type YieldAddSingle

type YieldAddSingle struct {
	Context
	PageTitle            string
	Step                 int
	Source               string
	Identifier           string
	Publication          *models.Publication
	DuplicatePublication bool
	PublicationDatasets  []*models.Dataset
	ActiveNav            string
	SubNavs              []string // needed to render show_description
	ActiveSubNav         string   // needed to render show_description
	RedirectURL          string   // needed to render show_description
	DisplayDetails       *display.Display
	Errors               *YieldValidationErrors
}

type YieldValidationErrors

type YieldValidationErrors struct {
	Title  string
	Errors form.Errors
}

Jump to

Keyboard shortcuts

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