metadata-validator-ui/src/app/pages/oaipmh-validator/validation-settings/oaipmh-validator.component....

58 lines
3.4 KiB
HTML

<div id="page_content">
<div id="page_content_header" class="uk-blur-background" offset="65">
<div class="uk-container uk-container-large">
<div class="uk-section" [formGroup]="form">
<ng-container>
<div class="uk-margin-large-bottom">
<h6><span class="uk-text-secondary uk-margin-right">1.</span> Select a data source (repository or journal)</h6>
<div input class="uk-width-xlarge uk-margin-xsmall-left uk-margin-medium-top" inputClass="flat x-small" [formInput]="form.get('url')"
placeholder="Give the URL from one of your registered repositories" type="URL" (valueChange)="getSets()"></div>
</div>
<div class="uk-margin-large-bottom">
<h6><span class="uk-text-secondary uk-margin-right">2.</span> Select guidelines</h6>
<div class="uk-margin-medium-top">
<div *ngFor="let option of options" class="uk-margin-xsmall-left uk-margin-small-bottom">
<input [id]="option.value" type="radio" [value]="option.value" name="guidelines" formControlName="guidelines">
<label [for]="option.value" class="uk-margin-xsmall-left">{{option.label}}</label>
</div>
</div>
</div>
<div class="uk-margin-large-bottom">
<h6><span class="uk-text-secondary uk-margin-right">3.</span> Define the number of record to validate</h6>
<div class="uk-margin-xsmall-left uk-margin-medium-top uk-margin-small-bottom">
<input id="all" type="radio" name="recordsNum" value="-1" formControlName="recordsNum">
<label for="all" class="uk-margin-xsmall-left">All</label>
</div>
<div class="uk-flex uk-flex-middle uk-margin-xsmall-left">
<input id="custom" type="radio" name="recordsNum" [value]="recordsNum" formControlName="recordsNum">
<label for="custom" class="uk-margin-xsmall-left">
Custom
</label>
<span class="uk-margin-left uk-flex-inline uk-flex-middle">
<icon class="clickable" name="do_not_disturb_on" flex="true" ratio="0.9" [class.uk-disabled]="recordsNum <= 10" (click)="updateRecordsNum(false)"></icon>
<span class="uk-margin-small-left uk-margin-small-right">{{recordsNum}}</span>
<icon class="clickable" name="add_circle" flex="true" ratio="0.9" [class.uk-disabled]="recordsNum >= 100" (click)="updateRecordsNum(true)"></icon>
</span>
</div>
<div input type="select" placeholder="Select validation set" inputClass="flat x-small"
[options]="sets" [formInput]="form.get('set')" class="uk-width-large uk-margin-medium-top uk-margin-xsmall-left"></div>
<!-- [options]="sets" [value]="form.get('set').value" [formInput]="form.get('set')" class="uk-width-large uk-margin-medium-top uk-margin-xsmall-left"></div>-->
</div>
<div class="uk-margin-medium-top uk-margin-xsmall-left">
<button class="uk-button uk-flex uk-flex-middle uk-flex-wrap"
[class.uk-button-primary]="form.valid" [class.uk-disabled]="!form.valid"
(click)="validate();">
<span class="uk-margin-small-left">Start Validation</span>
</button>
</div>
</ng-container>
</div>
</div>
</div>
</div>