Project

General

Profile

1
<div id="page_content_inner">
2
  <h2 class="heading_b uk-margin-bottom">{{ title }}</h2>
3

    
4
  <!-- TOP HELP CONTENT -->
5
  <help-content #topHelperContent [position]="'top'"
6
                [ngClass]="topHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
7
  </help-content>
8

    
9
  <div class="uk-grid">
10

    
11
    <!-- LEFT HELP CONTENT -->
12
    <aside-help-content #leftHelperContent [position]="'left'"
13
                        [ngClass]="leftHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
14
    </aside-help-content>
15

    
16
    <!-- MIDDLE -->
17
    <div class=" uk-width-expand@m">
18

    
19
      <div *ngIf="errorMessage" class="uk-alert uk-alert-warning">{{errorMessage}}</div>
20
      <div *ngIf="loadingMessage" class="loading-big">
21
        <div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
22
          {{ loadingMessage }}
23
        </div>
24
        <div class="transparentFilm"></div>
25
      </div>
26
      <div *ngIf="repo && chosen_report" class="uk-margin-top">
27

    
28
        <div class="md-card">
29
          <div class="md-card-content large-padding">
30

    
31
            <div class="uk-grid uk-grid-divider" data-uk-grid-margin="">
32

    
33
              <div class="uk-width-1-3@l uk-width-1-3@m uk-row-first">
34

    
35
                <h3>Report Request</h3>
36

    
37
                <div class="md-input-wrapper md-input-filled uk-margin-bottom">
38
                  <label>Report Name</label>
39
                  <input class="md-input label-fixed" type="text" value="{{ chosen_report }}" disabled>
40
                  <span class="md-input-bar "></span>
41
                </div>
42

    
43
                <div class="md-input-wrapper md-input-filled uk-margin-bottom">
44
                  <label>Release</label>
45
                  <input class="md-input label-fixed" type="text" value="4" disabled>
46
                  <span class="md-input-bar "></span>
47
                </div>
48

    
49
                <div class="md-input-wrapper md-input-filled uk-margin-bottom">
50
                  <label>Requestor</label>
51
                  <input class="md-input label-fixed" type="text" value="{{ userEmail }}" disabled>
52
                  <span class="md-input-bar "></span>
53
                </div>
54

    
55
              </div>
56

    
57
              <!--<hr>-->
58

    
59
              <div class="uk-width-1-3@l uk-width-1-3@m">
60
                <h3>Report Filters</h3>
61

    
62
                <h5>Date range</h5>
63

    
64
                <div class="uk-text-italic">
65
                  <p>Valid date formats are yyyy-mm-dd or yyyy-mm. Default range is the last available month.</p>
66
                </div>
67

    
68
                <div class="">
69
                  <div class="md-input-wrapper md-input-filled uk-margin-bottom">
70
                    <label>Begin Date</label>
71
                    <input class="md-input label-fixed" name="BeginDate" placeholder="2016-03" type="text" (blur)="updateBeginDate($event)">
72
                    <span class="md-input-bar "></span>
73
                  </div>
74
                  <div class="md-input-wrapper md-input-filled">
75
                    <label>End Date</label>
76
                    <input class="md-input label-fixed" name="EndDate" placeholder="2016-06" type="text" (blur)="updateEndDate($event)">
77
                    <span class="md-input-bar "></span>
78
                  </div>
79
                </div>
80

    
81
                <h5><span *ngIf="chosen_report == 'RR1' || chosen_report == 'JR1'">Optional </span>Filters</h5>
82

    
83
                <div class="uk-text-italic">
84
                  <p *ngIf="chosen_report != 'RR1' && chosen_report != 'JR1'">
85
                    For more specific results, provide an Item Identifier.<br>
86
                    Identifier format: <b>namespace:value</b><br>
87
                    Valid namespace for Item Identifier: <b>openaire</b>, <b>doi</b> or <b>oid</b>(for OAI-PMH).
88
                  </p>
89
                  <p *ngIf="chosen_report =='RR1'">
90
                    By default results are returned for all repositories.<br>
91
                    To get just the results for the current repository, check the box.</p>
92
                </div>
93

    
94
                <div *ngIf="chosen_report != 'JR1'">
95
                  <div class="md-input-wrapper md-input-filled uk-margin-bottom">
96
                    <label>Repository Identifier</label>
97
                    <input class="md-input label-fixed" type="text" value="{{ shownRepoId }}" disabled>
98
                    <span class="md-input-bar "></span>
99
                  </div>
100
                  <div *ngIf="chosen_report =='RR1'" class="uk-margin-bottom">
101
                    <input class="md-input label-fixed" type="checkbox" value="useCurrentRepo" (change)="updateUseCurrentRepo($event)">
102
                    <label class="inline-label">Select current repository</label>
103
                  </div>
104
                </div>
