From cb58b0e2bc827f5f1a73faecf90db87100dc99b2 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Mon, 29 Sep 2008 21:44:59 +0200 Subject: [PATCH] Fixing Labtheses.pl --- cataloguing/value_builder/labs_theses.pl | 25 +++++++------------ .../value_builder/labs_theses.tmpl | 16 ++++++------ 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/cataloguing/value_builder/labs_theses.pl b/cataloguing/value_builder/labs_theses.pl index 382c763266..8a88468043 100755 --- a/cataloguing/value_builder/labs_theses.pl +++ b/cataloguing/value_builder/labs_theses.pl @@ -39,19 +39,12 @@ my $function_name= "328".(int(rand(100000))+1); my $res=" @@ -94,9 +87,9 @@ sub plugin { my $total; while (my $data = $sth->fetchrow_hashref){ my $libjs=$data->{'lib'}; - $libjs=~s#\'#\\\'#g; +# $libjs=~s#\'#\\\'#g; my $authjs=$data->{'authorised_value'}; - $authjs=~s#\'#\\\'#g; +# $authjs=~s#\'#\\\'#g; push @results, {'libjs'=>$libjs, 'lib'=>$data->{'lib'}, 'authjs'=>$authjs, @@ -106,7 +99,7 @@ sub plugin { } ($template, $loggedinuser, $cookie) - = get_template_and_user({template_name => "value_builder/labs_theses.tmpl", + = get_template_and_user({template_name => "cataloguing/value_builder/labs_theses.tmpl", query => $query, type => 'intranet', authnotrequired => 1, @@ -163,7 +156,7 @@ sub plugin { } else { ($template, $loggedinuser, $cookie) - = get_template_and_user({template_name => "value_builder/labs_theses.tmpl", + = get_template_and_user({template_name => "cataloguing/value_builder/labs_theses.tmpl", query => $query, type => "intranet", authnotrequired => 1, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/labs_theses.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/labs_theses.tmpl index 5312bffa58..c9da9cf2e6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/labs_theses.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/labs_theses.tmpl @@ -81,8 +81,8 @@ a.catalogue:hover { - ','',,0)" class="button">Select - ','',,1)" class="button">Sel&close + ','','',0)" class="button">Select + ','','',1)" class="button">Sel&close @@ -111,11 +111,13 @@ a.catalogue:hover {