1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryNameTitle" DEFAULT="Koha Online" --> Catalog › Tags
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 <style type="text/css">
4 #tagcloud {background-color: #F3F3F3; text-align: justify;}
5 .tag a {text-decoration: none;}
6 .tag a:hover {text-decoration: underline;}
7 .tag {display: block; padding-left: 1em;}
8 .tagcount {display: none;}
9 .cloudweight {display: none;}
18 <script type="text/javascript">
19 var fontsizes = new Array (12,14,16,18,20,22,24,26,28,30);
20 var fontcount = fontsizes.length;
21 var maxcloudweight = 1;
22 $(document).ready(function() {
23 // $('#tagcloud').css('background-color','lightgrey');
24 // $('#tagcloud .tag').css('border','1px solid black');
25 $('#tagcloud .tag').each(function() {
26 if (maxcloudweight < this.title) { maxcloudweight = this.title; }
27 // have to run through the set of tags once to get the max: cannot be combined w/ 2nd pass
29 $('#tagcloud .tag').each(function(i) {
31 var weight = this.title; // "cloudweight"
32 weight = (! weight) ? 1 : (weight > maxcloudweight) ? maxcloudweight : weight ;
33 var index = Math.round(fontcount * weight/maxcloudweight) - 1;
34 index = (! index ) ? 0 : ( index > fontcount ) ? fontcount : index ;
35 var newsize = fontsizes[index];
36 // alert(pos+ " (" +i+ ") weight = " +weight+ " of " +maxcloudweight+ ", fontsize[" +index+ " of " +fontcount+ "] = " +newsize);
37 $('#' + pos).css({"font-size":(newsize + 'pt'), display:"inline"});
43 <div id="doc3" class="yui-t1">
45 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
48 <div class="yui-b"><div class="yui-g">
49 <div class="container">
50 <!-- TMPL_IF NAME="ERRORS" -->
51 <!-- TMPL_LOOP NAME="ERRORS" -->
52 <div class="error">There was a problem with this operation:
53 <!-- TMPL_IF NAME="tagsdisabled" -->Sorry, tags are not enabled on this system.
54 <!-- TMPL_ELSIF NAME="badparam" -->ERROR: illegal parameter <!-- TMPL_VAR NAME="badparam" -->
55 <!-- TMPL_ELSIF NAME="login" -->ERROR: You must log in to complete that action.
56 <!-- TMPL_ELSIF NAME="failed_delete" -->ERROR: You cannot delete the tag <!-- TMPL_VAR NAME="failed_delete" -->.
57 <br />Note: you can only delete your own tags.
58 <!-- TMPL_ELSIF NAME="scrubbed" -->Note: your tag contained markup code that was removed.
59 <br />The tag was added as "<!-- TMPL_VAR NAME="scrubbed" -->".
60 <!-- TMPL_ELSIF NAME="scrubbed_all_bad" -->Note: your tag was entirely markup code. It was NOT added.
61 <br />Please try again with plain text.
62 <!-- TMPL_ELSE -->Unrecognized error.
68 <!-- TMPL_IF NAME="add_op" -->
69 <!-- TMPL_IF NAME="added_count" -->
70 <h3><!-- TMPL_VAR NAME="added_count" --> tag(s) successfully added.</h3>
72 <!-- TMPL_IF NAME="deleted_count" -->
73 <h3><!-- TMPL_VAR NAME="deleted_count" --> tag(s) successfully deleted.</h3>
77 <!-- TMPL_UNLESS NAME="hidemytags" -->
78 <!-- TMPL_IF NAME="MY_TAGS" -->
79 <form method="post" action="opac-tags.pl">
82 <tr><th>Term</th><th>Title</th><th>Date/Time Added</th><th>Delete</th>
84 <!-- TMPL_LOOP NAME="MY_TAGS" -->
85 <tr><td><a href="/cgi-bin/koha/opac-search.pl?tag=<!-- TMPL_VAR NAME="term" ESCAPE="URL" -->&q=<!-- TMPL_VAR NAME="term" ESCAPE="URL" -->">
86 <!-- TMPL_VAR NAME="term" ESCAPE="HTML" --></a>
88 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
89 <!-- TMPL_VAR NAME="bib_summary" ESCAPE="HTML" --></a></td>
90 <td><!-- TMPL_VAR NAME="date_created_display" -->
91 <span class="time" style="background-color:lightgray;"><!-- TMPL_VAR NAME="time_created_display" --></span></td>
92 <td><input type="submit" name="del<!-- TMPL_VAR NAME="tag_id" -->" value="Delete" /></td>
98 <div class="msg">To see any of your own saved tags, first log in.</div>
100 <!-- /TMPL_UNLESS -->
104 <form method="get" action="opac-tags.pl">
105 <p>Show up to <input name="limit" style="text-align: right;" maxlength="4" size="4" value="<!-- TMPL_VAR NAME="limit" DEFAULT="100" -->" />
106 tags from other users.
107 <input type="hidden" name="hidemytags" value="1" />
108 <input type="submit" value="OK" />
112 <!-- TMPL_IF NAME="TAGLOOP" --> <!-- TMPL_VAR NAME="TAGLOOP_COUNT" --> Results:<div id="tagcloud">
113 <!-- TMPL_LOOP NAME="TAGLOOP" -->
114 <span class="tag" id="tag<!-- TMPL_VAR NAME="__counter__" -->" title="<!-- TMPL_VAR NAME="cloudweight" -->">
115 <a href="/cgi-bin/koha/opac-search.pl?tag=<!-- TMPL_VAR NAME="term" ESCAPE="URL" -->&q=<!-- TMPL_VAR NAME="term" ESCAPE="URL" -->">
116 <!-- TMPL_VAR NAME="term" ESCAPE="HTML" --></a>
117 <span class="tagweight"><!-- TMPL_VAR NAME="weight_total" --></span>
127 <div class="container">
128 <!--TMPL_INCLUDE NAME="navigation.inc" -->
129 <!-- TMPL_INCLUDE name="usermenu.inc" -->
133 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->