105

    
106
                <div *ngIf="repo.issn && chosen_report == 'JR1'" class="">
107
                  <div class="md-input-wrapper md-input-filled uk-margin-bottom">
108
                    <label>Journal Identifier</label>
109
                    <input class="md-input label-fixed" type="text" value="{{ shownRepoId }}" disabled>
110
                    <span class="md-input-bar "></span>
111
                  </div>
112
                </div>
113

    
114

    
115
                <div *ngIf="chosen_report != 'JR1' && chosen_report != 'RR1'" class="">
116
                  <div class="md-input-wrapper md-input-filled uk-margin-bottom">
117
                    <label>Item Identifier</label>
118
                    <input class="md-input label-fixed" name="ItemIdentifier" placeholder="e.g. openaire:od_________::fb90de6f20d79783d05749d8f60417d5"
119
                           type="text" (blur)="updateItemIdentifier($event)">
120
                    <span class="md-input-bar "></span>
121
                  </div>
122

    
123
                </div>
124

    
125
                <div *ngIf="chosen_report == 'IR1' || chosen_report == 'RR1' || chosen_report == 'JR1'">
126

    
127
                  <div class="uk-text-italic uk-margin-top uk-margin-bottom">
128
                    <p>Optional filter to only show results for a single item type, e.g. article, book, etc.</p>
129
                  </div>
130

    
131
                  <div class="md-input-wrapper md-input-filled">
132
                    <label class="">Item Data Type</label>
133
                    <select class="md-input" name="ItemDataType" (change)="updateItemDataType($event)">
134
                      <!-- TODO: get the list from api if it becomes available -->
135
                      <option value="">--- Select Item Data Type ---</option>
136
                      <option value="Annotation">Annotation</option>
137
                      <option value="Article">Article</option>
138
                      <option value="Bachelor thesis">Bachelor thesis</option>
139
                      <option value="Book">Book</option>
140
                      <option value="clinical trial">clinical trial</option>
141
                      <option value="Collection">Collection</option>
142
                      <option value="Conference object">Conference object</option>
143
                      <option value="Contribution for newspaper or weekly magazine">Contribution for newspaper or weekly magazine</option>
144
                      <option value="Dataset">Dataset</option>
145
                      <option value="Doctoral thesis">Doctoral thesis</option>
146
                      <option value="Event">Event</option>
147
                      <option value="External research report">External research report</option>
148
                      <option value="Film">Film</option>
149
                      <option value="Image">Image</option>
150
                      <option value="InteractiveResource">InteractiveResource</option>
151
                      <option value="Internal report">Internal report</option>
152
                      <option value="Lecture">Lecture</option>
153
                      <option value="Master thesis">Master thesis</option>
154
                      <option value="Newsletter">Newsletter</option>
155
                      <option value="Other">Other</option>
156
                      <option value="Part of book or chapter of book">Part of book or chapter of book</option>
157
                      <option value="Patent">Patent</option>
158
                      <option value="PhysicalObject">PhysicalObject</option>
159
                      <option value="Preprint">Preprint</option>
160
                      <option value="Report">Report</option>
161
                      <option value="Research">Research</option>
162
                      <option value="Review">Review</option>
163
                      <option value="Software">Software</option>
164
                      <option value="Sound">Sound</option>
165
                      <option value="Unknown">Unknown</option>
166
                    </select>
167
                    <span class="md-input-bar"></span>
168
                  </div>
169

    
170
                </div>
171
              </div>
172

    
173
              <!--<hr>-->
174

    
175
              <div class="uk-width-1-3@l uk-width-1-3@m">
176

    
177
                <h3>Report Attributes</h3>
178

    
179
                <div class="uk-text-italic">
180
                  <p>Valid Granularity values: Monthly or Totals</p>
181
                </div>
182

    
183
                <div class="md-input-wrapper md-input-filled">
184
                  <label class="">Granularity</label>
185
                  <select class="md-input" name="Granularity" (change)="updateGranularity($event)">
186
                    <option value="Monthly">Monthly</option>
187
                    <option value="Totals">Totals</option>
188
                  </select>
189
                  <span class="md-input-bar"></span>
190
                </div>
191

    
192
              </div>
193

    
194
            </div>
195

    
196
            <a class="uk-button uk-button-primary uk-margin-top" (click)="goToReport()">Get Report</a>
197

    
198
          </div>
199
        </div>
200

    
201

    
202
      </div>
203

    
204
    </div>
205

    
206
    <!-- RIGHT HELP CONTENT -->
207
    <aside-help-content #rightHelperContent [position]="'right'"
208
                        [ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
209
    </aside-help-content>
210

    
211
  </div>
212

    
213
  <!-- BOTTOM HELP CONTENT -->
214
  <help-content #bottomHelperContent [position]="'bottom'"
215
                [ngClass]="bottomHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
216
  </help-content>
217

    
218
</div>
(10-10/15)