LP#1646210 Add CN Affixes to Grids WIP
[working/Evergreen.git] / Open-ILS / src / templates / staff / circ / transits / t_list.tt2
1 <div class="container-fluid" style="text-align:center">
2   <div class="alert alert-info alert-less-pad strong-text-2">
3     <span>[% l('Transit List') %]</span>
4   </div>
5 </div>
6
7 <div>
8   <div class="form-group col-md-4">
9     <div class="row">
10       <label><input type="radio" ng-model="transit_direction" value="to"></input>[% l('Transits To') %]</label>
11       <label><input type="radio" ng-model="transit_direction" value="from"></input>[% l('Transits From') %]</label>
12     </div>
13     <div class="row">
14       <label for="select-transit-ou">[% l('Library: ' ) %]</label>
15       <eg-org-selector id="select-transit-ou" selected="context_org"></eg-org-selector>
16     </div>
17   </div>
18   <div class="form-group form-inline col-md-4">
19     <label for="select-start-date">[% l('Start Date: ') %]</label>
20     <eg-date-input id="select-start-date" ng-model="dates.start_date"></eg-date-input>
21     <label for="select-end-date">[% l('End Date: ') %]</label>
22     <eg-date-input id="select-end-date" ng-model="dates.end_date"></eg-date-input>
23   </div>
24 </div>
25
26 <hr/>
27
28 <eg-grid
29   id-field="id"
30   idl-class="atc"
31   features="-sort,-multisort"
32   grid-controls="grid_controls"
33   persist-key="circ.transits.list"
34   dateformat="{{$root.egDateAndTimeFormat}}">
35
36   <eg-grid-menu-item handler="add_copies_to_bucket" 
37     label="[% l('Add Items to Bucket') %]"></eg-grid-menu-item>
38   <eg-grid-menu-item handler="edit_copies" 
39     label="[% l('Edit Item Attributes') %]"></eg-grid-menu-item>
40
41   <eg-grid-menu-item handler="abort_transit" 
42     label="[% l('Cancel Transit') %]"></eg-grid-menu-item>
43   <eg-grid-menu-item handler="print_full_list"
44     label="[% l('Print Transits') %]"></eg-grid-menu-item>
45
46   <eg-grid-field path='id' hidden required></eg-grid-field>
47   <eg-grid-field path='target_copy.id' hidden required></eg-grid-field>
48   <eg-grid-field path='target_copy.call_number.record.simple_record.id' hidden required></eg-grid-field>
49   <eg-grid-field path='hold_transit_copy.hold.id' hidden required></eg-grid-field>
50   <eg-grid-field path='target_copy.barcode' label="[% l('Barcode') %]" sortable>
51     <a target="_self" href="./cat/item/{{item['target_copy.id']}}">{{item['target_copy.barcode']}}</a>
52   </eg-grid-field>
53   <eg-grid-field path='target_copy.circ_lib.shortname' hidden></eg-grid-field>
54   <eg-grid-field path='target_copy.location.name' label="[% l('Copy Location') %]" hidden sortable></eg-grid-field>
55   <eg-grid-field label="[% l('CN Prefix') %]" path="target_copy.call_number.prefix.label"></eg-grid-field>
56   <eg-grid-field path='target_copy.call_number.label' hidden sortable></eg-grid-field>
57   <eg-grid-field label="[% l('CN Suffix') %]" path="target_copy.call_number.suffix.label"></eg-grid-field>
58   <eg-grid-field path='target_copy.call_number.record.simple_record.title' label="[% l('Title') %]" sortable>
59     <a target="_self" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item['target_copy.call_number.record.simple_record.id']}}">
60       {{item['target_copy.call_number.record.simple_record.title']}}
61     </a>
62   </eg-grid-field>
63   <eg-grid-field path='target_copy.call_number.record.simple_record.author' hidden></eg-grid-field>
64   <eg-grid-field path='source.shortname' label="[% l('Source Library') %]" sortable></eg-grid-field>
65   <eg-grid-field path='dest.shortname' label="[% l('Destination Library') %]" sortable></eg-grid-field>
66   <eg-grid-field path='source_send_time' datatype="timestamp" sortable></eg-grid-field>
67   <eg-grid-field path='hold_transit_copy.hold.hold_type'></eg-grid-field>
68   <eg-grid-field path='hold_transit_copy.hold.request_time' datatype="timestamp" hidden></eg-grid-field>
69   <eg-grid-field path='hold_transit_copy.hold.capture_time' datatype="timestamp" hidden></eg-grid-field>
70   <eg-grid-field path='hold_transit_copy.hold.expire_time' datatype="timestamp" hidden></eg-grid-field>
71   <eg-grid-field path='hold_transit_copy.hold.usr.family_name' hidden></eg-grid-field>
72   <eg-grid-field path='hold_transit_copy.hold.usr.first_given_name' hidden></eg-grid-field>
73   <eg-grid-field path='hold_transit_copy.hold.usr.card.barcode' label="[% l('Patron Barcode') %]" hidden></eg-grid-field>
74 </eg-grid>
75