bug 4174 add AWSPrivateKey sys pref to new interface
[srvgit] / koha-tmpl / intranet-tmpl / prog / en / modules / tags / tags.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; 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;}
13     .tagweight {
14         display: none;
15         position: relative;
16         bottom: 0.4em;
17         color: red;
18         font-size: 12px;
19     }
20 </style>
21 <script type="text/javascript">
22 //<![CDATA[
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
32         });
33         $('#tagcloud .tag').each(function(i) {
34             var pos = this.id;
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"});
42         });
43         $("#mytagst").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
44     dateFormat: 'uk',<!-- /TMPL_IF -->
45             widgets : ['zebra'],
46             headers: { 3: { sorter: false }},
47             sortList: [[2,0]]
48         });
49     });
50 //]]>
51 </script>
52 </head>
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 -->
55 <div id="bd">
56 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
57
58 <div id="yui-main">
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 &quot;<!-- TMPL_VAR NAME="scrubbed" -->&quot;.
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.
74             <!-- /TMPL_IF -->
75             </div>
76         <!-- /TMPL_LOOP -->
77     <!-- /TMPL_IF -->
78     <h1>All Tags</h1>
79     
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" />
85                 <!-- /TMPL_IF -->
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.
89                 <!-- TMPL_ELSE -->
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>
92                     <!-- TMPL_ELSE -->
93                         <a class="hidemytags" href="/cgi-bin/koha/opac-tags.pl?limit=<!-- TMPL_VAR NAME="limit" DEFAULT="100" -->&amp;hidemytags=1">Hide my tags</a>
94                     <!-- /TMPL_IF -->
95                 <!-- /TMPL_UNLESS -->
96             </fieldset>
97         </form>
98     
99     <!-- TMPL_IF NAME="TAGLOOP" -->
100         <div id="tagcloud">
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" -->&amp;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>
106             </span>
107         <!-- /TMPL_LOOP -->
108         </div>
109     <!-- /TMPL_IF -->
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>
113         <!-- /TMPL_IF -->
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>
116         <!-- /TMPL_IF -->
117     <!-- /TMPL_IF -->
118
119     <!-- TMPL_UNLESS NAME="hidemytags" -->
120         <!-- TMPL_IF NAME="MY_TAGS" -->
121             <form method="post" action="opac-tags.pl">
122             <h2>My Tags</h2>
123             <table id="mytagst">
124             <thead><tr><th>Term</th><th>Title</th><th>Date Added</th><th>Delete</th>
125             </tr></thead>
126             <tbody>
127                 <!-- TMPL_LOOP NAME="MY_TAGS" -->
128                     <tr><td><a href="/cgi-bin/koha/opac-search.pl?tag=<!-- TMPL_VAR NAME="term" ESCAPE="URL" -->&amp;q=<!-- TMPL_VAR NAME="term" ESCAPE="URL" -->">
129                         <!-- TMPL_VAR NAME="term" ESCAPE="HTML" --></a>
130                     </td>
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>
135                     </tr>
136                 <!-- /TMPL_LOOP -->
137             </tbody>
138             </table>
139             </form>
140         <!-- /TMPL_IF -->
141     <!-- /TMPL_UNLESS -->
142
143 </div>
144 </div>
145 </div>
146 </div>
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" -->
151     </div></div>
152 <!-- /TMPL_IF -->
153 </div>
154 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->
155