View | Details | Raw Unified | Return to bug 31767
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/list.tt (-37 / +39 lines)
Lines 45-89 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
45
45
46
[% IF ( titles ) %]
46
[% IF ( titles ) %]
47
<h3>Titles tagged with the term <em>[% tag | html %]</em></h3>
47
<h3>Titles tagged with the term <em>[% tag | html %]</em></h3>
48
<table id="itemst">
48
    <div class="page-section">
49
	<thead><tr>
49
        <table id="itemst">
50
	    <th>Title</th>
50
            <thead><tr>
51
	    <th>Location</th>
51
                <th>Title</th>
52
	    <th>&nbsp;</th>
52
                <th>Location</th>
53
        </tr></thead>
53
                <th>&nbsp;</th>
54
                </tr></thead>
54
55
55
        [% FOREACH title IN titles %]
56
                [% FOREACH title IN titles %]
56
            <tr>
57
                    <tr>
57
            <td>[% INCLUDE 'biblio-title.inc' biblio=title link = 1 %]
58
                    <td>[% INCLUDE 'biblio-title.inc' biblio=title link = 1 %]
58
            [% title.author | html %]
59
                    [% title.author | html %]
59
            <p>[% IF ( title.publishercode ) %]- [% title.publishercode | html %]
60
                    <p>[% IF ( title.publishercode ) %]- [% title.publishercode | html %]
60
            [% IF ( title.place ) %] [% title.place | html %][% END %][% END %]
61
                    [% IF ( title.place ) %] [% title.place | html %][% END %][% END %]
61
            [% IF ( title.pages ) %] - [% title.pages | html %][% IF ( title.size ) %] [% title.size | html %]
62
                    [% IF ( title.pages ) %] - [% title.pages | html %][% IF ( title.size ) %] [% title.size | html %]
62
            [% END %]
63
            [% END %]</p>
64
            [% IF ( title.notes ) %]
65
            <p>[% title.notes | html %]</p>[% END %]
66
            [% IF ( title.TagLoop ) %]<p style="font-size:90%"><strong>Tagged with:</strong> [% FOREACH TagLoo IN title.TagLoop %]
67
            <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term | uri %]">[% TagLoo.term | html %]</a> <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
68
            [% END %]</p>
69
            [% END %]
70
            </td>
71
            <td>[% IF ( title.items.count ) %]<ul style="font-size:80%">[% FOREACH item IN title.items %]
72
                <li>
73
                    [% Branches.GetName(item.holdingbranch) | html %]
74
                    <span class="shelvingloc">
75
                        [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]
76
                    </span>
77
                    [% IF ( item.itemcallnumber ) %]
78
                        ([% item.itemcallnumber | html %])
79
                    [% END %]
63
                    [% END %]
80
                </li>
64
                    [% END %]</p>
81
                [% END %]</ul>[% ELSE %]This record has no items.[% END %]
65
                    [% IF ( title.notes ) %]
82
             </td>
66
                    <p>[% title.notes | html %]</p>[% END %]
83
             <td><form method="post" action="/cgi-bin/koha/tags/list.pl"><input type="hidden" name="op" value="del" /><input type="hidden" name="tag" value="[% tag | html %]" /><input type="hidden" name="tag_id" value="[% title.tag_id | html %]" /><button type="submit" class="delete btn btn-default btn-sm"><i class="fa fa-trash"></i> Remove tag</button></form></td>
67
                    [% IF ( title.TagLoop ) %]<p style="font-size:90%"><strong>Tagged with:</strong> [% FOREACH TagLoo IN title.TagLoop %]
84
            </tr>
