compton_data

package
v0.3.95 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 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 (
	LitresLabelNew        = "new"
	LitresLabelExclusive  = "exclusive"
	LitresLabelBestseller = "bestseller"
	LitresLabelSalesHit   = "sales-hit"
)
View Source
const (
	InformationSection   = "information"
	AnnotationSection    = "annotation"
	ExternalLinksSection = "external-links"
	SimilarSection       = "similar"
	ReviewsSection       = "reviews"
	VideosSection        = "videos"
	ContentsSection      = "contents"
	FilesSection         = "files"
)

Variables

View Source
var (
	SearchNew   = "Новый"
	SearchText  = litres_integration.ArtTypeText.String()
	SearchAudio = litres_integration.ArtTypeAudio.String()
	SearchPDF   = litres_integration.ArtTypePDF.String()
)
View Source
var AppNavLinks = map[string]string{
	AppNavLatest: "/latest",
	AppNavSearch: "/search",
}
View Source
var BinaryTitles = map[string]string{
	"true":  "Да",
	"false": "Нет",
}
View Source
var PropertyTitles = map[string]string{
	data.TitleProperty:          "Название",
	data.HTMLAnnotationProperty: "Аннотация",

	data.ArtFourthPresentProperty: "Подарок",

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

	data.PriceProperty:           "Цена",
	data.RatedAvgProperty:        "Рейтинг (ЛитРес)",
	data.LivelibRatedAvgProperty: "Рейтинг (LiveLib)",

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

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

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

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

	data.LitresBookLinksProperty:         "Книги",
	data.LitresAuthorLinksProperty:       "Авторы",
	data.LitresSeriesLinksProperty:       "Серии",
	data.LitresPublishersLinksProperty:   "Издатели",
	data.LitresRightholdersLinksProperty: "Правообладатели",
	data.LitresGenresLinksProperty:       "Жанры",
	data.LitresTagsLinksProperty:         "Tэги",
}
View Source
var SectionStyles = map[string]string{
	InformationSection:   "information.css",
	AnnotationSection:    "annotation.css",
	ExternalLinksSection: "external-links.css",
	ReviewsSection:       "reviews.css",
	SimilarSection:       "similar.css",
	VideosSection:        "",
	ContentsSection:      "contents.css",
	FilesSection:         "files.css",
}
View Source
var SectionTitles = map[string]string{
	InformationSection:   "Информация",
	AnnotationSection:    "Аннотация",
	ExternalLinksSection: "Ссылки Литрес",
	ReviewsSection:       "Отзывы",
	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