104 lines
4.1 KiB
TypeScript
104 lines
4.1 KiB
TypeScript
|
import {Component} from '@angular/core';
|
||
|
import {PluginBaseComponent} from "../../utils/base-plugin.component";
|
||
|
import {PluginGatewayInformation} from "./plugin-gateway-information.component";
|
||
|
import {OpenaireEntities} from "../../../../utils/properties/searchFields";
|
||
|
|
||
|
@Component({
|
||
|
selector: 'plugin-gateway-information-form',
|
||
|
template: `
|
||
|
<div *ngIf="pluginObject" class="uk-padding-xsmall">
|
||
|
<plugin-field-edit [value]="pluginObject.title"
|
||
|
type="text" field="title" (changed)="valueChanged($event)"></plugin-field-edit>
|
||
|
<div class="uk-margin-top uk-text-meta uk-text-small">
|
||
|
Show or hide the following information:
|
||
|
</div>
|
||
|
<div class="uk-grid uk-child-width-1-1">
|
||
|
<div>
|
||
|
Curated by:
|
||
|
<plugin-field-edit [value]=" pluginObject.curators"
|
||
|
type="boolean" field="curators" (editClicked)="pluginEditEvent = $event"
|
||
|
(changed)="valueChanged($event)">
|
||
|
|
||
|
</plugin-field-edit>
|
||
|
</div>
|
||
|
<div>
|
||
|
Created:
|
||
|
<plugin-field-edit [value]=" pluginObject.date"
|
||
|
type="boolean" field="date" (editClicked)="pluginEditEvent = $event"
|
||
|
(changed)="valueChanged($event)">
|
||
|
</plugin-field-edit>
|
||
|
</div>
|
||
|
<div>
|
||
|
{{openaireEntities.PROJECTS}}:
|
||
|
<plugin-field-edit [value]=" pluginObject.projects"
|
||
|
type="boolean" field="projects" (editClicked)="pluginEditEvent = $event"
|
||
|
(changed)="valueChanged($event)">
|
||
|
</plugin-field-edit>
|
||
|
</div>
|
||
|
<div>
|
||
|
Linked Zenodo communities:
|
||
|
<plugin-field-edit [value]=" pluginObject.communities"
|
||
|
type="boolean" field="communities" (editClicked)="pluginEditEvent = $event"
|
||
|
(changed)="valueChanged($event)">
|
||
|
</plugin-field-edit>
|
||
|
</div>
|
||
|
<div>
|
||
|
{{openaireEntities.DATASOURCES}}
|
||
|
<plugin-field-edit [value]=" pluginObject.datasources"
|
||
|
type="boolean" field="datasources" (editClicked)="pluginEditEvent = $event"
|
||
|
(changed)="valueChanged($event)">
|
||
|
|
||
|
</plugin-field-edit>
|
||
|
</div>
|
||
|
<div>
|
||
|
Subjects:
|
||
|
<plugin-field-edit [value]=" pluginObject.subjects"
|
||
|
type="boolean" field="subjects" (editClicked)="pluginEditEvent = $event"
|
||
|
(changed)="valueChanged($event)">
|
||
|
</plugin-field-edit>
|
||
|
</div>
|
||
|
<div>
|
||
|
{{openaireEntities.PUBLICATIONS}}:
|
||
|
<plugin-field-edit [value]=" pluginObject.publications"
|
||
|
type="boolean" field="publications" (editClicked)="pluginEditEvent = $event"
|
||
|
(changed)="valueChanged($event)">
|
||
|
</plugin-field-edit>
|
||
|
</div>
|
||
|
<div>
|
||
|
{{openaireEntities.DATASETS}}:
|
||
|
<plugin-field-edit [value]=" pluginObject.datasets"
|
||
|
type="boolean" field="datasets" (editClicked)="pluginEditEvent = $event"
|
||
|
(changed)="valueChanged($event)">
|
||
|
</plugin-field-edit>
|
||
|
</div>
|
||
|
<div>
|
||
|
{{openaireEntities.SOFTWARE}}:
|
||
|
<plugin-field-edit [value]=" pluginObject.software"
|
||
|
type="boolean" field="software" (editClicked)="pluginEditEvent = $event"
|
||
|
(changed)="valueChanged($event)">
|
||
|
</plugin-field-edit>
|
||
|
</div>
|
||
|
<div>
|
||
|
{{openaireEntities.OTHER}}:
|
||
|
<plugin-field-edit [value]=" pluginObject.other"
|
||
|
type="boolean" field="other" (editClicked)="pluginEditEvent = $event"
|
||
|
(changed)="valueChanged($event)">
|
||
|
</plugin-field-edit>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
`,
|
||
|
|
||
|
|
||
|
})
|
||
|
export class PluginGatewayInformationFormComponent extends PluginBaseComponent<PluginGatewayInformation> {
|
||
|
default = new PluginGatewayInformation();
|
||
|
selectedIndex = null;
|
||
|
openaireEntities= OpenaireEntities;
|
||
|
constructor() {
|
||
|
super()
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|