Skip to content
Snippets Groups Projects
Commit c9f70320 authored by Tim Wagner's avatar Tim Wagner
Browse files

[TASK] Add salary_currency for baseSalary schema info

parent 00ef350d
No related branches found
No related tags found
1 merge request!20[FEATURE] Extended TCAs for Structured Data (SEO)
......@@ -117,6 +117,11 @@ class Job extends AbstractEntity {
*/
protected $validThrough = 0;
/**
* @var string
*/
protected $salaryCurrency = '';
/**
* @return string
*/
......@@ -354,4 +359,18 @@ class Job extends AbstractEntity {
public function setValidThrough(int $validThrough): void {
$this->validThrough = $validThrough;
}
/**
* @return string
*/
public function getSalaryCurrency(): string {
return $this->salaryCurrency;
}
/**
* @param string $salaryCurrency
*/
public function setSalaryCurrency(string $salaryCurrency): void {
$this->salaryCurrency = $salaryCurrency;
}
}
......@@ -67,6 +67,7 @@ return call_user_func(
--div--; LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:tca.seo_tab,
employment_types,
--palette--;;palette_seo_dates,
--palette--;;palette_salary,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime',
],
],
......@@ -79,6 +80,9 @@ return call_user_func(
'palette_title_start' => ['showitem' => 'start_date, alternative_start_date', 'canNotCollapse' => 1],
'palette_apply_function' => ['showitem' => 'hide_apply_by_email, hide_apply_by_postal, featured_offer', 'canNotCollapse' => 1],
'palette_seo_dates' => ['showitem' => 'date_posted, valid_through'],
'palette_salary' => [
'showitem' => 'salary_currency'
]
],
'columns' => [
'sorting' => [
......@@ -385,6 +389,14 @@ return call_user_func(
'eval' => 'date'
],
],
'salary_currency' => [
'exclude' => TRUE,
'label' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:' . $table . '.salary_currency',
'config' => [
'type' => 'input',
'eval' => 'upper',
],
],
],
];
}, 'sg_jobs', 'tx_sgjobs_domain_model_job'
......
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2019-09-18T11:32:45Z">
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2019-09-18T16:49:57Z">
<header>
<type>database</type>
<description>General language labels used in frontend and backend.</description>
......@@ -281,6 +281,10 @@
<source><![CDATA[Qualification]]></source>
<target><![CDATA[Qualifikation]]></target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.salary_currency" approved="yes">
<source><![CDATA[Currency code according to ISO 4217, consisting of three capital letters.]]></source>
<target><![CDATA[Währungscode nach ISO 4217, bestehend aus drei Großbuchstaben.]]></target>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.start_date" approved="yes">
<source><![CDATA[Start date]]></source>
<target><![CDATA[Einstiegsdatum]]></target>
......
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2019-09-18T11:32:45Z">
<file source-language="en" datatype="plaintext" original="messages" date="2019-09-18T16:49:57Z">
<header>
<type>database</type>
<description>General language labels used in frontend and backend.</description>
......@@ -216,6 +216,9 @@
<trans-unit id="tx_sgjobs_domain_model_job.qualification">
<source><![CDATA[Qualification]]></source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.salary_currency">
<source><![CDATA[Currency code according to ISO 4217, consisting of three capital letters.]]></source>
</trans-unit>
<trans-unit id="tx_sgjobs_domain_model_job.start_date">
<source><![CDATA[Start date]]></source>
</trans-unit>
......
......@@ -14,6 +14,7 @@ CREATE TABLE tx_sgjobs_domain_model_job (
employment_types text DEFAULT '' NOT NULL,
date_posted int(11) unsigned DEFAULT '0' NOT NULL,
valid_through int(11) unsigned DEFAULT '0' NOT NULL,
salary_currency varchar(3) DEFAULT '' NOT NULL,
description text DEFAULT '' NOT NULL,
department int(11) DEFAULT '0' NOT NULL,
contact int(11) unsigned DEFAULT '0' NOT NULL,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment