lp1739292 merge UI displays record summary
[working/Evergreen.git] / Open-ILS / src / templates / staff / cat / share / t_record_summary_slim.tt2
1 <div class="strong-text-2">
2   <div class="flex-row">
3     <div class="flex-cell">
4         [% l('Record Summary') %]
5         <span ng-if="record.deleted() == 't'" class="record-summary-alert">
6             [% l('(Deleted)') %]
7         </span>
8     </div>
9     <div ng-if="!noMarcLink" class="flex-cell flex-2">
10       <a target="_self" 
11         href="[% ctx.base_path %]/staff/cat/catalog/record/{{record.id()}}/marc_html">
12         (MARC)
13       </a>
14     </div>
15     <div class="flex-cell">
16       <a class="pull-right" href ng-click="toggle_expand_summary()"
17         title="[% l('Collapse Record Summary Display') %]"
18         ng-hide="collapse_summary()">
19         <span class="glyphicon glyphicon-resize-small"></span>
20       </a>
21       <a class="pull-right" href ng-click="toggle_expand_summary()"
22         title="[% l('Expand Record Summary Display') %]"
23         ng-show="collapse_summary()">
24         <span class="glyphicon glyphicon-resize-full"></span>
25       </a>
26     </div>
27   </div>
28 </div>
29 <div ng-if="record.merged_to()" class="row alert alert-warning">
30   <a href="[% ctx.base_path %]/staff/cat/catalog/record/{{record.merged_to()}}">
31     [% l('Record merged to #[_1] on [_2]', 
32          '{{record.merged_to()}}',
33          '{{record.merge_date() | date:$root.egDateAndTimeFormat}}') 
34     %]
35   </a>
36 </div>
37 <div class="flex-container-striped flex-container-bordered" ng-show="collapse_summary()" style="line-height: 16px">
38   <div class="flex-row">
39     <div class="flex-cell strong-text">[% l('Title:') %]</div>
40     <div class="flex-cell flex-3">
41       <a target="_self" 
42         href="[% ctx.base_path %]/staff/cat/catalog/record/{{record.id()}}">
43         {{rec_display.title}}
44       </a>
45     </div>
46   </div>
47   <div class="flex-row">
48     <div class="flex-cell strong-text">[% l('Author:') %]</div>
49     <div class="flex-cell flex-3">{{rec_display.author}}</div>
50   </div>
51   <div class="flex-row">
52     <div class="flex-cell strong-text">[% l('Pub Date:') %]</div>
53     <div class="flex-cell flex-3">
54       {{rec_display.pubdate}}
55     </div>
56   </div>
57   <div class="flex-row">
58     <div class="flex-cell strong-text">[% l('Database ID:') %]</div>
59     <div class="flex-cell flex-3">{{record.id()}}</div>
60   </div>
61 </div>
62
63 <div class="flex-container-striped flex-container-bordered" ng-hide="collapse_summary()" style="line-height: 16px">
64   <div class="flex-row">
65     <div class="flex-cell strong-text">[% l('Title:') %]</div>
66     <div class="flex-cell flex-3">
67       <a target="_self" 
68         href="[% ctx.base_path %]/staff/cat/catalog/record/{{record.id()}}">
69         {{rec_display.title}}
70       </a>
71     </div>
72   </div><!-- flex-row -->
73
74   <div class="flex-row">
75     <div class="flex-cell strong-text">[% l('Edition:') %]</div>
76     <div class="flex-cell flex-3">{{rec_display.edition}}</div>
77   </div><!-- flex-row -->
78
79   <div class="flex-row">
80     <div class="flex-cell strong-text">[% l('TCN:') %]</div>
81     <div class="flex-cell flex-3">{{record.tcn_value()}}</div>
82   </div><!-- flex-row -->
83
84   <div class="flex-row">
85     <div class="flex-cell strong-text">[% l('Created By:') %]</div>
86     <div class="flex-cell flex-3">{{record.creator().usrname()}}</div>
87   </div><!-- flex-row -->
88
89   <div class="flex-row">
90     <div class="flex-cell strong-text">[% l('Author:') %]</div>
91     <div class="flex-cell flex-3">{{rec_display.author}}</div>
92   </div><!-- flex-row -->
93
94   <div class="flex-row">
95     <div class="flex-cell strong-text">[% l('Pub Date:') %]</div>
96     <div class="flex-cell flex-3">{{rec_display.pubdate}}</div>
97   </div><!-- flex-row -->
98
99   <div class="flex-row">
100     <div class="flex-cell strong-text">[% l('Database ID:') %]</div>
101     <div class="flex-cell flex-3">{{record.id()}}</div>
102   </div><!-- flex-row -->
103
104   <div class="flex-row">
105     <div class="flex-cell strong-text">[% l('Last Edited By:') %]</div>
106     <div class="flex-cell flex-3">{{record.editor().usrname()}}</div>
107   </div><!-- flex-row -->
108
109   <div class="flex-row">
110     <div class="flex-cell strong-text">[% l('Bib Call #:') %]</div>
111     <div class="flex-cell flex-3"><span tooltip-html-unsafe="{{bib_cn_tooltip}}">{{bib_cn}}<span></div>
112   </div><!-- flex-row -->
113
114   <div class="flex-row">
115     <div class="flex-cell strong-text">[% l('Record Owner:') %]</div>
116     <div class="flex-cell flex-3">{{record.owner().shortname()}}</div>
117   </div><!-- flex-row -->
118
119   <div class="flex-row">
120     <div class="flex-cell strong-text">[% l('Last Edited On:') %]</div>
121     <div class="flex-cell flex-3">{{record.edit_date() | date:$root.egDateAndTimeFormat}}</div>
122   </div><!-- flex-row -->
123 </div>
124