Project

General

Profile

1
<div class="uk-section-default uk-section uk-section-small uk-padding-remove-bottom" style="min-height: 325px">
2

    
3
  <!-- MARGIN-TOP  -->
4
  <div class="uk-sticky-placeholder" style="height: 84px; margin: 0px;" aria-hidden="true"></div>
5
  <div class="uk-container">
6

    
7
    <div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
8
      <div class="uk-width-1-1@m uk-first-column">
9

    
10
        <h1 class="uk-h2">Metrics</h1>
11

    
12
        <!-- TOP HELP CONTENT -->
13
        <help-content #topHelperContent [position]="'top'"
14
                      [ngClass]="topHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
15
        </help-content>
16

    
17
        <div class="uk-container uk-margin-medium-top uk-margin-medium-bottom">
18
          <div class="uk-grid">
19

    
20
            <!-- LEFT HELP CONTENT -->
21
            <aside-help-content #leftHelperContent [position]="'left'"
22
                                [ngClass]="leftHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
23
            </aside-help-content>
24

    
25
            <!-- MIDDLE -->
26
            <div class=" uk-width-expand@m">
27

    
28
              <div>
29
                <div *ngIf="successMessage" class="uk-alert uk-alert-success">{{ successMessage }}</div>
30
                <div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div>
31
                <div *ngIf="loadingMessage" class="loading-big">
32
                  <div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
33
                    {{ loadingMessage }}
34
                  </div>
35
                  <div class="whiteFilm"></div>
36
                </div>
37
                <div *ngIf="repo">
38
                  <div class="gwt-HTML">
39
                    <h4>You don't have metrics enabled for this repository yet. Would you like to enable them?</h4>
40
                    <p><img src="assets/imgs/metricsWorkflow-new.svg"
41
                            style="display:block; margin: 0 auto;"
42
                            width="50%"></p>
43
                    <p>Once you select to enable metrics for your repository, the following steps need to be performed:</p>
44
                    <p><i>On your side</i><br>
45
                      1. Download the tracking code for your repository platform<br>
46
                      2. Configure the tracking code according to the instructions<br>
47
                      3. Deploy the tracking code in your repository platform
48
                    </p>
49
                    <p><i>On the OpenAIRE's side</i><br>
50
                      4. Validate the installation of the tracking code and inform the repository manager accordingly<br>
51
                    </p>
52
                    <div class="uk-alert uk-alert-info">
53
                      For more details about the workflows and tools please consult the
54
                      <a target="_blank" href="http://beta.repomanager.openaire.eu/pdf/OpenAIRE_usage_stats_Guidelinesv1.pdf">
55
                        “Guidelines for Collecting Usage Events and Provision of Usage Statistics”
56
                      </a>
57
                      .
58
                    </div>
59
                    <button class="uk-button uk-button-primary" (click)="confirmEnabling()">Enable Metrics</button>
60
                  </div>
61
                </div>
62
              </div>
63

    
64
            </div>
65

    
66
            <!-- RIGHT HELP CONTENT -->
67
            <aside-help-content #rightHelperContent [position]="'right'"
68
                                [ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
69
            </aside-help-content>
70

    
71
          </div>
72
        </div>
73

    
74

    
75
        <!-- BOTTOM HELP CONTENT -->
76
        <help-content #bottomHelperContent [position]="'bottom'"
77
                      [ngClass]="bottomHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
78
        </help-content>
79

    
80

    
81
      </div>
82
    </div>
83
  </div>
84
</div>
85

    
86
<confirmation-dialog #confirmEnablingModal [title]="modalTitle" [isModalShown]="isModalShown"
87
                     [confirmActionButton]="modalButton" (emitObject)="confirmedEnabling($event)">
88
  Are you sure you want to enable metrics for this repository?
89
</confirmation-dialog>
(1-1/12)