3 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% IF ( do_it ) %]Review[% ELSE %]Review tags[% END %] › Tags › Tools › Koha</title>
7 [% INCLUDE 'doc-head-close.inc' %]
9 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent; }</style>
12 <body id="tags_list" class="tools">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'cat-search.inc' %]
16 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
19 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
22 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
25 <a href="/cgi-bin/koha/tags/review.pl">Tags</a>
28 <a href="#" aria-current="page">
29 Results for tag <em>[% tag | html %]</em>
35 <div class="main container-fluid">
37 <div class="col-sm-10 col-sm-push-2">
41 <h3>Titles tagged with the term <em>[% tag | html %]</em></h3>
49 [% FOREACH title IN titles %]
51 <td>[% INCLUDE 'biblio-title.inc' biblio=title link = 1 %]
52 [% title.author | html %]
53 <p>[% IF ( title.publishercode ) %]- [% title.publishercode | html %]
54 [% IF ( title.place ) %] [% title.place | html %][% END %][% END %]
55 [% IF ( title.pages ) %] - [% title.pages | html %][% IF ( title.size ) %] [% title.size | html %]
58 [% IF ( title.notes ) %]
59 <p>[% title.notes | html %]</p>[% END %]
60 [% IF ( title.TagLoop ) %]<p style="font-size:90%"><strong>Tagged with:</strong> [% FOREACH TagLoo IN title.TagLoop %]
61 <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 %]
65 <td>[% IF ( title.items ) %]<ul style="font-size:80%">[% FOREACH item IN title.items %]
67 [% item.branchname | html %]
68 <span class="shelvingloc">
69 [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) | html %]
71 [% IF ( item.itemcallnumber ) %]
72 ([% item.itemcallnumber | html %])
75 [% END %]</ul>[% ELSE %]This record has no items.[% END %]
77 <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>
82 <div class="dialog message">There are no titles tagged with the term <em>[% tag | html %]</em></div>
87 </div> <!-- /.col-sm-10.col-sm-push-2 -->
89 <div class="col-sm-2 col-sm-pull-10">
92 <li><a href="/cgi-bin/koha/tags/review.pl?approved=1">Approved tags</a></li>
93 <li><a href="/cgi-bin/koha/tags/review.pl?approved=-1">Rejected tags</a></li>
94 <li><a href="/cgi-bin/koha/tags/review.pl?approved=0">Pending tags</a></li>
95 <li><a href="/cgi-bin/koha/tags/review.pl?approved=all">All tags</a></li>
97 [% INCLUDE 'tools-menu.inc' %]
99 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
100 </div> <!-- /.row -->
102 [% MACRO jsinclude BLOCK %]
103 [% INCLUDE 'datatables.inc' %]
105 $(document).ready(function() {
106 $(".delete").click(function (event) {
107 $(this).parent().parent().parent().addClass("selected");
108 var answer = confirm(_("Are you sure you want to remove the tag from this title?"));
110 $("tr").removeClass("selected");
111 event.preventDefault();
114 $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
116 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
118 "aaSorting": [[ 0, "asc" ]],
119 "sPaginationType": "full"
125 [% INCLUDE 'intranet-bottom.inc' %]