X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=cataloguing%2Fvalue_builder%2Fmarc21_leader_video.pl;h=3e72ad9d3071fd4b314b1ded8bb340616ae932c7;hb=6d8f4f88686932d1972a1cf11c02d05485eabdab;hp=6be559f2457f455cacab21c0e1cebc9d88aac0eb;hpb=2e4a11773c0a4aa172b5debdee4db831a13adf26;p=koha.git diff --git a/cataloguing/value_builder/marc21_leader_video.pl b/cataloguing/value_builder/marc21_leader_video.pl index 6be559f245..3e72ad9d30 100755 --- a/cataloguing/value_builder/marc21_leader_video.pl +++ b/cataloguing/value_builder/marc21_leader_video.pl @@ -1,6 +1,5 @@ #!/usr/bin/perl -# $Id$ # Copyright 2000-2002 Katipo Communications # @@ -15,11 +14,12 @@ # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, -# Suite 330, Boston, MA 02111-1307 USA +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. use strict; +#use warnings; FIXME - Bug 2505 use C4::Auth; use CGI; use C4::Context; @@ -32,6 +32,7 @@ use C4::Output; plugin_parameters : other parameters added when the plugin is called by the dopop function =cut + sub plugin_parameters { my ($dbh,$record,$tagslib,$i,$tabloop) = @_; return ""; @@ -41,7 +42,9 @@ sub plugin_javascript { my ($dbh,$record,$tagslib,$field_number,$tabloop) = @_; my $function_name= $field_number; my $res=" - "; @@ -69,17 +73,16 @@ my ($input) = @_; my $dbh = C4::Context->dbh; my ($template, $loggedinuser, $cookie) - = get_template_and_user({template_name => "value_builder/marc21_leader.tmpl", + = get_template_and_user({template_name => "cataloguing/value_builder/marc21_leader.tmpl", query => $input, type => "intranet", authnotrequired => 0, - flagsrequired => {editcatalogue => 1}, + flagsrequired => {editcatalogue => '*'}, debug => 1, }); $result = " ngm 7a " unless $result; my $f5 = substr($result,5,1); my $f6 = substr($result,6,1); - warn "F6".$f6; my $f7 = substr($result,7,1); my $f8 = substr($result,8,1); my $f9 = substr($result,9,1);