417 lines
14 KiB
HTML
417 lines
14 KiB
HTML
<div class="detail-page">
|
|
<div class="page-header">
|
|
<div class="breadcrumb">
|
|
<span>Bund Projekte</span>
|
|
<mat-icon>{{ CHEVRON_RIGHT_ICON }}</mat-icon>
|
|
<span>Projektdetails</span>
|
|
</div>
|
|
</div>
|
|
|
|
@if (bundProject) {
|
|
<div class="project-hero">
|
|
<div class="hero-content">
|
|
<div class="eyebrow">
|
|
<span class="project-badge">Bund Projekt</span>
|
|
<span class="project-id"
|
|
>ID: {{ bundProject.funding_reference }}</span
|
|
>
|
|
<!-- @if (isNewProject()) {
|
|
<span class="new-badge">Neu</span>
|
|
} -->
|
|
</div>
|
|
<h1>{{ bundProject.title || 'Ohne Titel' }}</h1>
|
|
@if (bundProject.funding_reference) {
|
|
<p class="project-reference">
|
|
<strong>{{ bundProject.funding_type }}</strong>
|
|
</p>
|
|
}
|
|
<div class="hero-actions">
|
|
<div
|
|
class="status-badge"
|
|
[style.background-color]="
|
|
getStatusColor(getStatusDisplay(bundProject.funding_end_date))
|
|
">
|
|
<mat-icon>{{ CIRCLE_ICON }}</mat-icon>
|
|
<span>{{ getStatusDisplay(bundProject.funding_end_date) }}</span>
|
|
</div>
|
|
<!-- @if (bundProject.project_agency) {
|
|
<div class="agency-info" (click)="searchForAgency(bundProject.project_agency)">
|
|
<mat-icon>{{ ACCOUNT_BALANCE_ICON }}</mat-icon>
|
|
<span>{{ bundProject.project_agency_fullname || bundProject.project_agency }}</span>
|
|
</div>
|
|
} -->
|
|
<!-- @if (bundProject.funding_type) {
|
|
<div class="funding-type-info" (click)="searchForFundingType(bundProject.funding_type)">
|
|
<mat-icon>{{ CATEGORY_ICON }}</mat-icon>
|
|
<span>{{ bundProject.funding_type }}</span>
|
|
</div>
|
|
} -->
|
|
</div>
|
|
</div>
|
|
|
|
<div class="metrics-grid">
|
|
<div class="metric-item">
|
|
<mat-icon>{{ CALENDAR_ICON }}</mat-icon>
|
|
<div class="metric-content">
|
|
<strong>{{
|
|
bundProject.funding_start_date | date: 'dd.MM.yyyy'
|
|
}}</strong>
|
|
<span>Förderbeginn</span>
|
|
</div>
|
|
</div>
|
|
<div class="metric-item">
|
|
<mat-icon>{{ EVENT_BUSY_ICON }}</mat-icon>
|
|
<div class="metric-content">
|
|
<strong>{{
|
|
getFundingStatus(bundProject.funding_end_date)
|
|
| date: 'dd.MM.yyyy'
|
|
}}</strong>
|
|
<span>Förderende</span>
|
|
</div>
|
|
</div>
|
|
<div class="metric-item">
|
|
<mat-icon>{{ ACCESS_TIME_ICON }}</mat-icon>
|
|
<div class="metric-content">
|
|
<strong>{{
|
|
getStatusDisplay(bundProject.funding_end_date)
|
|
}}</strong>
|
|
<span>Status</span>
|
|
</div>
|
|
</div>
|
|
@if (bundProject.funding_amount) {
|
|
<div class="metric-item">
|
|
<mat-icon>{{ PAID_ICON }}</mat-icon>
|
|
<div class="metric-content">
|
|
<strong>{{
|
|
bundProject.funding_amount
|
|
| currency: 'EUR' : 'symbol' : '1.0-0' : 'de'
|
|
}}</strong>
|
|
<span>Fördersumme</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (bundProject.funding_profile) {
|
|
<div class="metric-item">
|
|
<mat-icon>{{ ASSIGNMENT_ICON }}</mat-icon>
|
|
<div class="metric-content">
|
|
<strong>{{ bundProject.funding_profile }}</strong>
|
|
<span>Förderprofil</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content-grid">
|
|
<main class="main-content">
|
|
@if (bundProject.description) {
|
|
<mat-card appearance="outlined" class="card description-card">
|
|
<div class="section-header">
|
|
<mat-icon>{{ DESCRIPTION_ICON }}</mat-icon>
|
|
<h2>Beschreibung</h2>
|
|
</div>
|
|
<p class="description-text">{{ bundProject.description }}</p>
|
|
</mat-card>
|
|
}
|
|
<!-- OpenAlex Topics -->
|
|
@if (bundProject.oa_topics && bundProject.oa_topics.length > 0) {
|
|
<app-project-oa-topics
|
|
[topics]="bundProject.oa_topics"></app-project-oa-topics>
|
|
}
|
|
<!-- Beteiligte Personen -->
|
|
@if (getAssociatedPersons().length > 0) {
|
|
<mat-card appearance="outlined" class="card">
|
|
<div class="section-header">
|
|
<mat-icon>{{ PEOPLE_ICON }}</mat-icon>
|
|
<h2>Beteiligte Personen</h2>
|
|
<span class="count-badge">{{
|
|
getAssociatedPersons().length
|
|
}}</span>
|
|
</div>
|
|
<div class="person-grid">
|
|
@for (person of getAssociatedPersons(); track person) {
|
|
<div class="person-item" (click)="searchForPersonName(person)">
|
|
<div class="avatar">{{ getInitials(person) }}</div>
|
|
<div class="person-name">{{ person }}</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</mat-card>
|
|
}
|
|
|
|
@if (
|
|
bundProject.executing_agency ||
|
|
bundProject.funding_recipient ||
|
|
bundProject.project_agency ||
|
|
bundProject.department ||
|
|
bundProject.division
|
|
) {
|
|
<mat-card appearance="outlined" class="card">
|
|
<div class="section-header">
|
|
<mat-icon>{{ BUSINESS_ICON }}</mat-icon>
|
|
<h2>Beteiligte Institution</h2>
|
|
</div>
|
|
<dl class="details-list">
|
|
@if (bundProject.executing_agency) {
|
|
<div class="detail-row">
|
|
<dt>Ausführende Stelle</dt>
|
|
<dd
|
|
class="clickable"
|
|
(click)="
|
|
searchForInstitutionName(bundProject.executing_agency)
|
|
">
|
|
{{ bundProject.executing_agency }}
|
|
</dd>
|
|
</div>
|
|
}
|
|
@if (bundProject.funding_recipient) {
|
|
<div class="detail-row">
|
|
<dt>Förderempfänger</dt>
|
|
<dd
|
|
class="clickable"
|
|
(click)="
|
|
searchForInstitutionName(bundProject.funding_recipient)
|
|
">
|
|
{{ bundProject.funding_recipient }}
|
|
</dd>
|
|
</div>
|
|
}
|
|
@if (bundProject.project_agency) {
|
|
<div class="detail-row">
|
|
<dt>Projektagentur</dt>
|
|
<dd
|
|
class="clickable"
|
|
(click)="
|
|
searchForInstitutionName(
|
|
bundProject.project_agency_fullname ||
|
|
bundProject.project_agency
|
|
)
|
|
">
|
|
{{
|
|
bundProject.project_agency_fullname ||
|
|
bundProject.project_agency
|
|
}}
|
|
</dd>
|
|
</div>
|
|
}
|
|
@if (bundProject.department) {
|
|
<div class="detail-row">
|
|
<dt>Abteilung</dt>
|
|
<dd
|
|
class="clickable"
|
|
(click)="
|
|
searchForInstitutionName(
|
|
bundProject.department_fullname ||
|
|
bundProject.department
|
|
)
|
|
">
|
|
{{
|
|
bundProject.department_fullname || bundProject.department
|
|
}}
|
|
</dd>
|
|
</div>
|
|
}
|
|
@if (bundProject.division) {
|
|
<div class="detail-row">
|
|
<dt>Division</dt>
|
|
<dd
|
|
class="clickable"
|
|
(click)="searchForInstitutionName(bundProject.division)">
|
|
{{ bundProject.division }}
|
|
</dd>
|
|
</div>
|
|
}
|
|
</dl>
|
|
</mat-card>
|
|
}
|
|
|
|
<!-- Standort -->
|
|
@if (
|
|
bundProject.location ||
|
|
bundProject.municipality ||
|
|
bundProject.state ||
|
|
bundProject.country
|
|
) {
|
|
<mat-card appearance="outlined" class="card">
|
|
<div class="section-header">
|
|
<mat-icon>{{ LOCATION_ICON }}</mat-icon>
|
|
<h2>Standort</h2>
|
|
</div>
|
|
<dl class="details-list">
|
|
@if (bundProject.location) {
|
|
<div class="detail-row">
|
|
<dt>Standort</dt>
|
|
<dd>
|
|
{{ bundProject.location }}
|
|
</dd>
|
|
</div>
|
|
}
|
|
@if (bundProject.municipality) {
|
|
<div class="detail-row">
|
|
<dt>Gemeinde</dt>
|
|
<dd>{{ bundProject.municipality }}</dd>
|
|
</div>
|
|
}
|
|
@if (bundProject.state) {
|
|
<div class="detail-row">
|
|
<dt>Bundesland</dt>
|
|
<dd>
|
|
{{ bundProject.state }}
|
|
</dd>
|
|
</div>
|
|
}
|
|
@if (bundProject.country) {
|
|
<div class="detail-row">
|
|
<dt>Land</dt>
|
|
<dd>{{ bundProject.country }}</dd>
|
|
</div>
|
|
}
|
|
@if (bundProject.municipality_code) {
|
|
<div class="detail-row">
|
|
<dt>Gemeindeschlüssel</dt>
|
|
<dd>{{ bundProject.municipality_code }}</dd>
|
|
</div>
|
|
}
|
|
</dl>
|
|
</mat-card>
|
|
}
|
|
|
|
<!-- Zusätzliche Informationen -->
|
|
@if (
|
|
bundProject.performance_plan_code ||
|
|
bundProject.performance_plan_fullname ||
|
|
bundProject.publication_date ||
|
|
bundProject.record_date
|
|
) {
|
|
<mat-card appearance="outlined" class="card">
|
|
<div class="section-header">
|
|
<mat-icon>{{ MORE_INFO_ICON }}</mat-icon>
|
|
<h2>Weitere Informationen</h2>
|
|
</div>
|
|
<dl class="details-list">
|
|
@if (bundProject.performance_plan_code) {
|
|
<div class="detail-row">
|
|
<dt>Leistungsplancode</dt>
|
|
<dd>{{ bundProject.performance_plan_code }}</dd>
|
|
</div>
|
|
}
|
|
@if (bundProject.performance_plan_fullname) {
|
|
<div class="detail-row">
|
|
<dt>Leistungsplan</dt>
|
|
<dd>{{ bundProject.performance_plan_fullname }}</dd>
|
|
</div>
|
|
}
|
|
@if (bundProject.publication_date) {
|
|
<div class="detail-row">
|
|
<dt>Veröffentlichungsdatum</dt>
|
|
<dd>{{ bundProject.publication_date }}</dd>
|
|
</div>
|
|
}
|
|
@if (bundProject.record_date) {
|
|
<div class="detail-row">
|
|
<dt>Datensatzdatum</dt>
|
|
<dd>{{ bundProject.record_date }}</dd>
|
|
</div>
|
|
}
|
|
</dl>
|
|
</mat-card>
|
|
}
|
|
</main>
|
|
|
|
<aside class="sidebar">
|
|
<!-- Projektdetails -->
|
|
<mat-card appearance="outlined" class="card details-card">
|
|
<div class="section-header">
|
|
<mat-icon>{{ INFO_ICON }}</mat-icon>
|
|
<h2>Projektdetails</h2>
|
|
</div>
|
|
<dl class="details-list">
|
|
<div class="detail-row">
|
|
<dt>Projekt ID</dt>
|
|
<dd>{{ bundProject.funding_reference || 'N/A' }}</dd>
|
|
</div>
|
|
<!-- <div class="detail-row">
|
|
<dt>Titel</dt>
|
|
<dd>{{ bundProject.title || 'N/A' }}</dd>
|
|
</div> -->
|
|
<!-- @if (bundProject.funding_reference) {
|
|
<div class="detail-row">
|
|
<dt>Förderreferenz</dt>
|
|
<dd>{{ bundProject.funding_reference }}</dd>
|
|
</div>
|
|
} -->
|
|
@if (bundProject.funding_type) {
|
|
<div class="detail-row">
|
|
<dt>Förderart</dt>
|
|
<dd>
|
|
{{ bundProject.funding_type }}
|
|
</dd>
|
|
</div>
|
|
}
|
|
@if (bundProject.funding_profile) {
|
|
<div class="detail-row">
|
|
<dt>Förderprofil</dt>
|
|
<dd>{{ bundProject.funding_profile }}</dd>
|
|
</div>
|
|
}
|
|
@if (bundProject.funding_amount) {
|
|
<div class="detail-row">
|
|
<dt>Fördersumme</dt>
|
|
<dd>
|
|
{{
|
|
bundProject.funding_amount
|
|
| currency: 'EUR' : 'symbol' : '1.0-0' : 'de'
|
|
}}
|
|
</dd>
|
|
</div>
|
|
}
|
|
@if (bundProject.funding_amount) {
|
|
<div class="detail-row">
|
|
<dt>Agency</dt>
|
|
<dd>
|
|
{{
|
|
bundProject.project_agency_fullname ||
|
|
bundProject.project_agency
|
|
}}
|
|
</dd>
|
|
</div>
|
|
}
|
|
|
|
<!-- <div class="detail-row">
|
|
<dt>Förderbeginn</dt>
|
|
<dd>{{ getStartDate() || 'N/A' }}</dd>
|
|
</div>
|
|
<div class="detail-row">
|
|
<dt>Förderende</dt>
|
|
<dd>{{ getFundingStatus(getEndDate()) }}</dd>
|
|
</div> -->
|
|
|
|
<div class="detail-row">
|
|
<dt>Laufzeit</dt>
|
|
<dd>
|
|
von
|
|
{{ bundProject.funding_start_date | date: 'dd.MM.yyyy' }} bis
|
|
{{ bundProject.funding_end_date | date: 'dd.MM.yyyy' }}
|
|
</dd>
|
|
</div>
|
|
|
|
@if (bundProject.joint_project) {
|
|
<div class="detail-row">
|
|
<dt>Gemeinschaftsprojekt</dt>
|
|
<dd>{{ bundProject.joint_project }}</dd>
|
|
</div>
|
|
}
|
|
</dl>
|
|
</mat-card>
|
|
</aside>
|
|
</div>
|
|
} @else {
|
|
<div class="error-container">
|
|
<div class="error-state">
|
|
<mat-icon>{{ ERROR_OUTLINE_ICON }}</mat-icon>
|
|
<p>Bund Projekt nicht gefunden.</p>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|