|
Lines 185-191
Link Here
|
| 185 |
<td>[% record.hashvalue | html %]</td> |
185 |
<td>[% record.hashvalue | html %]</td> |
| 186 |
<td>[% record.uploadcategorycode | html %]</td> |
186 |
<td>[% record.uploadcategorycode | html %]</td> |
| 187 |
[% IF !plugin %] |
187 |
[% IF !plugin %] |
| 188 |
<td>[% IF record.public %]Yes[% ELSE %]No[% END %]</td> |
188 |
<td> |
|
|
189 |
[% IF record.public %] |
| 190 |
<a href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-retrieve-file.pl?id=[% record.hashvalue | uri %]" class="get-file" data-toggle="tooltip" title="Copy link to this file"><i class="fa fa-link" aria-hidden="true"></i> Yes</a> |
| 191 |
[% ELSE %] |
| 192 |
No |
| 193 |
[% END %] |
| 194 |
</td> |
| 189 |
<td>[% IF record.permanent %]No[% ELSE %]Yes[% END %]</td> |
195 |
<td>[% IF record.permanent %]No[% ELSE %]Yes[% END %]</td> |
| 190 |
[% END %] |
196 |
[% END %] |
| 191 |
<td class="actions"> |
197 |
<td class="actions"> |
|
Lines 436-441
Link Here
|
| 436 |
e.preventDefault(); |
442 |
e.preventDefault(); |
| 437 |
SubmitMe('new'); |
443 |
SubmitMe('new'); |
| 438 |
}); |
444 |
}); |
|
|
445 |
|
| 446 |
$(".get-file").on("click", function(e){ |
| 447 |
e.preventDefault(); |
| 448 |
if( navigator.clipboard ){ |
| 449 |
navigator.clipboard.writeText( $(this).attr("href") ); |
| 450 |
} |
| 451 |
$(this).attr("data-original-title", _( "Link copied to the clipboard" ) ) |
| 452 |
.tooltip("show"); |
| 453 |
}); |
| 454 |
$(".get-file").tooltip({ |
| 455 |
delay: { "show": 100, "hide": 500 } |
| 456 |
}).on("hidden.bs.tooltip", function(){ |
| 457 |
$(this).attr("data-original-title", _( "Copy link to this file" ) ); |
| 458 |
}); |
| 439 |
}); |
459 |
}); |
| 440 |
</script> |
460 |
</script> |
| 441 |
[% END %] |
461 |
[% END %] |
| 442 |
- |
|
|