1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog › Tags
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <style type="text/css">
6 fieldset { padding : .3em;margin:.3em 0;}
7 #tagcloud {background-color: #F3F3F3; text-align: justify;padding:7px;}
8 .tag a {text-decoration: none;}
9 .tag a:hover {text-decoration: underline;}
10 .tag {display: block; padding-left: 1em;}
11 .tagcount {display: none;}
12 .cloudweight {display: none;}
21 <script type="text/javascript">
23 var fontsizes = new Array (12,14,16,18,20,22,24,26,28,30);
24 var fontcount = fontsizes.length;
25 var maxcloudweight = 1;
26 $(document).ready(function() {
27 // $('#tagcloud').css('background-color','lightgrey');
28 // $('#tagcloud .tag').css('border','1px solid black');
29 $('#tagcloud .tag').each(function() {
30 if (maxcloudweight < this.title) { maxcloudweight = this.title; }
31 // have to run through the set of tags once to get the max: cannot be combined w/ 2nd pass
33 $('#tagcloud .tag').each(function(i) {
35 var weight = this.title; // "cloudweight"
36 weight = (! weight) ? 1 : (weight > maxcloudweight) ? maxcloudweight : weight ;
37 var index = Math.round(fontcount * weight/maxcloudweight) - 1;
38 index = (! index ) ? 0 : ( index > fontcount ) ? fontcount : index ;
39 var newsize = fontsizes[index];
40 // alert(pos+ " (" +i+ ") weight = " +weight+ " of " +maxcloudweight+ ", fontsize[" +index+ " of " +fontcount+ "] = " +newsize);
41 $('#' + pos).css({"font-size":(newsize + 'px'), display:"inline"});
43 $("#mytagst").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
44 dateFormat: 'uk',<!-- /TMPL_IF -->
46 headers: { 3: { sorter: false }},
53 <!-- TMPL_IF NAME="loggedinusername" --><body id="opac-usertags"><!-- TMPL_ELSE --><body id="opac-tags"><!-- /TMPL_IF -->
54 <!-- TMPL_IF EXPR="OpacNav||loggedinusername" --><div id="doc3" class="yui-t1"><!-- TMPL_ELSE --><div id="doc3" class="yui-t7"><!-- /TMPL_IF -->
56 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
59 <div class="yui-b"><div class="yui-g">
60 <div class="container">
61 <!-- TMPL_IF NAME="ERRORS" -->
62 <!-- TMPL_LOOP NAME="ERRORS" -->
63 <div class="dialog alert">There was a problem with this operation:
64 <!-- TMPL_IF NAME="tagsdisabled" -->Sorry, tags are not enabled on this system.
65 <!-- TMPL_ELSIF NAME="badparam" -->ERROR: illegal parameter <!-- TMPL_VAR NAME="badparam" -->
66 <!-- TMPL_ELSIF NAME="login" -->ERROR: You must log in to complete that action.
67 <!-- TMPL_ELSIF NAME="failed_delete" -->ERROR: You cannot delete the tag <!-- TMPL_VAR NAME="failed_delete" -->.
68 <br />Note: you can only delete your own tags.
69 <!-- TMPL_ELSIF NAME="scrubbed" -->Note: your tag contained markup code that was removed.
70 <br />The tag was added as "<!-- TMPL_VAR NAME="scrubbed" -->".
71 <!-- TMPL_ELSIF NAME="scrubbed_all_bad" -->Note: your tag was entirely markup code. It was NOT added.
72 <br />Please try again with plain text.
73 <!-- TMPL_ELSE -->Unrecognized error.
80 <form method="get" action="opac-tags.pl">
81 <fieldset>Show up to <input name="limit" style="text-align: right;" maxlength="4" size="4" value="<!-- TMPL_VAR NAME="limit" DEFAULT="100" -->" />
82 tags from other users.
83 <!-- TMPL_IF NAME="hidemytags" -->
84 <input type="hidden" name="hidemytags" value="1" />
86 <input type="submit" value="OK" />
87 <!-- TMPL_UNLESS NAME="loggedinusername" -->
88 <a href="/cgi-bin/koha/opac-user.pl">Log in</a> to see your own saved tags.
90 <!-- TMPL_IF NAME="hidemytags" -->
91 <a class="hidemytags" href="/cgi-bin/koha/opac-tags.pl?limit=<!-- TMPL_VAR NAME="limit" DEFAULT="100" -->">Show my tags</a>
93 <a class="hidemytags" href="/cgi-bin/koha/opac-tags.pl?limit=<!-- TMPL_VAR NAME="limit" DEFAULT="100" -->&hidemytags=1">Hide my tags</a>
99 <!-- TMPL_IF NAME="TAGLOOP" -->
101 <!-- TMPL_LOOP NAME="TAGLOOP" -->
102 <span class="tag" id="tag<!-- TMPL_VAR NAME="__counter__" -->" title="<!-- TMPL_VAR NAME="cloudweight" -->">
103 <a href="/cgi-bin/koha/opac-search.pl?tag=<!-- TMPL_VAR NAME="term" ESCAPE="URL" -->&q=<!-- TMPL_VAR NAME="term" ESCAPE="URL" -->">
104 <!-- TMPL_VAR NAME="term" ESCAPE="HTML" --></a>
105 <span class="tagweight"><!-- TMPL_VAR NAME="weight_total" --></span>
110 <!-- TMPL_IF NAME="add_op" -->
111 <!-- TMPL_IF NAME="added_count" -->
112 <div class="dialog message"><!-- TMPL_VAR NAME="added_count" --> <!-- TMPL_IF EXPR="added_count ==1" --> tag<!-- TMPL_ELSE -->tags<!-- /TMPL_IF --> successfully added.</div>
114 <!-- TMPL_IF NAME="deleted_count" -->
115 <div class="dialog message"><!-- TMPL_VAR NAME="deleted_count" --><!-- TMPL_IF EXPR="deleted_count ==1" --> tag<!-- TMPL_ELSE -->tags<!-- /TMPL_IF --> successfully deleted.</div>
119 <!-- TMPL_UNLESS NAME="hidemytags" -->
120 <!-- TMPL_IF NAME="MY_TAGS" -->
121 <form method="post" action="opac-tags.pl">
124 <thead><tr><th>Term</th><th>Title</th><th>Date Added</th><th>Delete</th>
127 <!-- TMPL_LOOP NAME="MY_TAGS" -->
128 <tr><td><a href="/cgi-bin/koha/opac-search.pl?tag=<!-- TMPL_VAR NAME="term" ESCAPE="URL" -->&q=<!-- TMPL_VAR NAME="term" ESCAPE="URL" -->">
129 <!-- TMPL_VAR NAME="term" ESCAPE="HTML" --></a>
131 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
132 <!-- TMPL_VAR NAME="bib_summary" ESCAPE="HTML" --></a></td>
133 <td><!-- TMPL_VAR NAME="date_created_display" --></td>
134 <td><input type="submit" name="del<!-- TMPL_VAR NAME="tag_id" -->" value="Delete" /></td>
141 <!-- /TMPL_UNLESS -->
147 <!-- TMPL_IF EXPR="OpacNav||loggedinusername" -->
148 <div class="yui-b"><div class="container">
149 <!--TMPL_INCLUDE NAME="navigation.inc" -->
150 <!--TMPL_INCLUDE NAME="usermenu.inc" -->
154 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->