Bug 38714: cataloguing/additem.tt

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-12-16 16:44:07 +01:00 committed by Katrin Fischer
parent ba114bd557
commit d935430e1e
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 6 additions and 8 deletions

View File

@ -115,19 +115,17 @@
<tbody>
[% FOREACH item IN items %]
[% SET can_be_edited = ! ( Koha.Preference('IndependentBranches') && ! logged_in_user.is_superlibrarian && item.homebranch != Branches.GetLoggedInBranchname() ) %]
[% SET tr_class = '' %]
[% IF item.itemnumber == itemnumber%]
[% UNLESS can_be_edited %]
<tr id="row[% item.itemnumber | html %]" class="active">
[% SET tr_class='active' %]
[% ELSE %]
<tr id="row[% item.itemnumber | html %]" class="active editable">
[% END %]
[% ELSE %]
[% UNLESS can_be_edited %]
<tr id="row[% item.itemnumber | html %]">
[% ELSE %]
<tr id="row[% item.itemnumber | html %]" class="editable">
[% SET tr_class='active editable' %]
[% END %]
[% ELSIF can_be_edited %]
[% SET tr_class='editable' %]
[% END %]
<tr id="row[% item.itemnumber | html %]" class="[% tr_class | html %]">
[% UNLESS can_be_edited %]
<td>&nbsp;</td>
[% ELSE %]