4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Tags</title>
6 [% INCLUDE 'doc-head-close.inc' %]
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 ) %]
91 [% IF Koha.Preference('casAuthentication') %]
92 [%# CAS authentication is too complicated for modal window %]
93 <a href="/cgi-bin/koha/opac-user.pl">Log in to see your own saved tags.</a>
95 <a class="loginModal-trigger" href="/cgi-bin/koha/opac-user.pl">Log in to see your own saved tags.</a>
105 [% FOREACH TAGLOO IN TAGLOOP %]
106 <span class="tag tagweight[% TAGLOO.stratum %]" id="tag[% loop.count %]" style="display:inline;">
107 <a href="/cgi-bin/koha/opac-search.pl?tag=[% TAGLOO.term |url %]&q=[% TAGLOO.term |url %]">[% TAGLOO.term |html %]</a>
108 <span class="tagweight">[% TAGLOO.weight_total %]</span>
114 [% IF ( added_count ) %]
115 <div class="dialog message">[% added_count %] [% IF ( added_count == 1 ) %]tag[% ELSE %]tags[% END %] successfully added.</div>
117 [% IF ( deleted_count ) %]
118 <div class="dialog message">[% deleted_count %] [% IF ( deleted_count == 1 ) %]tag[% ELSE %]tags[% END %] successfully deleted.</div>
123 <form id="deletetags" method="post" action="opac-tags.pl">
125 <table id="mytagst" class="table table-bordered table-striped">
126 <thead><tr><th> </th><th>Term</th><th>Title</th><th>Date added</th></tr></thead>
128 [% FOREACH MY_TAG IN MY_TAGS %]
131 <input type="checkbox" name="del[% MY_TAG.tag_id %]" value="del[% MY_TAG.tag_id %]">
134 <span class="tdlabel">Tag:</span>
135 [% IF MY_TAG.approved == 1 %]
136 <a href="/cgi-bin/koha/opac-search.pl?tag=[% MY_TAG.term |url %]&q=[% MY_TAG.term |url %]">[% MY_TAG.term |html %]</a>
138 [% MY_TAG.term |html %] (not approved)
142 [% IF ( MY_TAG.XSLTBloc ) %]
143 [% MY_TAG.XSLTBloc %]
145 <span class="tdlabel">Title:</span>
146 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% MY_TAG.biblionumber %]">
147 [% MY_TAG.title |html %]
148 [% IF ( MY_TAG.subtitle ) %]
149 [% FOREACH subtitle IN MY_TAG.subtitle %]
150 [% subtitle.subfield |html %]
154 [% IF ( MY_TAG.author ) %]
155 by [% MY_TAG.author %]
157 [% END # /IF MY_TAG.XSLTBloc %]
160 <span title="[% MY_TAG.date_created %]">
161 <span class="tdlabel">Date added:</span>
162 [% MY_TAG.date_created | $KohaDates %]
169 <input type="submit" value="Delete selected tags" class="btn btn-danger btn-sm delete">
172 </div> <!-- / .usertags -->
173 </div> <!-- / .span10/12 -->
174 </div> <!-- / .row-fluid -->
175 </div> <!-- / .container-fluid -->
176 </div> <!-- / .main -->
178 [% INCLUDE 'opac-bottom.inc' %]
179 [% BLOCK jsinclude %]
180 [% INCLUDE 'datatables.inc' %]
181 <script type="text/javascript">
183 function checkboxesChecked() {
184 if ($("#deletetags input:checkbox:checked").length > 0) {
191 $(document).ready(function(){
192 var MSG_DELETE_TAG = _("Are you sure you want to delete the selected tag(s)?");
193 $(".delete").on("click", function(e){
194 if ( checkboxesChecked() == 1 ) {
195 return confirmDelete(MSG_DELETE_TAG);
197 alert(_("Please select a tag to delete."));
202 $("#mytagst").dataTable($.extend(true, {}, dataTablesDefaults, {
203 "aaSorting": [[ 2, "asc" ]],
205 { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }
209 { "sType": "anti-the" },
210 { "sType": "title-string" },