4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Tags</title>
6 [% INCLUDE 'doc-head-close.inc' %]
8 <style type="text/css">
9 fieldset { padding : .3em;margin:.3em 0;}
10 #tagcloud {background-color: #F3F3F3; text-align: justify;padding:7px;}
11 .tag a {text-decoration: none;}
12 .tag a:hover {text-decoration: underline;}
13 .tag {display: block; padding-left: 1em;}
14 .tagcount {display: none;}
15 .cloudweight {display: none;}
26 [% IF ( loggedinusername ) %][% INCLUDE 'bodytag.inc' bodyid='opac-usertags' bodyclass='scrollto' %][% ELSE %][% INCLUDE 'bodytag.inc' bodyid='opac-tags' bodyclass='scrollto' %][% END %]
27 [% INCLUDE 'masthead.inc' %]
30 <ul class="breadcrumb">
31 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
32 <li><a href="#">Tags</a></li>
35 <div class="container-fluid">
36 <div class="row-fluid">
37 [% IF ( OpacNav||loggedinusername ) %]
40 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
48 <div id="usertags" class="maincontent">
50 [% FOREACH ERROR IN ERRORS %]
52 There was a problem with this operation:
53 [% IF ( ERROR.tagsdisabled ) %]
54 Sorry, tags are not enabled on this system.
55 [% ELSIF ( ERROR.badparam ) %]
56 ERROR: illegal parameter [% ERROR.badparam %]
57 [% ELSIF ( ERROR.login ) %]
58 ERROR: You must log in to complete that action.
59 [% ELSIF ( ERROR.failed_delete ) %]
60 ERROR: You cannot delete the tag [% ERROR.failed_delete %].
61 <br />Note: you can only delete your own tags.
62 [% ELSIF ( ERROR.scrubbed ) %]
63 Note: your tag contained markup code that was removed.
64 <br />The tag was added as "[% ERROR.scrubbed %]".
65 [% ELSIF ( ERROR.scrubbed_all_bad ) %]
66 Note: your tag was entirely markup code. It was NOT added.
67 <br />Please try again with plain text.
68 [% ELSE %]Unrecognized error.
72 [% END # /IF ERRORS %]
75 <form method="get" action="opac-tags.pl" class="form-inline">
78 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
79 Tags to show from other users
84 <div class="input-append">
85 <input type="text" name="limit" style="text-align: right;" maxlength="4" size="4" value="[% limit or "100" %]" />
86 <input type="submit" value="OK" class="btn" />
88 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
89 [% UNLESS ( loggedinusername ) %]
90 <p><a class="loginModal-trigger" href="/cgi-bin/koha/opac-user.pl">Log in to see your own saved tags.</a></p>
98 [% FOREACH TAGLOO IN TAGLOOP %]
99 <span class="tag tagweight[% TAGLOO.stratum %]" id="tag[% loop.count %]" style="display:inline;">
100 <a href="/cgi-bin/koha/opac-search.pl?tag=[% TAGLOO.term |url %]&q=[% TAGLOO.term |url %]">[% TAGLOO.term |html %]</a>
101 <span class="tagweight">[% TAGLOO.weight_total %]</span>
107 [% IF ( added_count ) %]
108 <div class="dialog message">[% added_count %] [% IF ( added_count ==1 ) %] tag[% ELSE %]tags[% END %] successfully added.</div>
110 [% IF ( deleted_count ) %]
111 <div class="dialog message">[% deleted_count %][% IF ( deleted_count ==1 ) %] tag[% ELSE %]tags[% END %] successfully deleted.</div>
116 <form method="post" action="opac-tags.pl">
118 <table id="mytagst" class="table table-bordered table-striped">
119 <thead><tr><th>Term</th><th>Title</th><th>Date added</th><th>Delete</th></tr></thead>
121 [% FOREACH MY_TAG IN MY_TAGS %]
124 <span class="tdlabel">Tag:</span>
125 [% IF MY_TAG.approved == 1 %]
126 <a href="/cgi-bin/koha/opac-search.pl?tag=[% MY_TAG.term |url %]&q=[% MY_TAG.term |url %]">[% MY_TAG.term |html %]</a>
128 [% MY_TAG.term |html %] (not approved)
133 [% IF ( MY_TAG.XSLTBloc ) %]
134 [% MY_TAG.XSLTBloc %]
136 <span class="tdlabel">Title:</span>
137 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% MY_TAG.biblionumber %]">
138 [% MY_TAG.title |html %]
139 [% IF ( MY_TAG.subtitle ) %]
140 [% FOREACH subtitle IN MY_TAG.subtitle %]
141 [% subtitle.subfield |html %]
145 [% IF ( MY_TAG.author ) %]
146 by [% MY_TAG.author %]
148 [% END # /IF MY_TAG.XSLTBloc %]
151 <span title="[% MY_TAG.date_created %]">
152 <span class="tdlabel">Date added:</span>
153 [% MY_TAG.date_created | $KohaDates %]
156 <td><input type="submit" name="del[% MY_TAG.tag_id %]" value="Delete" class="btn btn-danger btn-mini" /></td>
163 </div> <!-- / .usertags -->
164 </div> <!-- / .span10/12 -->
165 </div> <!-- / .row-fluid -->
166 </div> <!-- / .container-fluid -->
167 </div> <!-- / .main -->
169 [% INCLUDE 'opac-bottom.inc' %]
170 [% BLOCK jsinclude %]
171 [% INCLUDE 'datatables.inc' %]
172 <script type="text/javascript">
174 $(document).ready(function(){
175 $("#mytagst").dataTable($.extend(true, {}, dataTablesDefaults, {
176 "aaSorting": [[ 2, "asc" ]],
178 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }
182 { "sType": "anti-the" },
183 { "sType": "title-string" },