Merge remote-tracking branch 'origin/new/bug_2780'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tags / list.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Tools &rsaquo; Tags &rsaquo; [% IF ( do_it ) %]Review &rsaquo; [% ELSE %]Review tags[% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/javascript">
6 //<![CDATA[
7     $.tablesorter.addParser({
8         id: 'articles',
9         is: function(s) {return false;  },
10         format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
11         type: 'text'
12     });
13     $(document).ready(function() {
14         $(".delete").click(function (event) {
15             $(this).parent().parent().parent().addClass("selected");
16             var answer = confirm(_("Are you sure you want to remove the tag from this title?"));
17                 if (!answer){
18                     $("tr").removeClass("selected");
19                     event.preventDefault();
20                 }
21         });
22         $("#itemst").tablesorter({
23             sortList: [[0,0]],
24             headers: { 0: { sorter: 'articles' },1: { sorter: false },2:{sorter:false}}
25         });
26     });
27 //]]>
28 </script>
29 <style type="text/css">
30 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent; }</style>
31 </head>
32 <body id="tags_list" class="tools">
33 [% INCLUDE 'header.inc' %]
34 [% INCLUDE 'cat-search.inc' %]
35
36 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/tags/review.pl">Tags</a> &rsaquo; Results for tag <i>[% tag %]</i></div>
37
38 <div id="doc3" class="yui-t2">
39  <div id="bd">
40   <div id="yui-main">
41   <div class="yui-b">
42 [% IF ( titles ) %]
43 <h3>Titles tagged with the term <i>[% tag %]</i></h3>
44 <table id="itemst">
45         <thead><tr>
46             <th>Title</th>
47             <th>Location</th>
48             <th>&nbsp;</th>
49         </tr></thead>
50
51         [% FOREACH title IN titles %]
52             [% IF ( title.even ) %]
53                 <tr class="highlight">
54             [% ELSE %]
55                 <tr>
56             [% END %]
57             <td>[% INCLUDE 'biblio-default-view.inc' biblionumber = title.biblionumber %][% title.title |html %][% FOREACH subtitl IN title.subtitle %] [% subtitl.subfield %][% END %]</a>
58             [% title.author %]
59             <p>[% IF ( title.publishercode ) %]- [% title.publishercode|html %]
60             [% IF ( title.place ) %] [% title.place %][% END %][% END %]
61             [% IF ( title.pages ) %] - [% title.pages %][% IF ( title.size ) %] [% title.size %]
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 %]">[% TagLoo.term |html %]</a> <span class="weight">([% TagLoo.weight_total %])</span>[% IF ( loop.last ) %][% ELSE %], [% END %]
68             [% END %]</p>
69             [% END %]
70             </td>
71             <td>[% IF ( title.items ) %]<ul style="font-size:80%">[% FOREACH item IN title.items %]
72                 <li>
73                     [% item.branchname %] [% item.location_description %]
74                     [% IF ( item.itemcallnumber ) %]
75                         ([% item.itemcallnumber %])
76                     [% END %]
77                 </li>
78                 [% END %]</ul>[% ELSE %]This record has no items.[% END %]
79              </td>
80              <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 %]" /><input type="hidden" name="tag_id" value="[% title.tag_id %]" /><input type="submit" class="delete" value="Remove tag" /></form></td>
81             </tr>
82         [% END %]
83     </table>
84 [% ELSE %]
85         <div class="dialog message">There are no titles tagged with the term <i>[% tag %]</i></div>
86 [% END %]
87 </form>
88  </div>
89  </div>
90  <div class="yui-b">
91   <ul>
92     <li><a href="/cgi-bin/koha/tags/review.pl?approved=1">Approved tags</a>
93     </li>
94     <li><a href="/cgi-bin/koha/tags/review.pl?approved=-1">Rejected tags</a>
95     </li>
96     <li><a href="/cgi-bin/koha/tags/review.pl?approved=0">Pending tags</a>
97     </li>
98     <li><a href="/cgi-bin/koha/tags/review.pl?approved=all">All tags</a>
99     </li>
100   </ul>
101  </div>
102 </div>
103 [% INCLUDE 'intranet-bottom.inc' %]