Bug 38201: Fix translation tags
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
882b92712b
commit
06d642ac7f
|
|
@ -42,10 +42,10 @@ export default {
|
|||
name: "record_source_id",
|
||||
required: true,
|
||||
type: "text",
|
||||
label: __("Id"),
|
||||
label: this.$__("Id"),
|
||||
hideInForm: true,
|
||||
showInTable: {
|
||||
title: __("ID"),
|
||||
title: this.$__("ID"),
|
||||
data: "record_source_id",
|
||||
searchable: true,
|
||||
},
|
||||
|
|
@ -54,13 +54,13 @@ export default {
|
|||
name: "name",
|
||||
required: true,
|
||||
type: "text",
|
||||
label: __("Name"),
|
||||
label: this.$__("Name"),
|
||||
showInTable: true,
|
||||
},
|
||||
{
|
||||
name: "can_be_edited",
|
||||
type: "checkbox",
|
||||
label: __("Can be edited"),
|
||||
label: this.$__("Can be edited"),
|
||||
value: false,
|
||||
showInTable: true,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -402,13 +402,13 @@ export default {
|
|||
{
|
||||
action: "edit",
|
||||
onClick: () => this.goToResourceEdit(resource),
|
||||
title: __("Edit"),
|
||||
title: this.$__("Edit"),
|
||||
index: 0,
|
||||
},
|
||||
{
|
||||
action: "delete",
|
||||
onClick: () => this.doResourceDelete(resource),
|
||||
title: __("Delete"),
|
||||
title: this.$__("Delete"),
|
||||
index: 1,
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ export default {
|
|||
resourceAttrs: [
|
||||
{
|
||||
name: this.idAttr,
|
||||
label: __("ID"),
|
||||
label: this.$__("ID"),
|
||||
type: "text",
|
||||
hideInForm: true,
|
||||
hideInShow: true,
|
||||
|
|
@ -80,13 +80,13 @@ export default {
|
|||
name: "name",
|
||||
required: true,
|
||||
type: "text",
|
||||
label: __("Agreement name"),
|
||||
label: this.$__("Agreement name"),
|
||||
showInTable: true,
|
||||
},
|
||||
{
|
||||
name: "vendor_id",
|
||||
type: "vendor",
|
||||
label: __("Vendor"),
|
||||
label: this.$__("Vendor"),
|
||||
showInTable: true,
|
||||
showElement: {
|
||||
type: "text",
|
||||
|
|
@ -102,14 +102,14 @@ export default {
|
|||
type: "textarea",
|
||||
textAreaRows: 10,
|
||||
textAreaCols: 50,
|
||||
label: __("Description"),
|
||||
label: this.$__("Description"),
|
||||
showInTable: true,
|
||||
},
|
||||
{
|
||||
name: "status",
|
||||
required: true,
|
||||
type: "select",
|
||||
label: __("Status"),
|
||||
label: this.$__("Status"),
|
||||
showInTable: true,
|
||||
avCat: "av_agreement_statuses",
|
||||
onSelected: resource => {
|
||||
|
|
@ -122,7 +122,7 @@ export default {
|
|||
{
|
||||
name: "closure_reason",
|
||||
type: "select",
|
||||
label: __("Closure reason"),
|
||||
label: this.$__("Closure reason"),
|
||||
showInTable: true,
|
||||
avCat: "av_agreement_closure_reasons",
|
||||
disabled: agreement => agreement.status !== "closed",
|
||||
|
|
@ -130,13 +130,13 @@ export default {
|
|||
{
|
||||
name: "is_perpetual",
|
||||
type: "boolean",
|
||||
label: __("Is perpetual"),
|
||||
label: this.$__("Is perpetual"),
|
||||
showInTable: true,
|
||||
},
|
||||
{
|
||||
name: "renewal_priority",
|
||||
type: "select",
|
||||
label: __("Renewal priority"),
|
||||
label: this.$__("Renewal priority"),
|
||||
showInTable: true,
|
||||
avCat: "av_agreement_renewal_priorities",
|
||||
},
|
||||
|
|
@ -145,7 +145,7 @@ export default {
|
|||
type: "textarea",
|
||||
textAreaRows: 2,
|
||||
textAreaCols: 50,
|
||||
label: __("License info"),
|
||||
label: this.$__("License info"),
|
||||
},
|
||||
{
|
||||
name: "additional_fields",
|
||||
|
|
@ -161,35 +161,35 @@ export default {
|
|||
hidden: agreement => !!agreement.periods?.length,
|
||||
columns: [
|
||||
{
|
||||
name: __("Period start"),
|
||||
name: this.$__("Period start"),
|
||||
value: "started_on",
|
||||
format: this.format_date,
|
||||
},
|
||||
{
|
||||
name: __("Period end"),
|
||||
name: this.$__("Period end"),
|
||||
value: "ended_on",
|
||||
format: this.format_date,
|
||||
},
|
||||
{
|
||||
name: __("Cancellation deadline"),
|
||||
name: this.$__("Cancellation deadline"),
|
||||
value: "cancellation_deadline",
|
||||
format: this.format_date,
|
||||
},
|
||||
{
|
||||
name: __("Notes"),
|
||||
name: this.$__("Notes"),
|
||||
value: "notes",
|
||||
},
|
||||
],
|
||||
},
|
||||
group: __("Periods"),
|
||||
group: this.$__("Periods"),
|
||||
componentProps: {
|
||||
resourceRelationships: {
|
||||
resourceProperty: "periods",
|
||||
},
|
||||
relationshipStrings: {
|
||||
nameLowerCase: __("period"),
|
||||
nameUpperCase: __("Period"),
|
||||
namePlural: __("periods"),
|
||||
nameLowerCase: this.$__("period"),
|
||||
nameUpperCase: this.$__("Period"),
|
||||
namePlural: this.$__("periods"),
|
||||
},
|
||||
newRelationshipDefaultAttrs: {
|
||||
type: "object",
|
||||
|
|
@ -205,7 +205,7 @@ export default {
|
|||
{
|
||||
name: "started_on",
|
||||
type: "date",
|
||||
label: __("Start date"),
|
||||
label: this.$__("Start date"),
|
||||
required: true,
|
||||
indexRequired: true,
|
||||
componentProps: {
|
||||
|
|
@ -223,14 +223,14 @@ export default {
|
|||
{
|
||||
name: "ended_on",
|
||||
type: "date",
|
||||
label: __("End date"),
|
||||
label: this.$__("End date"),
|
||||
required: false,
|
||||
indexRequired: true,
|
||||
},
|
||||
{
|
||||
name: "cancellation_deadline",
|
||||
type: "date",
|
||||
label: __("Cancellation deadline"),
|
||||
label: this.$__("Cancellation deadline"),
|
||||
required: false,
|
||||
indexRequired: true,
|
||||
},
|
||||
|
|
@ -238,7 +238,7 @@ export default {
|
|||
name: "notes",
|
||||
required: false,
|
||||
type: "text",
|
||||
label: __("Notes"),
|
||||
label: this.$__("Notes"),
|
||||
indexRequired: true,
|
||||
},
|
||||
],
|
||||
|
|
@ -246,19 +246,19 @@ export default {
|
|||
{
|
||||
name: "user_roles",
|
||||
type: "relationshipWidget",
|
||||
group: __("Users"),
|
||||
group: this.$__("Users"),
|
||||
showElement: {
|
||||
type: "table",
|
||||
columnData: "user_roles",
|
||||
hidden: agreement => !!agreement.user_roles?.length,
|
||||
columns: [
|
||||
{
|
||||
name: __("Name"),
|
||||
name: this.$__("Name"),
|
||||
value: "patron",
|
||||
format: this.patron_to_html,
|
||||
},
|
||||
{
|
||||
name: __("Role"),
|
||||
name: this.$__("Role"),
|
||||
value: "role",
|
||||
av: "av_user_roles",
|
||||
},
|
||||
|
|
@ -269,9 +269,9 @@ export default {
|
|||
resourceProperty: "user_roles",
|
||||
},
|
||||
relationshipStrings: {
|
||||
nameLowerCase: __("user"),
|
||||
nameUpperCase: __("Agreement user"),
|
||||
namePlural: __("users"),
|
||||
nameLowerCase: this.$__("user"),
|
||||
nameUpperCase: this.$__("Agreement user"),
|
||||
namePlural: this.$__("users"),
|
||||
},
|
||||
newRelationshipDefaultAttrs: {
|
||||
type: "object",
|
||||
|
|
@ -286,7 +286,7 @@ export default {
|
|||
{
|
||||
name: "user_id",
|
||||
type: "component",
|
||||
label: __("User"),
|
||||
label: this.$__("User"),
|
||||
componentPath: "./PatronSearch.vue",
|
||||
required: true,
|
||||
indexRequired: true,
|
||||
|
|
@ -305,14 +305,14 @@ export default {
|
|||
},
|
||||
label: {
|
||||
type: "string",
|
||||
value: __("User"),
|
||||
value: this.$__("User"),
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "role",
|
||||
type: "select",
|
||||
label: __("Role"),
|
||||
label: this.$__("Role"),
|
||||
avCat: "av_user_roles",
|
||||
required: true,
|
||||
indexRequired: true,
|
||||
|
|
@ -322,7 +322,7 @@ export default {
|
|||
{
|
||||
name: "agreement_licenses",
|
||||
type: "relationshipWidget",
|
||||
group: __("Licenses"),
|
||||
group: this.$__("Licenses"),
|
||||
showElement: {
|
||||
type: "table",
|
||||
columnData: "agreement_licenses",
|
||||
|
|
@ -330,7 +330,7 @@ export default {
|
|||
!!agreement.agreement_licenses?.length,
|
||||
columns: [
|
||||
{
|
||||
name: __("Name"),
|
||||
name: this.$__("Name"),
|
||||
value: "license.name",
|
||||
link: {
|
||||
name: "LicensesShow",
|
||||
|
|
@ -340,21 +340,21 @@ export default {
|
|||
},
|
||||
},
|
||||
{
|
||||
name: __("Status"),
|
||||
name: this.$__("Status"),
|
||||
value: "status",
|
||||
av: "av_agreement_license_statuses",
|
||||
},
|
||||
{
|
||||
name: __("Physical location"),
|
||||
name: this.$__("Physical location"),
|
||||
value: "physical_location",
|
||||
av: "av_agreement_license_location",
|
||||
},
|
||||
{
|
||||
name: __("Notes"),
|
||||
name: this.$__("Notes"),
|
||||
value: "notes",
|
||||
},
|
||||
{
|
||||
name: __("URI"),
|
||||
name: this.$__("URI"),
|
||||
value: "uri",
|
||||
},
|
||||
],
|
||||
|
|
@ -376,16 +376,16 @@ export default {
|
|||
resourceProperty: "agreement_licenses",
|
||||
},
|
||||
relationshipStrings: {
|
||||
nameLowerCase: __("license"),
|
||||
nameUpperCase: __("License"),
|
||||
namePlural: __("licenses"),
|
||||
nameLowerCase: this.$__("license"),
|
||||
nameUpperCase: this.$__("License"),
|
||||
namePlural: this.$__("licenses"),
|
||||
},
|
||||
},
|
||||
relationshipFields: [
|
||||
{
|
||||
name: "license_id",
|
||||
type: "component",
|
||||
label: __("License"),
|
||||
label: this.$__("License"),
|
||||
componentPath: "./InfiniteScrollSelect.vue",
|
||||
required: true,
|
||||
indexRequired: true,
|
||||
|
|
@ -419,14 +419,14 @@ export default {
|
|||
{
|
||||
name: "status",
|
||||
type: "select",
|
||||
label: __("Status"),
|
||||
label: this.$__("Status"),
|
||||
avCat: "av_agreement_license_statuses",
|
||||
indexRequired: true,
|
||||
},
|
||||
{
|
||||
name: "physical_location",
|
||||
type: "select",
|
||||
label: __("Physical location"),
|
||||
label: this.$__("Physical location"),
|
||||
avCat: "av_agreement_license_location",
|
||||
indexRequired: true,
|
||||
},
|
||||
|
|
@ -434,14 +434,14 @@ export default {
|
|||
name: "notes",
|
||||
required: false,
|
||||
type: "text",
|
||||
label: __("Notes"),
|
||||
label: this.$__("Notes"),
|
||||
indexRequired: true,
|
||||
},
|
||||
{
|
||||
name: "uri",
|
||||
required: false,
|
||||
type: "text",
|
||||
label: __("URI"),
|
||||
label: this.$__("URI"),
|
||||
indexRequired: true,
|
||||
},
|
||||
],
|
||||
|
|
@ -449,7 +449,7 @@ export default {
|
|||
{
|
||||
name: "agreement_relationships",
|
||||
type: "relationshipWidget",
|
||||
group: __("Related agreements"),
|
||||
group: this.$__("Related agreements"),
|
||||
showElement: {
|
||||
type: "component",
|
||||
hidden: agreement =>
|
||||
|
|
@ -477,9 +477,9 @@ export default {
|
|||
resourceProperty: "agreement_relationships",
|
||||
},
|
||||
relationshipStrings: {
|
||||
nameLowerCase: __("related agreement"),
|
||||
nameUpperCase: __("Related agreement"),
|
||||
namePlural: __("related agreements"),
|
||||
nameLowerCase: this.$__("related agreement"),
|
||||
nameUpperCase: this.$__("Related agreement"),
|
||||
namePlural: this.$__("related agreements"),
|
||||
},
|
||||
filters: {
|
||||
type: "filter",
|
||||
|
|
@ -499,7 +499,7 @@ export default {
|
|||
{
|
||||
name: "related_agreement_id",
|
||||
type: "select",
|
||||
label: __("Related agreement"),
|
||||
label: this.$__("Related agreement"),
|
||||
requiredKey: "agreement_id",
|
||||
selectLabel: "name",
|
||||
required: true,
|
||||
|
|
@ -508,7 +508,7 @@ export default {
|
|||
{
|
||||
name: "relationship",
|
||||
type: "select",
|
||||
label: __("Relationship"),
|
||||
label: this.$__("Relationship"),
|
||||
avCat: "av_agreement_relationships",
|
||||
required: true,
|
||||
indexRequired: true,
|
||||
|
|
@ -517,7 +517,7 @@ export default {
|
|||
name: "notes",
|
||||
required: false,
|
||||
type: "text",
|
||||
label: __("Notes"),
|
||||
label: this.$__("Notes"),
|
||||
indexRequired: true,
|
||||
},
|
||||
],
|
||||
|
|
@ -542,10 +542,10 @@ export default {
|
|||
{
|
||||
name: "documents",
|
||||
type: "relationshipWidget",
|
||||
group: __("Documents"),
|
||||
group: this.$__("Documents"),
|
||||
showElement: {
|
||||
type: "component",
|
||||
label: __("Agreement users"),
|
||||
label: this.$__("Agreement users"),
|
||||
hidden: agreement => !!agreement.documents?.length,
|
||||
componentPath: "./DocumentDisplay.vue",
|
||||
componentProps: {
|
||||
|
|
@ -560,9 +560,9 @@ export default {
|
|||
resourceProperty: "documents",
|
||||
},
|
||||
relationshipStrings: {
|
||||
nameLowerCase: __("document"),
|
||||
nameUpperCase: __("Document"),
|
||||
namePlural: __("documents"),
|
||||
nameLowerCase: this.$__("document"),
|
||||
nameUpperCase: this.$__("Document"),
|
||||
namePlural: this.$__("documents"),
|
||||
},
|
||||
newRelationshipDefaultAttrs: {
|
||||
type: "object",
|
||||
|
|
@ -582,7 +582,7 @@ export default {
|
|||
name: "document",
|
||||
type: "component",
|
||||
componentPath: "./DocumentSelect.vue",
|
||||
label: __("File"),
|
||||
label: this.$__("File"),
|
||||
componentProps: {
|
||||
counter: {
|
||||
type: "string",
|
||||
|
|
@ -599,21 +599,21 @@ export default {
|
|||
name: "physical_location",
|
||||
required: false,
|
||||
type: "text",
|
||||
label: __("Physical location"),
|
||||
label: this.$__("Physical location"),
|
||||
indexRequired: true,
|
||||
},
|
||||
{
|
||||
name: "uri",
|
||||
required: false,
|
||||
type: "text",
|
||||
label: __("URI"),
|
||||
label: this.$__("URI"),
|
||||
indexRequired: true,
|
||||
},
|
||||
{
|
||||
name: "notes",
|
||||
required: false,
|
||||
type: "text",
|
||||
label: __("Notes"),
|
||||
label: this.$__("Notes"),
|
||||
indexRequired: true,
|
||||
},
|
||||
],
|
||||
|
|
@ -809,7 +809,7 @@ export default {
|
|||
{
|
||||
name: "by_expired",
|
||||
type: "checkbox",
|
||||
label: __("Filter by expired"),
|
||||
label: this.$__("Filter by expired"),
|
||||
value: false,
|
||||
onChange: function (filters) {
|
||||
if (filters.by_expired) {
|
||||
|
|
@ -825,7 +825,7 @@ export default {
|
|||
{
|
||||
name: "max_expiration_date",
|
||||
type: "date",
|
||||
label: __("on"),
|
||||
label: this.$__("on"),
|
||||
componentProps: {
|
||||
disabled: {
|
||||
resourceProperty: "by_expired",
|
||||
|
|
@ -837,7 +837,7 @@ export default {
|
|||
{
|
||||
name: "by_mine",
|
||||
type: "checkbox",
|
||||
label: __("Show mine only"),
|
||||
label: this.$__("Show mine only"),
|
||||
value: false,
|
||||
},
|
||||
];
|
||||
|
|
|
|||
|
|
@ -61,9 +61,9 @@ export default {
|
|||
name: "name",
|
||||
required: true,
|
||||
type: "text",
|
||||
label: __("Package name"),
|
||||
label: this.$__("Package name"),
|
||||
showInTable: {
|
||||
title: __("Package name"),
|
||||
title: this.$__("Package name"),
|
||||
data: "name:package_id",
|
||||
searchable: true,
|
||||
orderable: true,
|
||||
|
|
@ -81,7 +81,7 @@ export default {
|
|||
{
|
||||
name: "vendor_id",
|
||||
type: "vendor",
|
||||
label: __("Vendor"),
|
||||
label: this.$__("Vendor"),
|
||||
showInTable: true,
|
||||
showElement: {
|
||||
type: "text",
|
||||
|
|
@ -95,21 +95,21 @@ export default {
|
|||
{
|
||||
name: "package_type",
|
||||
type: "select",
|
||||
label: __("Type"),
|
||||
label: this.$__("Type"),
|
||||
showInTable: true,
|
||||
avCat: "av_package_types",
|
||||
},
|
||||
{
|
||||
name: "content_type",
|
||||
type: "select",
|
||||
label: __("Content type"),
|
||||
label: this.$__("Content type"),
|
||||
showInTable: true,
|
||||
avCat: "av_package_content_types",
|
||||
},
|
||||
{
|
||||
name: "created_on",
|
||||
type: "date",
|
||||
label: __("Created on"),
|
||||
label: this.$__("Created on"),
|
||||
showInTable: true,
|
||||
hideInForm: true,
|
||||
showElement: {
|
||||
|
|
@ -122,7 +122,7 @@ export default {
|
|||
name: "notes",
|
||||
required: false,
|
||||
type: "text",
|
||||
label: __("Notes"),
|
||||
label: this.$__("Notes"),
|
||||
showInTable: true,
|
||||
},
|
||||
{
|
||||
|
|
@ -133,7 +133,7 @@ export default {
|
|||
{
|
||||
name: "package_agreements",
|
||||
type: "relationshipWidget",
|
||||
group: __("Agreements"),
|
||||
group: this.$__("Agreements"),
|
||||
showElement: {
|
||||
type: "table",
|
||||
columnData: "package_agreements",
|
||||
|
|
@ -141,7 +141,7 @@ export default {
|
|||
!!erm_package.package_agreements?.length,
|
||||
columns: [
|
||||
{
|
||||
name: __("Agreement name"),
|
||||
name: this.$__("Agreement name"),
|
||||
value: "agreement.name",
|
||||
link: {
|
||||
name: "AgreementsShow",
|
||||
|
|
@ -164,9 +164,9 @@ export default {
|
|||
resourceProperty: "package_agreements",
|
||||
},
|
||||
relationshipStrings: {
|
||||
nameLowerCase: __("agreement"),
|
||||
nameUpperCase: __("Agreement"),
|
||||
namePlural: __("agreements"),
|
||||
nameLowerCase: this.$__("agreement"),
|
||||
nameUpperCase: this.$__("Agreement"),
|
||||
namePlural: this.$__("agreements"),
|
||||
},
|
||||
fetchOptions: {
|
||||
type: "boolean",
|
||||
|
|
@ -177,7 +177,7 @@ export default {
|
|||
{
|
||||
name: "agreement_id",
|
||||
type: "select",
|
||||
label: __("Agreement"),
|
||||
label: this.$__("Agreement"),
|
||||
requiredKey: "agreement_id",
|
||||
selectLabel: "name",
|
||||
required: true,
|
||||
|
|
@ -284,7 +284,7 @@ export default {
|
|||
return [
|
||||
{
|
||||
type: "component",
|
||||
name: __("Titles"),
|
||||
name: this.$__("Titles"),
|
||||
hidden: erm_package => erm_package,
|
||||
componentPath: "./RelationshipTableDisplay.vue",
|
||||
componentProps: {
|
||||
|
|
@ -293,7 +293,7 @@ export default {
|
|||
value: {
|
||||
columns: [
|
||||
{
|
||||
title: __("Name"),
|
||||
title: this.$__("Name"),
|
||||
data: "title.publication_title",
|
||||
searchable: true,
|
||||
orderable: true,
|
||||
|
|
@ -315,7 +315,7 @@ export default {
|
|||
},
|
||||
},
|
||||
{
|
||||
title: __("Publication type"),
|
||||
title: this.$__("Publication type"),
|
||||
data: "title.publication_type",
|
||||
searchable: true,
|
||||
orderable: true,
|
||||
|
|
|
|||
|
|
@ -56,9 +56,9 @@ export default {
|
|||
name: "publication_title",
|
||||
required: true,
|
||||
type: "text",
|
||||
label: __("Publication title"),
|
||||
label: this.$__("Publication title"),
|
||||
showInTable: {
|
||||
title: __("Publication title"),
|
||||
title: this.$__("Publication title"),
|
||||
data: "publication_title:title_id",
|
||||
searchable: true,
|
||||
orderable: true,
|
||||
|
|
@ -76,9 +76,9 @@ export default {
|
|||
{
|
||||
name: "print_identifier",
|
||||
type: "text",
|
||||
label: __("Print-format identifier"),
|
||||
label: this.$__("Print-format identifier"),
|
||||
showInTable: {
|
||||
title: __("Identifier"),
|
||||
title: this.$__("Identifier"),
|
||||
data: "print_identifier:online_identifier",
|
||||
searchable: true,
|
||||
orderable: true,
|
||||
|
|
@ -107,47 +107,49 @@ export default {
|
|||
{
|
||||
name: "online_identifier",
|
||||
type: "text",
|
||||
label: __("Online-format identifier"),
|
||||
label: this.$__("Online-format identifier"),
|
||||
},
|
||||
{
|
||||
name: "date_first_issue_online",
|
||||
type: "text",
|
||||
label: __("Date of first serial issue available online"),
|
||||
label: this.$__(
|
||||
"Date of first serial issue available online"
|
||||
),
|
||||
},
|
||||
{
|
||||
name: "num_first_vol_online",
|
||||
type: "text",
|
||||
label: __("Number of first volume available online"),
|
||||
label: this.$__("Number of first volume available online"),
|
||||
},
|
||||
{
|
||||
name: "num_first_issue_online",
|
||||
type: "text",
|
||||
label: __("Number of first issue available online"),
|
||||
label: this.$__("Number of first issue available online"),
|
||||
},
|
||||
{
|
||||
name: "date_last_issue_online",
|
||||
type: "text",
|
||||
label: __("Date of last issue available online"),
|
||||
label: this.$__("Date of last issue available online"),
|
||||
},
|
||||
{
|
||||
name: "num_last_vol_online",
|
||||
type: "text",
|
||||
label: __("Number of last volume available online"),
|
||||
label: this.$__("Number of last volume available online"),
|
||||
},
|
||||
{
|
||||
name: "num_last_issue_online",
|
||||
type: "text",
|
||||
label: __("Number of last issue available online"),
|
||||
label: this.$__("Number of last issue available online"),
|
||||
},
|
||||
{
|
||||
name: "title_url",
|
||||
type: "text",
|
||||
label: __("Title-level URL"),
|
||||
label: this.$__("Title-level URL"),
|
||||
},
|
||||
{
|
||||
name: "first_author",
|
||||
type: "text",
|
||||
label: __("First author"),
|
||||
label: this.$__("First author"),
|
||||
showInTable: {
|
||||
title: __("Contributors"),
|
||||
data: "first_author:first_editor",
|
||||
|
|
@ -167,89 +169,95 @@ export default {
|
|||
{
|
||||
name: "embargo_info",
|
||||
type: "text",
|
||||
label: __("Embargo information"),
|
||||
label: this.$__("Embargo information"),
|
||||
},
|
||||
{
|
||||
name: "coverage_depth",
|
||||
type: "text",
|
||||
label: __("Coverage depth"),
|
||||
label: this.$__("Coverage depth"),
|
||||
},
|
||||
{
|
||||
name: "notes",
|
||||
type: "text",
|
||||
label: __("Notes"),
|
||||
label: this.$__("Notes"),
|
||||
},
|
||||
{
|
||||
name: "publisher_name",
|
||||
type: "text",
|
||||
label: __("Publisher name"),
|
||||
label: this.$__("Publisher name"),
|
||||
},
|
||||
{
|
||||
name: "publication_type",
|
||||
type: "select",
|
||||
label: __("Publication type"),
|
||||
label: this.$__("Publication type"),
|
||||
avCat: "av_title_publication_types",
|
||||
showInTable: true,
|
||||
},
|
||||
{
|
||||
name: "date_monograph_published_print",
|
||||
type: "text",
|
||||
label: __("Date the monograph is first published in print"),
|
||||
label: this.$__(
|
||||
"Date the monograph is first published in print"
|
||||
),
|
||||
},
|
||||
{
|
||||
name: "date_monograph_published_online",
|
||||
type: "text",
|
||||
label: __("Date the monograph is first published online"),
|
||||
label: this.$__(
|
||||
"Date the monograph is first published online"
|
||||
),
|
||||
},
|
||||
{
|
||||
name: "monograph_volume",
|
||||
type: "text",
|
||||
label: __("Number of volume for monograph"),
|
||||
label: this.$__("Number of volume for monograph"),
|
||||
},
|
||||
{
|
||||
name: "monograph_edition",
|
||||
type: "text",
|
||||
label: __("Edition of the monograph"),
|
||||
label: this.$__("Edition of the monograph"),
|
||||
},
|
||||
{
|
||||
name: "first_editor",
|
||||
type: "text",
|
||||
label: __("First editor"),
|
||||
label: this.$__("First editor"),
|
||||
},
|
||||
{
|
||||
name: "parent_publication_title_id",
|
||||
type: "text",
|
||||
label: __("Title identifier of the parent publication"),
|
||||
label: this.$__(
|
||||
"Title identifier of the parent publication"
|
||||
),
|
||||
},
|
||||
{
|
||||
name: "preceding_publication_title_id",
|
||||
type: "text",
|
||||
label: __(
|
||||
label: this.$__(
|
||||
"Title identifier of any preceding publication title"
|
||||
),
|
||||
},
|
||||
{
|
||||
name: "access_type",
|
||||
type: "text",
|
||||
label: __("Access type"),
|
||||
label: this.$__("Access type"),
|
||||
},
|
||||
{
|
||||
name: "create_linked_biblio",
|
||||
type: "checkbox",
|
||||
group:
|
||||
this.routeAction === "add"
|
||||
? __("Create linked bibliographic record")
|
||||
: __("Update linked bibliographic record"),
|
||||
? this.$__("Create linked bibliographic record")
|
||||
: this.$__("Update linked bibliographic record"),
|
||||
label:
|
||||
this.routeAction === "add"
|
||||
? __("Create bibliographic record")
|
||||
: __("Update bibliographic record"),
|
||||
? this.$__("Create bibliographic record")
|
||||
: this.$__("Update bibliographic record"),
|
||||
value: false,
|
||||
},
|
||||
{
|
||||
name: "resources",
|
||||
type: "relationshipWidget",
|
||||
group: __("Packages"),
|
||||
group: this.$__("Packages"),
|
||||
apiClient: APIClient.erm.localPackages,
|
||||
showElement: {
|
||||
type: "component",
|
||||
|
|
@ -333,9 +341,9 @@ export default {
|
|||
resourceProperty: "resources",
|
||||
},
|
||||
relationshipStrings: {
|
||||
nameLowerCase: __("package"),
|
||||
nameUpperCase: __("Package"),
|
||||
namePlural: __("packages"),
|
||||
nameLowerCase: this.$__("package"),
|
||||
nameUpperCase: this.$__("Package"),
|
||||
namePlural: this.$__("packages"),
|
||||
},
|
||||
fetchOptions: {
|
||||
type: "boolean",
|
||||
|
|
@ -346,7 +354,7 @@ export default {
|
|||
{
|
||||
name: "package_id",
|
||||
type: "select",
|
||||
label: __("Package"),
|
||||
label: this.$__("Package"),
|
||||
requiredKey: "package_id",
|
||||
selectLabel: "name",
|
||||
required: true,
|
||||
|
|
@ -355,7 +363,7 @@ export default {
|
|||
{
|
||||
name: "vendor_id",
|
||||
type: "vendor",
|
||||
label: __("Vendor"),
|
||||
label: this.$__("Vendor"),
|
||||
indexRequired: true,
|
||||
showElement: {
|
||||
type: "text",
|
||||
|
|
@ -371,7 +379,7 @@ export default {
|
|||
{
|
||||
name: "started_on",
|
||||
type: "date",
|
||||
label: __("Start date"),
|
||||
label: this.$__("Start date"),
|
||||
componentProps: {
|
||||
date_to: {
|
||||
type: "string",
|
||||
|
|
@ -383,12 +391,12 @@ export default {
|
|||
{
|
||||
name: "ended_on",
|
||||
type: "date",
|
||||
label: __("End date"),
|
||||
label: this.$__("End date"),
|
||||
},
|
||||
{
|
||||
name: "proxy",
|
||||
type: "text",
|
||||
label: __("Proxy"),
|
||||
label: this.$__("Proxy"),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
@ -482,12 +490,12 @@ export default {
|
|||
{
|
||||
to: { name: "EHoldingsLocalTitlesFormImport" },
|
||||
icon: "plus",
|
||||
title: __("Import from list"),
|
||||
title: this.$__("Import from list"),
|
||||
},
|
||||
{
|
||||
to: { name: "EHoldingsLocalTitlesKBARTImport" },
|
||||
icon: "plus",
|
||||
title: __("Import from KBART file"),
|
||||
title: this.$__("Import from KBART file"),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ export default {
|
|||
resourceAttrs: [
|
||||
{
|
||||
name: this.idAttr,
|
||||
label: __("ID"),
|
||||
label: this.$__("ID"),
|
||||
type: "text",
|
||||
hideInForm: true,
|
||||
hideInShow: true,
|
||||
|
|
@ -66,13 +66,13 @@ export default {
|
|||
name: "name",
|
||||
required: true,
|
||||
type: "text",
|
||||
label: __("License name"),
|
||||
label: this.$__("License name"),
|
||||
showInTable: true,
|
||||
},
|
||||
{
|
||||
name: "vendor_id",
|
||||
type: "vendor",
|
||||
label: __("Vendor"),
|
||||
label: this.$__("Vendor"),
|
||||
showInTable: true,
|
||||
showElement: {
|
||||
type: "text",
|
||||
|
|
@ -88,7 +88,7 @@ export default {
|
|||
type: "textarea",
|
||||
textAreaRows: 10,
|
||||
textAreaCols: 50,
|
||||
label: __("Description"),
|
||||
label: this.$__("Description"),
|
||||
showInTable: true,
|
||||
required: true,
|
||||
},
|
||||
|
|
@ -96,7 +96,7 @@ export default {
|
|||
name: "type",
|
||||
required: true,
|
||||
type: "select",
|
||||
label: __("Type"),
|
||||
label: this.$__("Type"),
|
||||
showInTable: true,
|
||||
avCat: "av_license_types",
|
||||
},
|
||||
|
|
@ -104,14 +104,14 @@ export default {
|
|||
name: "status",
|
||||
required: true,
|
||||
type: "select",
|
||||
label: __("Status"),
|
||||
label: this.$__("Status"),
|
||||
showInTable: true,
|
||||
avCat: "av_license_statuses",
|
||||
},
|
||||
{
|
||||
name: "started_on",
|
||||
type: "date",
|
||||
label: __("Start date"),
|
||||
label: this.$__("Start date"),
|
||||
showInTable: true,
|
||||
showElement: {
|
||||
type: "text",
|
||||
|
|
@ -128,7 +128,7 @@ export default {
|
|||
{
|
||||
name: "ended_on",
|
||||
type: "date",
|
||||
label: __("End date"),
|
||||
label: this.$__("End date"),
|
||||
showInTable: true,
|
||||
showElement: {
|
||||
type: "text",
|
||||
|
|
@ -144,20 +144,20 @@ export default {
|
|||
{
|
||||
name: "user_roles",
|
||||
type: "relationshipWidget",
|
||||
group: __("Users"),
|
||||
group: this.$__("Users"),
|
||||
showElement: {
|
||||
type: "table",
|
||||
columnData: "user_roles",
|
||||
hidden: license => !!license.user_roles?.length,
|
||||
label: __("License users"),
|
||||
label: this.$__("License users"),
|
||||
columns: [
|
||||
{
|
||||
name: __("Name"),
|
||||
name: this.$__("Name"),
|
||||
value: "patron",
|
||||
format: this.patron_to_html,
|
||||
},
|
||||
{
|
||||
name: __("Role"),
|
||||
name: this.$__("Role"),
|
||||
value: "role",
|
||||
av: "av_user_roles",
|
||||
},
|
||||
|
|
@ -168,9 +168,9 @@ export default {
|
|||
resourceProperty: "user_roles",
|
||||
},
|
||||
relationshipStrings: {
|
||||
nameLowerCase: __("user"),
|
||||
nameUpperCase: __("License user"),
|
||||
namePlural: __("users"),
|
||||
nameLowerCase: this.$__("user"),
|
||||
nameUpperCase: this.$__("License user"),
|
||||
namePlural: this.$__("users"),
|
||||
},
|
||||
newRelationshipDefaultAttrs: {
|
||||
type: "object",
|
||||
|
|
@ -185,7 +185,7 @@ export default {
|
|||
{
|
||||
name: "user_id",
|
||||
type: "component",
|
||||
label: __("User"),
|
||||
label: this.$__("User"),
|
||||
componentPath: "./PatronSearch.vue",
|
||||
required: true,
|
||||
indexRequired: true,
|
||||
|
|
@ -204,14 +204,14 @@ export default {
|
|||
},
|
||||
label: {
|
||||
type: "string",
|
||||
value: __("User"),
|
||||
value: this.$__("User"),
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "role",
|
||||
type: "select",
|
||||
label: __("Role"),
|
||||
label: this.$__("Role"),
|
||||
avCat: "av_user_roles",
|
||||
required: true,
|
||||
indexRequired: true,
|
||||
|
|
@ -221,7 +221,7 @@ export default {
|
|||
{
|
||||
name: "documents",
|
||||
type: "relationshipWidget",
|
||||
group: __("Documents"),
|
||||
group: this.$__("Documents"),
|
||||
showElement: {
|
||||
type: "component",
|
||||
hidden: license => !!license.documents?.length,
|
||||
|
|
@ -238,9 +238,9 @@ export default {
|
|||
resourceProperty: "documents",
|
||||
},
|
||||
relationshipStrings: {
|
||||
nameLowerCase: __("document"),
|
||||
nameUpperCase: __("Document"),
|
||||
namePlural: __("documents"),
|
||||
nameLowerCase: this.$__("document"),
|
||||
nameUpperCase: this.$__("Document"),
|
||||
namePlural: this.$__("documents"),
|
||||
},
|
||||
newRelationshipDefaultAttrs: {
|
||||
type: "object",
|
||||
|
|
@ -260,7 +260,7 @@ export default {
|
|||
name: "document",
|
||||
type: "component",
|
||||
componentPath: "./DocumentSelect.vue",
|
||||
label: __("File"),
|
||||
label: this.$__("File"),
|
||||
componentProps: {
|
||||
counter: {
|
||||
type: "string",
|
||||
|
|
@ -277,21 +277,21 @@ export default {
|
|||
name: "physical_location",
|
||||
required: false,
|
||||
type: "text",
|
||||
label: __("Physical location"),
|
||||
label: this.$__("Physical location"),
|
||||
indexRequired: true,
|
||||
},
|
||||
{
|
||||
name: "uri",
|
||||
required: false,
|
||||
type: "text",
|
||||
label: __("URI"),
|
||||
label: this.$__("URI"),
|
||||
indexRequired: true,
|
||||
},
|
||||
{
|
||||
name: "notes",
|
||||
required: false,
|
||||
type: "text",
|
||||
label: __("Notes"),
|
||||
label: this.$__("Notes"),
|
||||
indexRequired: true,
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ export default {
|
|||
resourceAttrs: [
|
||||
{
|
||||
name: this.idAttr,
|
||||
label: __("ID"),
|
||||
label: this.$__("ID"),
|
||||
type: "text",
|
||||
hideInForm: true,
|
||||
hideInShow: true,
|
||||
|
|
@ -62,7 +62,7 @@ export default {
|
|||
},
|
||||
{
|
||||
name: "name",
|
||||
label: __("Name"),
|
||||
label: this.$__("Name"),
|
||||
required: true,
|
||||
type: "text",
|
||||
showInTable: true,
|
||||
|
|
@ -73,13 +73,13 @@ export default {
|
|||
type: "textarea",
|
||||
textAreaCols: 50,
|
||||
textAreaRows: 10,
|
||||
label: __("Description"),
|
||||
label: this.$__("Description"),
|
||||
showInTable: false,
|
||||
},
|
||||
{
|
||||
name: "not_for_loan",
|
||||
type: "select",
|
||||
label: __("Status for item added to this train"),
|
||||
label: this.$__("Status for item added to this train"),
|
||||
avCat: "av_notforloan",
|
||||
disabled: train => (train.train_id ? true : false),
|
||||
defaultValue:
|
||||
|
|
@ -88,7 +88,7 @@ export default {
|
|||
{
|
||||
name: "default_processing_id",
|
||||
type: "relationshipSelect",
|
||||
label: __("Default processing"),
|
||||
label: this.$__("Default processing"),
|
||||
required: true,
|
||||
relationshipAPIClient: APIClient.preservation.processings,
|
||||
relationshipOptionLabelAttr: "name",
|
||||
|
|
@ -101,7 +101,7 @@ export default {
|
|||
{
|
||||
name: "created_on",
|
||||
type: "date",
|
||||
label: __("Created on"),
|
||||
label: this.$__("Created on"),
|
||||
required: false,
|
||||
hideInForm: true,
|
||||
showInTable: true,
|
||||
|
|
@ -110,7 +110,7 @@ export default {
|
|||
{
|
||||
name: "closed_on",
|
||||
type: "date",
|
||||
label: __("Closed on"),
|
||||
label: this.$__("Closed on"),
|
||||
required: false,
|
||||
hideInForm: true,
|
||||
showInTable: true,
|
||||
|
|
@ -120,7 +120,7 @@ export default {
|
|||
{
|
||||
name: "sent_on",
|
||||
type: "date",
|
||||
label: __("Sent on"),
|
||||
label: this.$__("Sent on"),
|
||||
required: false,
|
||||
hideInForm: true,
|
||||
showInTable: true,
|
||||
|
|
@ -130,7 +130,7 @@ export default {
|
|||
{
|
||||
name: "received_on",
|
||||
type: "date",
|
||||
label: __("Received on"),
|
||||
label: this.$__("Received on"),
|
||||
required: false,
|
||||
hideInForm: true,
|
||||
showInTable: true,
|
||||
|
|
@ -235,10 +235,13 @@ export default {
|
|||
name: "status_filter",
|
||||
type: "radio",
|
||||
options: [
|
||||
{ value: "", description: __("All") },
|
||||
{ value: "closed", description: _("Closed") },
|
||||
{ value: "sent", description: __("Sent") },
|
||||
{ value: "received", description: __("Received") },
|
||||
{ value: "", description: this.$__("All") },
|
||||
{ value: "closed", description: this.$__("Closed") },
|
||||
{ value: "sent", description: this.$__("Sent") },
|
||||
{
|
||||
value: "received",
|
||||
description: this.$__("Received"),
|
||||
},
|
||||
],
|
||||
value: "",
|
||||
},
|
||||
|
|
@ -316,7 +319,7 @@ export default {
|
|||
params: { train_id: resource?.train_id },
|
||||
},
|
||||
icon: "plus",
|
||||
title: __("Add items"),
|
||||
title: this.$__("Add items"),
|
||||
index: -1,
|
||||
}
|
||||
: {},
|
||||
|
|
@ -326,7 +329,7 @@ export default {
|
|||
? {
|
||||
onClick: () => this.closeTrain(resource),
|
||||
icon: "remove",
|
||||
title: __("Close"),
|
||||
title: this.$__("Close"),
|
||||
}
|
||||
: {},
|
||||
resource?.closed_on &&
|
||||
|
|
@ -335,7 +338,7 @@ export default {
|
|||
? {
|
||||
onClick: () => this.sendTrain(resource),
|
||||
icon: "paper-plane",
|
||||
title: __("Send"),
|
||||
title: this.$__("Send"),
|
||||
}
|
||||
: {},
|
||||
resource?.closed_on &&
|
||||
|
|
@ -344,7 +347,7 @@ export default {
|
|||
? {
|
||||
onClick: () => this.receiveTrain(resource),
|
||||
icon: "inbox",
|
||||
title: __("Receive"),
|
||||
title: this.$__("Receive"),
|
||||
}
|
||||
: {},
|
||||
],
|
||||
|
|
@ -425,7 +428,7 @@ export default {
|
|||
return [
|
||||
{
|
||||
type: "component",
|
||||
name: __("Items"),
|
||||
name: this.$__("Items"),
|
||||
hidden: train => train.items.length,
|
||||
componentPath: "./Preservation/TrainItemsTable.vue",
|
||||
componentProps: {
|
||||
|
|
|
|||
|
|
@ -53,13 +53,13 @@ export default {
|
|||
resourceAttrs: [
|
||||
{
|
||||
name: this.idAttr,
|
||||
label: __("ID"),
|
||||
label: this.$__("ID"),
|
||||
type: "text",
|
||||
showInTable: false,
|
||||
},
|
||||
{
|
||||
name: "biblio.title",
|
||||
label: __("Title"),
|
||||
label: this.$__("Title"),
|
||||
type: "text",
|
||||
showInTable: {
|
||||
data: "biblio.title",
|
||||
|
|
@ -73,19 +73,19 @@ export default {
|
|||
},
|
||||
{
|
||||
name: "biblio.author",
|
||||
label: __("Author"),
|
||||
label: this.$__("Author"),
|
||||
type: "text",
|
||||
showInTable: true,
|
||||
},
|
||||
{
|
||||
name: "callnumber",
|
||||
label: __("Call number"),
|
||||
label: this.$__("Call number"),
|
||||
type: "text",
|
||||
showInTable: true,
|
||||
},
|
||||
{
|
||||
name: "external_id",
|
||||
label: __("Barcode"),
|
||||
label: this.$__("Barcode"),
|
||||
type: "text",
|
||||
showInTable: true,
|
||||
},
|
||||
|
|
@ -134,7 +134,7 @@ export default {
|
|||
type: "textarea",
|
||||
textAreaRows: 10,
|
||||
textAreaCols: 50,
|
||||
label: __("Barcode list"),
|
||||
label: this.$__("Barcode list"),
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
|
|
@ -142,7 +142,7 @@ export default {
|
|||
addItemsToWaitingList
|
||||
),
|
||||
icon: "plus",
|
||||
title: __("Add to waiting list"),
|
||||
title: this.$__("Add to waiting list"),
|
||||
},
|
||||
itemsRecentlyAddedToWaitingList.length > 0
|
||||
? {
|
||||
|
|
@ -158,7 +158,9 @@ export default {
|
|||
{
|
||||
name: "train_id_selected_for_add",
|
||||
type: "relationshipSelect",
|
||||
label: __("Select a train"),
|
||||
label: this.$__(
|
||||
"Select a train"
|
||||
),
|
||||
required: true,
|
||||
relationshipAPIClient:
|
||||
APIClient.preservation
|
||||
|
|
|
|||
Loading…
Reference in New Issue