Skip to content

Commit 94df471

Browse files
authored
Merge pull request #247 from UtrechtUniversity/main
Merge main into development to include release bugfixes
2 parents 429bf1e + 9100f8d commit 94df471

7 files changed

Lines changed: 28 additions & 19 deletions

File tree

.github/workflows/build-push-image.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ name: "Build MSL-API image and push it to registry"
44
on:
55
push:
66
branches:
7-
- 'master'
7+
- 'main'
88

99
jobs:
1010
push-image:
1111
if: github.repository == 'utrechtuniversity/msl_api'
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-24.04
1313
permissions:
1414
contents: read
1515
packages: write
@@ -20,23 +20,23 @@ jobs:
2020
id: extract_branch
2121

2222
- name: Check out EPOS-MSL catalog repository
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v6
2424
with:
2525
path: epos-msl
2626
repository: UtrechtUniversity/epos-msl
2727
ref: ${{ steps.extract_branch.outputs.branch }}
2828

2929
- name: Authenticate to the container registry
30-
uses: docker/login-action@v3
30+
uses: docker/login-action@v4
3131
with:
3232
registry: ghcr.io
3333
username: ${{ github.actor }}
3434
password: ${{ secrets.GITHUB_TOKEN }}
3535

3636
- name: Build and push Docker image
37-
uses: docker/build-push-action@v6
37+
uses: docker/build-push-action@v7
3838
with:
3939
context: epos-msl/docker/images/msl-api
4040
file: epos-msl/docker/images/msl-api/Dockerfile
4141
push: true
42-
tags: ghcr.io/utrechtuniversity/epos-msl-cat-mslapi:latest
42+
tags: ghcr.io/utrechtuniversity/epos-msl-cat-mslapi:development

app/Enums/LabDomain.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
enum LabDomain: string
99
{
1010
case ROCK_PHYSICS = 'Rock and melt physics';
11-
case ANALOGUE = 'Analogue modelling of geologic processes';
11+
case ANALOGUE = 'Analogue modelling of geological processes';
1212
case MICROSCOPY = 'Microscopy and tomography';
1313
case PALEO = 'Paleomagnetism';
1414
case GEO_CHEMISTRY = 'Geochemistry';

resources/views/public/components/forms/select-question.blade.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@ class="select form-field-text focus:select-secondary
1616
bg-white @endif
1717
1818
">
19-
<option disabled @if (old($sectionName) === null) selected @endif>{{ $placeholder }}</option>
20-
{{-- from https://laravel.com/docs/11.x/blade#additional-attributes --}}
19+
<option disabled @if (old($sectionName, '') === '') selected @endif>{{ $placeholder }}</option>
2120
@foreach ($options as $key => $option)
22-
<option value="{{ $key }}" @selected(old($sectionName) == $key)>
21+
<option value="{{ $key }}" @selected(old($sectionName, '') === (string) $key)>
2322
{{ $option }}
2423
</option>
2524
@endforeach
2625
</select>
2726
@if ($errors->has($sectionName))
2827
<p class="error-highlight"> {{ $errors->first($sectionName) }} </p>
2928
@endif
29+
30+
3031
</div>
3132
</div>

resources/views/public/components/list-views/table-list.blade.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
'withKeys' => true,
44
'numericKeys' => false,
55
'textSize' => 'sm',
6+
'wordBreakContent' => false,
67
])
78
<div class="w-full py-2">
89
<table class="table-fixed w-full">
@@ -24,7 +25,11 @@
2425
</td>
2526
@endif
2627

27-
<td class="text-{{ $textSize }} p-0">
28+
@if ($wordBreakContent)
29+
<td class="text-{{ $textSize }} p-0 wrap-break-word">
30+
@else
31+
<td class="text-{{ $textSize }} p-0">
32+
@endif
2833
@if (filter_var($value, FILTER_VALIDATE_URL))
2934
<a class='underline hover-interactive' href={{ $value }}>{{ $value }}</a>
3035
@else

resources/views/public/data-publication-detail.blade.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,10 @@
478478
@php
479479
$dataPublicationList = [];
480480
if ($relatedidentifier->msl_related_identifier_type == 'DOI') {
481-
$dataPublicationList[] =
482-
'https://doi.org/' . $relatedidentifier->msl_related_identifier_type;
481+
$relatedIdentifierValue = $relatedidentifier->msl_related_identifier;
482+
$dataPublicationList[] = str_starts_with($relatedIdentifierValue, 'http')
483+
? $relatedIdentifierValue
484+
: 'https://doi.org/' . $relatedIdentifierValue;
483485
} else {
484486
if ($relatedidentifier->msl_related_identifier_type != '') {
485487
$dataPublicationList[] = $relatedidentifier->msl_related_identifier_type;
@@ -571,6 +573,7 @@
571573
'Scheme URI' => $right->msl_right_scheme_uri,
572574
],
573575
'withKeys' => true,
576+
'wordBreakContent' => true,
574577
])
575578
@endforeach
576579
</div>

resources/views/public/index.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ class="w-full
3535
<a class="flex flex-col justify-between w-1/3 hover-interactive shadow-xl rounded-xl hover:rounded-xl p-2 bg-primary-100 "
3636
href="{{ route('data-access') }}">
3737
<h2 class="font-bold ">{{ $datasetsCount }}</h2>
38-
<h5>Datasets</h5>
38+
<h6>Datasets</h6>
3939
</a>
4040
<a class="flex flex-col justify-between w-1/3 hover-interactive shadow-xl rounded-xl hover:rounded-xl p-2 bg-primary-100 "
4141
href="{{ route('labs-map') }}">
4242
<h2 class="font-bold ">{{ $labCount }}</h2>
43-
<h5>Labs</h5>
43+
<h6>Labs</h6>
4444
</a>
4545
<a class="flex flex-col justify-between w-1/3 hover-interactive shadow-xl rounded-xl hover:rounded-xl p-2 bg-primary-100 "
4646
href="{{ route('data-repositories') }}">
4747
<h2 class="font-bold ">{{ $reposCount }}</h2>
48-
<h5 class="">Repos</h5>
48+
<h6>Repositories</h6>
4949
</a>
5050
</div>
5151

resources/views/public/lab-detail-equipment.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,23 @@
7171
Type
7272
</p>
7373
<p class="w-1/2 text-left">
74-
{{ $addon->msl_equipment_addon_type }}</p>
74+
{{ $addon['msl_equipment_addon_type'] }}</p>
7575
</div>
7676

7777
<div class="w-full flex flex-row p-2">
7878
<p class="w-1/2 place-content-center text-left font-bold">
7979
Group
8080
</p>
8181
<p class="w-1/2 text-left">
82-
{{ $addon->msl_equipment_addon_group }}</p>
82+
{{ $addon['msl_equipment_addon_group'] }}</p>
8383
</div>
8484

8585
<div class="w-full flex flex-row p-2">
8686
<p class="w-1/2 place-content-center text-left font-bold">
8787
Description
8888
</p>
8989
<p class="w-1/2 text-left">
90-
{{ $addon->msl_equipment_addon_description }}</p>
90+
{{ $addon['msl_equipment_addon_description'] }}</p>
9191
</div>
9292
</div>
9393
@endforeach

0 commit comments

Comments
 (0)