- Licence.php (make name and language attributes fillable for LicenseController.php)

- LicencseController.php: select attribute part1 from languages
- adaptions for oai_datacite.xslt, doi_datacite.xslt  and datasetxml2oai-pmh.xslt: for showing correct rights identifier add adding open access for CC-BY-4.0 and CC-BY-SA-4.0 licenses
This commit is contained in:
Arno Kaimbacher 2021-05-31 15:15:47 +02:00
parent 5c49f899e5
commit a68b7b34cf
6 changed files with 21 additions and 7 deletions

View file

@ -32,7 +32,7 @@ class LicenseController extends Controller
//$languages = Language::where('active', true)->pluck('part2_t');
$languages = DB::table('languages')
->where('active', true)
->pluck('part2_t', 'part2_t');
->pluck('part1', 'part1');
return view('settings.license.edit', compact('license', 'languages'));
}

View file

@ -11,6 +11,7 @@ class License extends Model
protected $fillable = [
'name_long',
'name',
'language',
'link_licence',
'link_logo',
@ -19,6 +20,7 @@ class License extends Model
'comment_internal',
'mime_type',
'sort_order',
'language',
'active',
'pod_allowed'
];