search.component.html 879 Bytes
Newer Older
1
2
<form class="form-inline "[formGroup]="Form">
    <input class="form-control" type="text" placeholder="Search" aria-label="Search" formControlName="keyword">
Administrator's avatar
Administrator committed
3
    <button type="submit" (click)="simpleSearch()">Search</button>
Administrator's avatar
Administrator committed
4
5
6
  </form>


Paulo's avatar
Paulo committed
7
8
9
  <div *ngIf="!isXmlItemsEmpty()" class="w3-container">    
    <table class="w3-table-all w3-card-4">    
      <thead>    
10
        <th style="text-align: center;">Uri (DOI)</th>    
11
12
        <th style="text-align: center;">Title</th>    
        <th style="text-align: center;">Description</th>    
Paulo's avatar
Paulo committed
13
14
      </thead>    
      <tbody>
15
16
        <tr *ngFor="let item of xmlItems">     
          <td><a href="{{item.uri.value}}" target="blank">{{item.uri.value}}</a></td>   
17
          <td>{{item.title.value}}</td>    
18
          <td>{{item.description.value.substr(0,250) }}... </td>    
Administrator's avatar
Administrator committed
19
      </tr>    
Paulo's avatar
Paulo committed
20
    </tbody>
Administrator's avatar
Administrator committed
21
22
    </table>    
  </div>