compton_data

package
v0.3.35 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppNavLatest = "Книги"
	AppNavSearch = "Поиск"
)
View Source
const (
	SingleItem          = "1 книга"
	ManyItemsSinglePage = "{total} книг(и)"
	ManyItemsManyPages  = "{from}-{to} из {total} книг(и)"
)
View Source
const (
	SearchNew    = "Новый"
	SearchAdults = "Взрослые"
	SearchKids   = "Детские"
)
View Source
const (
	InformationSection   = "information"
	AnnotationSection    = "annotation"
	ExternalLinksSection = "external-links"
	SimilarSection       = "similar"
	ReviewsSection       = "reviews"
	QuotesSection        = "quotes"
	VideosSection        = "videos"
	ContentsSection      = "contents"
	FilesSection         = "files"
)

Variables

View Source
var AppNavLinks = map[string]string{
	AppNavLatest: "/latest",
	AppNavSearch: "/search",
}
View Source
var LabelProperties = []string{
	data.ArtTypeProperty,
}
View Source
var PropertyTitles = map[string]string{
	data.TitleProperty:          "Название",
	data.HTMLAnnotationProperty: "Аннотация",

	data.AuthorsProperty:      "Автор",
	data.ReadersProperty:      "Читает",
	data.TranslatorsProperty:  "Перевод",
	data.IllustratorsProperty: "Иллюстратор",
	data.PerformersProperty:   "Исполнитель",
	data.PaintersProperty:     "Художник",
	data.PublishersProperty:   "Издатель",
	data.RightholdersProperty: "Правообладатель",

	data.PriceProperty:    "Цена",
	data.RatedAvgProperty: "Рейтинг",

	data.ArtTypeProperty:   "Тип",
	data.GenresProperty:    "Жанры",
	data.TagsProperty:      "Тэги",
	data.LocalTagsProperty: "Свои тэги",
	data.MinAgeProperty:    "Возрастное ограничение",
	data.ISBNProperty:      "ISBN",
	data.SeriesProperty:    "Серия",

	data.DateWrittenAtProperty:   "Написано",
	data.PublicationDateProperty: "Опубликовано",
	data.TranslatedAtProperty:    "Переведено",
	data.RegisteredAtProperty:    "Зарегистрировано",
	data.AvailableFromProperty:   "Доступно",
	data.FirstTimeSaleAtProperty: "Начало продаж",
	data.LastReleasedAtProperty:  "Выпущено",
	data.LastUpdatedAtProperty:   "Обновлено",

	data.SymbolsCountProperty: "Объем",

	data.SortProperty:                 "Порядок",
	data.ArtsHistoryEventTimeProperty: "По дате приобретения",
	data.DescendingProperty:           "По убыванию",

	data.BookCompletedProperty: "Прочитано",

	"true":  "Да",
	"false": "Нет",
}
View Source
var SearchOrder = []string{
	SearchNew,
	SearchAdults,
	SearchKids,
}
View Source
var SectionStyles = map[string]string{
	InformationSection:   "",
	AnnotationSection:    "annotation.css",
	ExternalLinksSection: "",
	ReviewsSection:       "",
	QuotesSection:        "",
	SimilarSection:       "",
	VideosSection:        "videos.css",
	ContentsSection:      "",
	FilesSection:         "",
}
View Source
var SectionTitles = map[string]string{
	InformationSection:   "Информация",
	AnnotationSection:    "Аннотация",
	ExternalLinksSection: "Ссылки",
	ReviewsSection:       "Отзывы",
	QuotesSection:        "Цитаты",
	SimilarSection:       "Сходные книги",
	VideosSection:        "Видео",
	ContentsSection:      "Оглавление",
	FilesSection:         "Файлы",
}
View Source
var ShortPropertyTitles = map[string]string{
	data.IllustratorsProperty: "Иллюстр.",
}

Functions

func EncodeQuery added in v0.3.23

func EncodeQuery(query map[string][]string) string

func SearchScopeFromQuery added in v0.3.23

func SearchScopeFromQuery(query map[string][]string) string

func SearchScopes added in v0.3.23

func SearchScopes() map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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