Project

General

Profile

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

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

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

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

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

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

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

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

    
34
                <div class="uk-width-large-1-3 uk-width-medium-1-3 uk-row-first">
35

    
36
                  <h3>Report Request</h3>
37

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

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

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

    
56
                </div>
57

    
58
                <!--<hr>-->
59

    
60
                <div class="uk-width-large-1-3 uk-width-medium-1-3">
61
                  <h3>Report Filters</h3>
62

    
63
                  <h5>Date range</h5>
64

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

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

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

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

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

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

    
115

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

    
124
                  </div>
125

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

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

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

    
171
                  </div>
172
                </div>
173

    
174
                <!--<hr>-->
175

    
176
                <div class="uk-width-large-1-3 uk-width-medium-1-3">
177

    
178
                  <h3>Report Attributes</h3>
179

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

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

    
193
                </div>
194

    
195
              </div>
196

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

    
199
            </div>
200
          </div>
201

    
202

    
203
        </div>
204

    
205
      </div>
206

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

    
212
    </div>
213

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

    
219
  </div>
220
</div>
(10-10/17)