Lines 1-6
Link Here
|
1 |
[% USE raw %] |
1 |
[% USE raw %] |
2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
3 |
[% USE Koha %] |
3 |
[% USE Koha %] |
|
|
4 |
[% USE KohaDates %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
<title>Koha › Cataloging › [% IF ( biblionumber ) %]Editing [% title | html %] (Record number [% biblionumber | html %])[% ELSE %]Add MARC record[% END %]</title> |
6 |
<title>Koha › Cataloging › [% IF ( biblionumber ) %]Editing [% title | html %] (Record number [% biblionumber | html %])[% ELSE %]Add MARC record[% END %]</title> |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
Lines 18-30
Link Here
|
18 |
var Sticky; |
19 |
var Sticky; |
19 |
$(document).ready(function() { |
20 |
$(document).ready(function() { |
20 |
|
21 |
|
21 |
$(".input_marceditor").click(function(this){ |
22 |
$(".input_marceditor").click(function(){ |
22 |
historyToggle($(this).attr('id') + '_history'); |
23 |
var tag = $(this).attr('id'); |
|
|
24 |
historyToggle(tag + '_history'); |
23 |
return false; |
25 |
return false; |
24 |
}); |
26 |
}); |
25 |
|
27 |
|
26 |
$(".tag_editor").click(function(this){ |
28 |
$(".tag_editor").click(function(){ |
27 |
openAuth(this.parentNode.parentNode.getElementsByTagName('input')[1].id, $(this).attr('id'), 'biblio'); |
29 |
var tag = $(this).attr('id'); |
|
|
30 |
openAuth(this.parentNode.parentNode.getElementsByTagName('input')[1].id, tag, 'biblio'); |
31 |
return false; |
32 |
}); |
33 |
|
34 |
$(".buttonHistory").click(function(){ |
35 |
var tag = $(this).attr('id'); |
36 |
HistoryToggle(tag + '_history'); |
37 |
return false; |
38 |
}); |
39 |
|
40 |
$(".hist_rollback").click(function(){ |
41 |
var tag = $(this).attr('data-tag'); |
42 |
var value = $(this).attr('data-history'); |
43 |
HistoryRollback(tag, value); |
28 |
return false; |
44 |
return false; |
29 |
}); |
45 |
}); |
30 |
|
46 |
|
Lines 887-893
Link Here
|
887 |
|
903 |
|
888 |
[% IF ( subfield_loo.history ) %] |
904 |
[% IF ( subfield_loo.history ) %] |
889 |
<span class="subfield_history"> |
905 |
<span class="subfield_history"> |
890 |
<a href="#" class="buttonHistory" onclick="HistoryToggle('[% mv.id %]_history'); return false;"> |
906 |
<a href="#" class="buttonHistory" id="[%- mv.id -%]"> |
891 |
<img src="[% interface %]/[% theme %]/img/icon-history.png" alt="History" title="Display history for this field" /> |
907 |
<img src="[% interface %]/[% theme %]/img/icon-history.png" alt="History" title="Display history for this field" /> |
892 |
</a> |
908 |
</a> |
893 |
</span> |
909 |
</span> |
Lines 896-907
Link Here
|
896 |
<tr> |
912 |
<tr> |
897 |
<th>Value</th> |
913 |
<th>Value</th> |
898 |
<th>Date</th> |
914 |
<th>Date</th> |
|
|
915 |
<th>User</th> |
899 |
</tr> |
916 |
</tr> |
900 |
[% FOREACH hist IN subfield_loo.history %] |
917 |
[% FOREACH hist IN subfield_loo.history %] |
901 |
<tr> |
918 |
<tr> |
902 |
<td><a href="#" onclick="HistoryRollback('[% mv.id %]', '[% hist.data %]'); return false;">[% hist.data %]</a></td> |
919 |
<td><a href="#" data-tag='[%- mv.id -%]' data-history='[% hist.data %]' class='hist_rollback'>[% hist.data %]</a></td> |
903 |
<td>[% hist.datetime %]</td> |
920 |
<td>[% hist.datetime | $KohaDates with_hours = 1 %]</td> |
904 |
<td>[% hist.title %] [% hist.firstname %] [% hist.surname %]</td> |
921 |
<td>[% hist.title | html %] [% hist.firstname | html %] [% hist.surname | html %]</td> |
905 |
</tr> |
922 |
</tr> |
906 |
[% END %] |
923 |
[% END %] |
907 |
</table> |
924 |
</table> |
908 |
- |
|
|