Correcting "Your Lists" to display properly when no lists exist.
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-tags.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Tags
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 </head>
4 <body>
5 <div id="doc3" class="yui-t1">
6 <div id="bd">
7 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
8
9 <div id="yui-main">
10   <div class="yui-b"><div class="yui-g">
11         <div class="container">
12         <!-- TMPL_IF NAME="ERRORS" -->
13         <!-- TMPL_LOOP NAME="ERRORS" -->
14                 <div class="error">There was a problem with this operation:
15                 <!-- TMPL_IF NAME="tagsdisabled" -->Sorry, tags are not enabled on this system.
16                 <!-- TMPL_ELSIF NAME="badparam" -->ERROR: illegal parameter <!-- TMPL_VAR NAME="badparam" -->
17                 <!-- TMPL_ELSIF NAME="login"    -->ERROR: You must log in to complete that action.
18                 <!-- TMPL_ELSIF NAME="failed_delete" -->ERROR: You cannot delete the tag <!-- TMPL_VAR NAME="failed_delete" -->.
19                                         <br />Note: you can only delete your own tags.
20                 <!-- TMPL_ELSIF NAME="scrubbed" -->Note: your tag contained markup code that was removed. 
21                                         <br />The tag was added as &quot;<!-- TMPL_VAR NAME="scrubbed" -->&quot;.
22                 <!-- TMPL_ELSIF NAME="scrubbed_all_bad" -->Note: your tag was entirely markup code.  It was NOT added.
23                                         <br />Please try again with plain text.
24                 <!-- TMPL_ELSE -->Unrecognized error.
25                 <!-- /TMPL_IF -->
26                 </div>
27         <!-- /TMPL_LOOP -->
28         <!-- /TMPL_IF -->
29
30         <!-- TMPL_IF NAME="add_op" -->
31           <!-- TMPL_IF NAME="added_count" -->
32                 <h3><!-- TMPL_VAR NAME="added_count" --> tag(s) successfully added.</h3>
33           <!-- /TMPL_IF -->
34           <!-- TMPL_IF NAME="deleted_count" -->
35                 <h3><!-- TMPL_VAR NAME="deleted_count" --> tag(s) successfully deleted.</h3>
36           <!-- /TMPL_IF -->
37         <!-- /TMPL_IF -->
38
39         <!-- TMPL_UNLESS NAME="hidemytags" -->
40         <!-- TMPL_IF NAME="MY_TAGS" -->
41                 <form method="post" action="opac-tags.pl">
42                 <h2>My Tags</h2>
43                 <table>
44                 <tr><th>Term</th><th>Title</th><th>Date/Time Added</th><th>Delete</th>
45                 </tr>
46         <!-- TMPL_LOOP NAME="MY_TAGS" -->
47                 <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" -->">
48                                 <!-- TMPL_VAR NAME="term" ESCAPE="HTML" --></a>
49                         </td>
50                         <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
51                                 <!-- TMPL_VAR NAME="bib_summary" ESCAPE="HTML" --></a></td>
52                         <td><!-- TMPL_VAR NAME="date_created_display" -->
53                                 <span class="time" style="background-color:lightgray;"><!-- TMPL_VAR NAME="time_created_display" --></span></td>
54                         <td><input type="submit" name="del<!-- TMPL_VAR NAME="tag_id" -->" value="Delete" /></td>
55                 </tr>
56         <!-- /TMPL_LOOP -->
57                 </table>
58                 </form>
59         <!-- TMPL_ELSE -->
60                 <div class="msg">To see any of your own saved tags, first log in.</div>
61         <!-- /TMPL_IF -->
62         <!-- /TMPL_UNLESS -->
63
64         <h1>All Tags</h1>
65         <div id="action">
66                 <form method="get" action="opac-tags.pl">
67                 <p>Show up to <input name="limit" style="text-align: right;" maxlength="4" size="4" value="<!-- TMPL_VAR NAME="limit" DEFAULT="100" -->" />
68                         tags from other users.
69                         <input type="hidden" name="hidemytags" value="1" />
70                         <input type="submit" value="OK" />
71                 </p>
72                 </form>
73         </div>
74         <!-- TMPL_IF NAME="TAGLOOP" --> <!-- TMPL_VAR NAME="TAGLOOP_COUNT" --> Results:<ul>
75         <!-- TMPL_LOOP NAME="TAGLOOP" -->
76         <li><a href="/cgi-bin/koha/opac-search.pl?tag=<!-- TMPL_VAR NAME="term" ESCAPE="URL" -->&amp;q=<!-- TMPL_VAR NAME="term" ESCAPE="URL" -->">
77                 <!-- TMPL_VAR NAME="term" ESCAPE="HTML" --></a> (<!-- TMPL_VAR NAME="weight_total" -->) <!-- (<!-- TMPL_VAR NAME="cloudweight" -->) --> </li>
78         <!-- /TMPL_LOOP -->
79         </ul>
80         <!-- /TMPL_IF -->
81 </div>
82 </div>
83 </div>
84 </div>
85 <div class="yui-b">
86 <div class="container">
87 <!--TMPL_INCLUDE NAME="navigation.inc" -->
88 <!-- TMPL_INCLUDE name="usermenu.inc" -->
89 </div>
90 </div>
91 </div>
92 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->