fixes for dsr report type
This commit is contained in:
parent
b39bcccbd7
commit
eed8f595cd
|
@ -61,7 +61,6 @@
|
|||
<div class="uk-width-1-1@m uk-row-first">
|
||||
|
||||
<!-- RESULTS TABLE -->
|
||||
{{chosenReport}}
|
||||
<div class="uk-overflow-container">
|
||||
<table class="uk-table table_check" style="overflow-wrap: anywhere;">
|
||||
<thead>
|
||||
|
@ -91,7 +90,7 @@
|
|||
<ng-container *ngFor="let item of r5report[reportItems]; let i=index">
|
||||
<tr>
|
||||
<ng-container *ngIf="chosenReport === 'DSR'; else notDsrRow">
|
||||
<td>{{item.Dataset_Title}}</td>
|
||||
<td class="uk-width-1-3">{{item.Dataset_Title}}</td>
|
||||
<td>{{item.Publisher}}</td>
|
||||
<td>{{item.YOP}}</td>
|
||||
<td>{{item.Access_Method}}</td>
|
||||
|
|
|
@ -133,7 +133,7 @@
|
|||
|
||||
</div>
|
||||
|
||||
<div *ngIf="chosen_report == 'PR' || chosen_report == 'IR' || chosen_report == 'DSR'">
|
||||
<div *ngIf="chosen_report == 'PR' || chosen_report == 'IR'">
|
||||
<h5>Metric Type</h5>
|
||||
<div>
|
||||
<label>
|
||||
|
@ -147,7 +147,7 @@
|
|||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input type="checkbox" class="uk-checkbox" value="Unique_Item_Requests" checked (change)="updateUniqueItemRequests($event)"> UniqueItem Requests
|
||||
<input type="checkbox" class="uk-checkbox" value="Unique_Item_Requests" checked (change)="updateUniqueItemRequests($event)"> Unique Item Requests
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
|
@ -157,6 +157,30 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="chosen_report == 'DSR'">
|
||||
<h5>Metric Type</h5>
|
||||
<div>
|
||||
<label>
|
||||
<input type="checkbox" class="uk-checkbox" value="Total_Dataset_Requests" checked (change)="updateTotalItemRequests($event)"> Total Dataset Requests
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input type="checkbox" class="uk-checkbox" value="Total_Dataset_Investigations" checked (change)="updateTotalItemInvestigations($event)"> Total Dataset Investigations
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input type="checkbox" class="uk-checkbox" value="Unique_Dataset_Requests" checked (change)="updateUniqueItemRequests($event)"> Unique Dataset Requests
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input type="checkbox" class="uk-checkbox" value="Unique_Dataset_Investigations" checked (change)="updateUniqueItemInvestigations($event)"> Unique Dataset Investigations
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="chosen_report == 'IR1' || chosen_report == 'RR1' || chosen_report == 'JR1'
|
||||
|| chosen_report == 'PR' || chosen_report == 'IR'">
|
||||
|
||||
|
|
|
@ -80,13 +80,20 @@ export class MetricsUsagestatsReportComponent implements OnInit {
|
|||
getParams() {
|
||||
// this.repoId = this.route.snapshot.paramMap.get('id');
|
||||
this.release = this.route.snapshot.paramMap.get('reportType').slice(1, 2);
|
||||
if (this.release === '5') {
|
||||
this.totalItemRequests = 'Total_Item_Requests';
|
||||
this.totalItemInvestigations = 'Total_Item_Investigations';
|
||||
this.uniqueItemRequests = 'Unique_Item_Requests';
|
||||
this.uniqueItemInvestigations = 'Unique_Item_Investigations';
|
||||
}
|
||||
this.chosen_report = this.route.snapshot.paramMap.get('reportID');
|
||||
if (this.release === '5') {
|
||||
if (this.chosen_report === 'DSR') {
|
||||
this.totalItemRequests = 'Total_Dataset_Requests';
|
||||
this.totalItemInvestigations = 'Total_Dataset_Investigations';
|
||||
this.uniqueItemRequests = 'Unique_Dataset_Requests';
|
||||
this.uniqueItemInvestigations = 'Unique_Dataset_Investigations';
|
||||
} else {
|
||||
this.totalItemRequests = 'Total_Item_Requests';
|
||||
this.totalItemInvestigations = 'Total_Item_Investigations';
|
||||
this.uniqueItemRequests = 'Unique_Item_Requests';
|
||||
this.uniqueItemInvestigations = 'Unique_Item_Investigations';
|
||||
}
|
||||
}
|
||||
this.shownRepoId = this.convertToDisplayedFormat(this.repo.id);
|
||||
console.log(`shownRepoId is ${this.repo.id}`);
|
||||
this.title = `${this.chosen_report} report`;
|
||||
|
|
Loading…
Reference in New Issue