From 015e5da39f934d78b72d69d44f6a524ec3e3f19d Mon Sep 17 00:00:00 2001 From: Joe Atzberger Date: Mon, 21 Apr 2008 16:22:27 -0500 Subject: [PATCH] Tagging - add basic template slot in search for tags and script responsiveness to tagging sysprefs Signed-off-by: Joshua Ferraro --- .../opac-tmpl/prog/en/modules/opac-results.tmpl | 13 +++++++++++++ opac/opac-search.pl | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl index 98b5e82685..6b99247f80 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl @@ -241,6 +241,19 @@ $(document).ready(function(){ " name="biblionumber" value="" title="Click to add to cart" />

+ +
+ + Tags: +
  • + +
+ + + Add new tag +
+ + diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 3c6275a91c..40dcb4724b 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -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 -- 2.39.5