Lines 1-4
Link Here
|
1 |
[% USE raw %] |
1 |
[% USE raw %] |
|
|
2 |
[% USE KohaDates %] |
2 |
[% USE Asset %] |
3 |
[% USE Asset %] |
3 |
[% USE Koha %] |
4 |
[% USE Koha %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
Lines 19-31
Link Here
|
19 |
var Sticky; |
20 |
var Sticky; |
20 |
$(document).ready(function() { |
21 |
$(document).ready(function() { |
21 |
|
22 |
|
22 |
$(".input_marceditor").click(function(this){ |
23 |
$(".input_marceditor").click(function(){ |
23 |
historyToggle($(this).attr('id') + '_history'); |
24 |
var tag = $(this).attr('id'); |
|
|
25 |
historyToggle(tag + '_history'); |
24 |
return false; |
26 |
return false; |
25 |
}); |
27 |
}); |
26 |
|
28 |
|
27 |
$(".tag_editor").click(function(this){ |
29 |
$(".tag_editor").click(function(){ |
28 |
openAuth(this.parentNode.parentNode.getElementsByTagName('input')[1].id, $(this).attr('id'), 'biblio'); |
30 |
var tag = $(this).attr('id'); |
|
|
31 |
openAuth(this.parentNode.parentNode.getElementsByTagName('input')[1].id, tag, 'biblio'); |
32 |
return false; |
33 |
}); |
34 |
|
35 |
$(".buttonHistory").click(function(){ |
36 |
var tag = $(this).attr('id'); |
37 |
HistoryToggle(tag + '_history'); |
38 |
return false; |
39 |
}); |
40 |
|
41 |
$(".hist_rollback").click(function(){ |
42 |
var tag = $(this).attr('data-tag'); |
43 |
var value = $(this).attr('data-history'); |
44 |
HistoryRollback(tag, value); |
29 |
return false; |
45 |
return false; |
30 |
}); |
46 |
}); |
31 |
|
47 |
|
Lines 735-741
function Changefwk() {
Link Here
|
735 |
|
751 |
|
736 |
[% IF ( subfield_loo.history ) %] |
752 |
[% IF ( subfield_loo.history ) %] |
737 |
<span class="subfield_history"> |
753 |
<span class="subfield_history"> |
738 |
<a href="#" class="buttonHistory" onclick="HistoryToggle('[% mv.id %]_history'); return false;"> |
754 |
<a href="#" class="buttonHistory" id="[%- mv.id -%]"> |
739 |
<img src="[% interface %]/[% theme %]/img/icon-history.png" alt="History" title="Display history for this field" /> |
755 |
<img src="[% interface %]/[% theme %]/img/icon-history.png" alt="History" title="Display history for this field" /> |
740 |
</a> |
756 |
</a> |
741 |
</span> |
757 |
</span> |
Lines 743-751
function Changefwk() {
Link Here
|
743 |
<table class="history_table" id="[%- mv.id -%]_history" name="[%- mv.name -%]_history"> |
759 |
<table class="history_table" id="[%- mv.id -%]_history" name="[%- mv.name -%]_history"> |
744 |
<tr><th>Value</th><th>Date</th><th>User</th></tr> |
760 |
<tr><th>Value</th><th>Date</th><th>User</th></tr> |
745 |
[% FOREACH hist IN subfield_loo.history %] |
761 |
[% FOREACH hist IN subfield_loo.history %] |
746 |
<tr><td><a href="#" onclick="HistoryRollback('[% mv.id %]', '[% hist.data %]'); return false;">[% hist.data %]</a></td> |
762 |
<tr> |
747 |
<td>[% hist.datetime %]</td> |
763 |
<td><a href="#" data-tag='[%- mv.id -%]' data-history='[% hist.data %]' class='hist_rollback'>[% hist.data | html %]</a></td> |
748 |
<td>[% hist.title %] [% hist.firstname %] [% hist.surname %]</td></tr> |
764 |
<td>[% hist.datetime | $KohaDates with_hours = 1 %]</td> |
|
|
765 |
<td>[% hist.title | html %] [% hist.firstname | html %] [% hist.surname | html %]</td> |
766 |
</tr> |
749 |
[% END %] |
767 |
[% END %] |
750 |
</table> |
768 |
</table> |
751 |
[% END %] |
769 |
[% END %] |
752 |
- |
|
|