File tree 2 files changed +22
-11
lines changed
2 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export default Ember.Controller.extend(powerSelectOverlayedOptions, {
19
19
NoteValidations,
20
20
21
21
session : inject ( ) ,
22
+
22
23
userId : computed . reads ( 'session.data.authenticated.userid' ) ,
23
24
24
25
powerSelectOverlayedOptions : [ {
@@ -51,11 +52,15 @@ export default Ember.Controller.extend(powerSelectOverlayedOptions, {
51
52
52
53
lastOrderViewed : null ,
53
54
55
+ librisUrl : computed ( 'order.librisRequestId' , function ( ) {
56
+ return ENV . APP . librisFjarrlanURL + this . get ( 'order.librisRequestId' ) ;
57
+ } ) ,
58
+
54
59
printOrderUrl : computed ( 'order.id' , function ( ) {
55
60
return ENV . APP . serviceURL +
56
- " /orders/" +
57
- this . get ( " order.id" ) +
58
- " .pdf?token=" +
61
+ ' /orders/' +
62
+ this . get ( ' order.id' ) +
63
+ ' .pdf?token=' +
59
64
this . get ( 'session.data.authenticated.token' ) ;
60
65
} ) ,
61
66
Original file line number Diff line number Diff line change 234
234
{{ /if }}
235
235
</td >
236
236
</tr >
237
- <tr titel =" Libris LF Number " >
238
- <th >Libris LF Number </th >
237
+ <tr titel =" Libris LF number " >
238
+ <th >Libris LF number </th >
239
239
<td >
240
240
{{ #if isEditing }}
241
241
{{ form.element
247
247
{{ /if }}
248
248
</td >
249
249
</tr >
250
- <tr titel =" Libris Request Id " >
251
- <th >Libris Request Id </th >
250
+ <tr titel =" Libris request id " >
251
+ <th >Libris request id </th >
252
252
<td >
253
253
{{ #if isEditing }}
254
254
{{ form.element
255
255
controlType =" text"
256
256
property =" librisRequestId"
257
257
}}
258
- {{ else }}
259
- {{ changeset.librisRequestId }}
258
+ {{ else if changeset.librisRequestId}}
259
+ <a
260
+ target =" _blank"
261
+ href =" {{ librisUrl }} "
262
+ >
263
+ {{ changeset.librisRequestId }}
264
+ <i class =" fas fa-external-link-alt" ></i >
265
+ </a >
260
266
{{ /if }}
261
267
</td >
262
268
</tr >
263
- <tr titel =" Libris Id " >
264
- <th >Libris Id </th >
269
+ <tr titel =" Libris id " >
270
+ <th >Libris id </th >
265
271
<td >
266
272
{{ #if isEditing }}
267
273
{{ form.element
You can’t perform that action at this time.
0 commit comments