|
Lines 119-135
Link Here
|
| 119 |
<tbody> |
119 |
<tbody> |
| 120 |
[% FOREACH item IN items %] |
120 |
[% FOREACH item IN items %] |
| 121 |
[% SET can_be_edited = ! ( Koha.Preference('IndependentBranches') && ! logged_in_user.is_superlibrarian && item.homebranch != Branches.GetLoggedInBranchname() ) %] |
121 |
[% SET can_be_edited = ! ( Koha.Preference('IndependentBranches') && ! logged_in_user.is_superlibrarian && item.homebranch != Branches.GetLoggedInBranchname() ) %] |
| 122 |
[% SET tr_class = '' %] |
122 |
[% SET tr_class = [] %] |
| 123 |
[% IF item.itemnumber == itemnumber AND op == 'cud-saveitem' %] |
123 |
[% SET tr_title = "" %] |
| 124 |
[% UNLESS can_be_edited %] |
124 |
[% IF item.itemnumber == itemnumber %] |
| 125 |
[% SET tr_class='active' %] |
125 |
[% IF op == 'cud-saveitem' %] |
|
|
126 |
[% tr_class.push('active') %] |
| 127 |
[% tr_title = t("Currently editing") %] |
| 126 |
[% ELSE %] |
128 |
[% ELSE %] |
| 127 |
[% SET tr_class='active editable' %] |
129 |
[% tr_class.push('previous') %] |
|
|
130 |
[% tr_title = t("Previously edited") %] |
| 128 |
[% END %] |
131 |
[% END %] |
| 129 |
[% ELSIF can_be_edited %] |
|
|
| 130 |
[% SET tr_class='editable' %] |
| 131 |
[% END %] |
132 |
[% END %] |
| 132 |
<tr id="row[% item.itemnumber | html %]" class="[% tr_class | html %]"> |
133 |
[% IF can_be_edited %] |
|
|
134 |
[% tr_class.push = 'editable' %] |
| 135 |
[% END %] |
| 136 |
<tr id="row[% item.itemnumber | html %]" class="[% tr_class.join(' ') | html %]" title="[% tr_title | html %]"> |
| 133 |
[% UNLESS can_be_edited %] |
137 |
[% UNLESS can_be_edited %] |
| 134 |
<td> </td> |
138 |
<td> </td> |
| 135 |
[% ELSE %] |
139 |
[% ELSE %] |
| 136 |
- |
|
|