Bug 7720: add options for controlling display of an item's home and/or holdings location
[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 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/en/css/datatables.css" />
5 [% INCLUDE 'datatables.inc' %]
6 <script type="text/javascript">
7 //<![CDATA[
8     $(document).ready(function() {
9         $(".delete").click(function (event) {
10             $(this).parent().parent().parent().addClass("selected");
11             var answer = confirm(_("Are you sure you want to remove the tag from this title?"));
12                 if (!answer){
13                     $("tr").removeClass("selected");
14                     event.preventDefault();
15                 }
16         });
17         $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
18             "aoColumnDefs": [
19                 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
20             ],
21             "aaSorting": [[ 0, "asc" ]],
22             "sPaginationType": "four_button"
23         }));
24     });
25 //]]>
26 </script>
27 <style type="text/css">
28 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent; }</style>
29 </head>
30 <body id="tags_list" class="tools">
31 [% INCLUDE 'header.inc' %]
32 [% INCLUDE 'cat-search.inc' %]
33
34 <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>
35
36 <div id="doc3" class="yui-t2">
37  <div id="bd">
38   <div id="yui-main">
39   <div class="yui-b">
40 [% IF ( titles ) %]
41 <h3>Titles tagged with the term <i>[% tag %]</i></h3>
42 <table id="itemst">
43         <thead><tr>
44             <th>Title</th>
45             <th>Location</th>
46             <th>&nbsp;</th>
47         </tr></thead>
48
49         [% FOREACH title IN titles %]
50             [% IF ( title.even ) %]
51                 <tr class="highlight">
52             [% ELSE %]
53                 <tr>
54             [% END %]
55             <td>[% INCLUDE 'biblio-default-view.inc' biblionumber = title.biblionumber %][% title.title |html %][% FOREACH subtitl IN title.subtitle %] [% subtitl.subfield %][% END %]</a>
56             [% title.author %]
57             <p>[% IF ( title.publishercode ) %]- [% title.publishercode|html %]
58             [% IF ( title.place ) %] [% title.place %][% END %][% END %]
59             [% IF ( title.pages ) %] - [% title.pages %][% IF ( title.size ) %] [% title.size %]
60             [% END %]
61             [% END %]</p>
62             [% IF ( title.notes ) %]
63             <p>[% title.notes |html%]</p>[% END %]
64             [% IF ( title.TagLoop ) %]<p style="font-size:90%"><strong>Tagged with:</strong> [% FOREACH TagLoo IN title.TagLoop %]
65             <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 %]
66             [% END %]</p>
67             [% END %]
68             </td>
69             <td>[% IF ( title.items ) %]<ul style="font-size:80%">[% FOREACH item IN title.items %]
70                 <li>
71                     [% item.branchname %] [% item.location_description %]
72                     [% IF ( item.itemcallnumber ) %]
73                         ([% item.itemcallnumber %])
74                     [% END %]
75                 </li>
76                 [% END %]</ul>[% ELSE %]This record has no items.[% END %]
77              </td>
78              <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>
79             </tr>
80         [% END %]
81     </table>
82 [% ELSE %]
83         <div class="dialog message">There are no titles tagged with the term <i>[% tag %]</i></div>
84 [% END %]
85 </form>
86  </div>
87  </div>
88  <div class="yui-b">
89   <ul>
90     <li><a href="/cgi-bin/koha/tags/review.pl?approved=1">Approved tags</a>
91     </li>
92     <li><a href="/cgi-bin/koha/tags/review.pl?approved=-1">Rejected tags</a>
93     </li>
94     <li><a href="/cgi-bin/koha/tags/review.pl?approved=0">Pending tags</a>
95     </li>
96     <li><a href="/cgi-bin/koha/tags/review.pl?approved=all">All tags</a>
97     </li>
98   </ul>
99  </div>
100 </div>
101 [% INCLUDE 'intranet-bottom.inc' %]