Tagging - add basic template slot in search for tags and script responsiveness to...
authorJoe Atzberger <joe.atzberger@liblime.com>
Mon, 21 Apr 2008 21:22:27 +0000 (16:22 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 22 Apr 2008 23:02:27 +0000 (18:02 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl
opac/opac-search.pl

index 98b5e82..6b99247 100644 (file)
@@ -241,6 +241,19 @@ $(document).ready(function(){
                                <!--TMPL_IF EXPR="opacbookbag || virtualshelves" --><input type="checkbox" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to cart" /> <label for="bib<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_IF --><!--TMPL_IF EXPR="opacbookbag || virtualshelves" --></label><!-- /TMPL_IF --> </p> 
                                </td>
                 <!-- /TMPL_IF -->
+                               <!-- TMPL_IF NAME="TaggingOnList" -->
+                               <td><div class="tagcell">
+                                       <!-- TMPL_IF NAME="TagLoop" -->
+                                               <span class="tagtitle">Tags:</span>
+                                               <ul><!-- TMPL_LOOP NAME="TagLoop" --><li><!-- TMPL_VAR NAME="tag" --></li>
+                                                       <!-- /TMPL_LOOP -->
+                                               </ul>
+                                       <!-- TMPL_ELSE -->
+                                       <!-- /TMPL_IF -->
+                                               <a href="#">Add new tag</a>
+                                       </div>
+                               </td>
+                               <!-- /TMPL_IF -->
                 </tr>
                 <!-- /TMPL_LOOP -->
             </table>
index 3c6275a..40dcb47 100755 (executable)
@@ -50,6 +50,10 @@ if (C4::Context->preference("marcflavour") eq "UNIMARC" ) {
     $template->param('UNIMARC' => 1);
 }
 
+foreach (qw(TaggingOnList TaggingOnDetail)) {
+       C4::Context->preference($_) and $template->param($_ => 1);
+}
+
 ## URI Re-Writing
 # Deprecated, but preserved because it's interesting :-)
 # The same thing can be accomplished with mod_rewrite in