68
                    <a href="/cgi-bin/koha/tags/list.pl?tag=[% TagLoo.term | uri %]">[% TagLoo.term | html %]</a> <span class="weight">([% TagLoo.weight_total | html %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
85
        [% END %]
69
                    [% END %]</p>
86
    </table>
70
                    [% END %]
71
                    </td>
72
                    <td>[% IF ( title.items.count ) %]<ul style="font-size:80%">[% FOREACH item IN title.items %]
73
                        <li>
74
                            [% Branches.GetName(item.holdingbranch) | html %]
75
                            <span class="shelvingloc">
76
                                [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]
77
                            </span>
78
                            [% IF ( item.itemcallnumber ) %]
79
                                ([% item.itemcallnumber | html %])
80
                            [% END %]
81
                        </li>
82
                        [% END %]</ul>[% ELSE %]This record has no items.[% END %]
83
                    </td>
84
                    <td><form method="post" action="/cgi-bin/koha/tags/list.pl"><input type="hidden" name="op" value="del" /><input type="hidden" name="tag" value="[% tag | html %]" /><input type="hidden" name="tag_id" value="[% title.tag_id | html %]" /><button type="submit" class="delete btn btn-default btn-sm"><i class="fa fa-trash"></i> Remove tag</button></form></td>
85
                    </tr>
86
                [% END %]
87
            </table>
88
    </div> <!-- /.page-section -->
87
[% ELSE %]
89
[% ELSE %]
88
    <div class="dialog message">There are no titles tagged with the term <em>[% tag | html %]</em></div>
90
    <div class="dialog message">There are no titles tagged with the term <em>[% tag | html %]</em></div>
89
[% END %]
91
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt (-72 / +73 lines)
Lines 88-165 tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } Link Here
88
  </div>
88
  </div>
89
  [% END %]
89
  [% END %]
90
  [% IF ( tagloop ) %]
90
  [% IF ( tagloop ) %]
91
  <p class="check"></p>
91
    <div class="page-section">
92
  <table id="tagst">
92
        <p class="check"></p>
93
    <thead>
93
        <table id="tagst">
94
        <tr>
94
            <thead>
95
            <th class="NoSort">&nbsp;</th>
95
                <tr>
96
		<th>Status</th>
96
                    <th class="NoSort">&nbsp;</th>
97
		<th>Term</th>
97
                <th>Status</th>
98
		<th>Weight</th>
98
                <th>Term</th>
99
            <th class="NoSort noExport">Actions</th>
99
                <th>Weight</th>
100
            [% UNLESS ( filter_approved_pending ) %]<th>Reviewer</th>[% END %]
100
                    <th class="NoSort noExport">Actions</th>
101
        <th>Date</th>
101
                    [% UNLESS ( filter_approved_pending ) %]<th>Reviewer</th>[% END %]
102
	</tr>
102
                <th>Date</th>
103
    </thead>
103
            </tr>
104
    <tbody>
104
            </thead>
105
    [% FOREACH tagloo IN tagloop %]
105
            <tbody>
106
        <tr>
106
            [% FOREACH tagloo IN tagloop %]
107
            <td>
107
                <tr>
108
                [% IF ( tagloo.approved == 0 ) %]
108
                    <td>
109
                    <input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="pending" />
109
                        [% IF ( tagloo.approved == 0 ) %]
110
                [% ELSIF ( tagloo.approved == 1 ) %]
110
                            <input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="pending" />
111
                    <input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="approved" />
111
                        [% ELSIF ( tagloo.approved == 1 ) %]
112
                [% ELSE %]
112
                            <input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="approved" />
113
                    <input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="rejected" />
113
                        [% ELSE %]
114
                [% END %]
114
                            <input id="checkbox[% offset + loop.count | html %]" type="checkbox" value="[% tagloo.term | html %]" name="tags" class="rejected" />
115
            </td>
115
                        [% END %]
116
            <td>
116
                    </td>
117
                [% IF ( tagloo.approved == -1 ) %]
117
                    <td>
118
                    <label for="checkbox[% offset + loop.count | html %]">
118
                        [% IF ( tagloo.approved == -1 ) %]
119
                        <span class="rejected status[% offset + loop.count | html %]">Rejected</span>
119
                            <label for="checkbox[% offset + loop.count | html %]">
120
                    </label>
120
                                <span class="rejected status[% offset + loop.count | html %]">Rejected</span>
121
                [% ELSIF ( tagloo.approved == 1 ) %]
121
                            </label>
122
                    <label for="checkbox[% offset + loop.count | html %]">
122
                        [% ELSIF ( tagloo.approved == 1 ) %]
123
                        <span class="approved status[% offset + loop.count | html %]">Approved</span>
123
                            <label for="checkbox[% offset + loop.count | html %]">
124
                    </label>
124
                                <span class="approved status[% offset + loop.count | html %]">Approved</span>
125
                [% ELSE %]
125
                            </label>
126
                    <label for="checkbox[% offset + loop.count | html %]">
126
                        [% ELSE %]
127
                        <span class="pending status[% offset + loop.count | html %]">Pending</span>
127
                            <label for="checkbox[% offset + loop.count | html %]">
128
                    </label>
128
                                <span class="pending status[% offset + loop.count | html %]">Pending</span>
129
                [% END %]
129
                            </label>
130
            </td>
130
                        [% END %]
131
            <td><a href="/cgi-bin/koha/tags/list.pl?tag=[% tagloo.term|uri %]">[% tagloo.term | html %]</a>
131
                    </td>
132
            </td>
132
                    <td><a href="/cgi-bin/koha/tags/list.pl?tag=[% tagloo.term|uri %]">[% tagloo.term | html %]</a>
133
            <td>[% tagloo.weight_total | html %]
133
                    </td>
134
            </td>
134
                    <td>[% tagloo.weight_total | html %]
135
            [% IF ( tagloo.approved ) %]
135
                    </td>
136
            <td class="actions"><span class="ajax_buttons" style="visibility:hidden">
136
                    [% IF ( tagloo.approved ) %]
137
                [% IF ( tagloo.approved == -1 ) %]
137
                    <td class="actions"><span class="ajax_buttons" style="visibility:hidden">
138
                    <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button>
138
                        [% IF ( tagloo.approved == -1 ) %]
139
                    <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Rejected" name="reject"><i class="fa fa-remove"></i> Rejected</button>
139
                            <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button>
140
                [% ELSE %]
140
                            <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Rejected" name="reject"><i class="fa fa-remove"></i> Rejected</button>
141
                    <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs"  disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Approved" name="approve"><i class="fa fa-check"></i> Approved</button>
141
                        [% ELSE %]
142
                    <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Reject" name="reject"><i class="fa fa-remove"></i> Reject</button>
142
                            <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs"  disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Approved" name="approve"><i class="fa fa-check"></i> Approved</button>
143
                [% END %]
143
                            <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Reject" name="reject"><i class="fa fa-remove"></i> Reject</button>
144
                </span>
144
                        [% END %]
145
            </td>
145
                        </span>
146
            <td>[% IF ( tagloo.approved_by_name ) %]<a href="/cgi-bin/koha/tags/review.pl?approved_by=[% tagloo.approved_by | uri %]&amp;approved=all">[% tagloo.approved_by_name | html %]</a>[% ELSE %]&nbsp;[% END %]
146
                    </td>
147
            </td>
147
                    <td>[% IF ( tagloo.approved_by_name ) %]<a href="/cgi-bin/koha/tags/review.pl?approved_by=[% tagloo.approved_by | uri %]&amp;approved=all">[% tagloo.approved_by_name | html %]</a>[% ELSE %]&nbsp;[% END %]
148
            [% ELSE %]
148
                    </td>
149
            <td class="actions"><span class="ajax_buttons" style="visibility:hidden">
149
                    [% ELSE %]
150
                <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs"  type="submit" title="[% tagloo.term | html %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button>
150
                    <td class="actions"><span class="ajax_buttons" style="visibility:hidden">
151
                <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Reject" name="reject"><i class="fa fa-remove"></i> Reject</button>
151
                        <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs"  type="submit" title="[% tagloo.term | html %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button>
152
                </span>
152
                        <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Reject" name="reject"><i class="fa fa-remove"></i> Reject</button>
153
            </td>
153
                        </span>
154
            [% UNLESS ( filter_approved_pending ) %]<td>&nbsp;</td>[% END %]
154
                    </td>
155
                    [% UNLESS ( filter_approved_pending ) %]<td>&nbsp;</td>[% END %]
156
                    [% END %]
157
                    <td data-order="[% tagloo.date_approved | html %]">
158
                        [% tagloo.date_approved | $KohaDates %]
159
                    </td>
160
                </tr>
155
            [% END %]
161
            [% END %]
156
            <td data-order="[% tagloo.date_approved | html %]">
162
            </tbody>
157
                [% tagloo.date_approved | $KohaDates %]
163
        </table>
158
            </td>
164
    </div> <!-- /.page-section -->
159
        </tr>
160
    [% END %]
161
    </tbody>
162
  </table>
163
  [% END %]
165
  [% END %]
164
    [% IF ( tagloop ) %]<fieldset class="action">
166
    [% IF ( tagloop ) %]<fieldset class="action">
165
   <button type="submit" value="Approve" class="btn btn-default" id="approve_button" name="op-approve"><i class="fa fa-check"></i> Approve</button>
167
   <button type="submit" value="Approve" class="btn btn-default" id="approve_button" name="op-approve"><i class="fa fa-check"></i> Approve</button>
166
- 

Return to bug 31767