Lines 210-216
Link Here
|
210 |
<td>[% record.hashvalue | html %]</td> |
210 |
<td>[% record.hashvalue | html %]</td> |
211 |
<td>[% record.uploadcategorycode | html %]</td> |
211 |
<td>[% record.uploadcategorycode | html %]</td> |
212 |
[% IF !plugin %] |
212 |
[% IF !plugin %] |
213 |
<td>[% IF record.public %]Yes[% ELSE %]No[% END %]</td> |
213 |
<td> |
|
|
214 |
[% IF record.public %] |
215 |
<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> |
216 |
[% ELSE %] |
217 |
No |
218 |
[% END %] |
219 |
</td> |
214 |
<td>[% IF record.permanent %]No[% ELSE %]Yes[% END %]</td> |
220 |
<td>[% IF record.permanent %]No[% ELSE %]Yes[% END %]</td> |
215 |
[% END %] |
221 |
[% END %] |
216 |
<td class="actions"> |
222 |
<td class="actions"> |
Lines 462-467
Link Here
|
462 |
e.preventDefault(); |
468 |
e.preventDefault(); |
463 |
SubmitMe('new'); |
469 |
SubmitMe('new'); |
464 |
}); |
470 |
}); |
|
|
471 |
|
472 |
$(".get-file").on("click", function(e){ |
473 |
e.preventDefault(); |
474 |
if( navigator.clipboard ){ |
475 |
navigator.clipboard.writeText( $(this).attr("href") ); |
476 |
} |
477 |
$(this).attr("data-original-title", _( "Link copied to the clipboard" ) ) |
478 |
.tooltip("show"); |
479 |
}); |
480 |
$(".get-file").tooltip({ |
481 |
delay: { "show": 100, "hide": 500 } |
482 |
}).on("hidden.bs.tooltip", function(){ |
483 |
$(this).attr("data-original-title", _( "Copy link to this file" ) ); |
484 |
}); |
465 |
}); |
485 |
}); |
466 |
</script> |
486 |
</script> |
467 |
[% END %] |
487 |
[% END %] |
468 |
- |
|
|