Bug 9803 - question mark in cataloging not clearly a link
[koha.git] / C4 / Patroncards / Template.pm
blob5cfd7ca98162a8cb9b24433a71098f1816ca753b
1 package C4::Patroncards::Template;
3 use strict;
4 use warnings;
6 use base qw(C4::Creators::Template);
8 use autouse 'Data::Dumper' => qw(Dumper);
10 BEGIN {
11 use version; our $VERSION = qv('3.07.00.049');
14 use constant TEMPLATE_TABLE => 'creator_templates';
16 __PACKAGE__ =~ m/^C4::(.+)::.+$/;
17 my $me = $1;
19 sub new {
20 my $self = shift;
21 push @_, "creator", $me;
22 return $self->SUPER::new(@_);
25 sub retrieve {
26 my $self = shift;
27 push @_, "table_name", TEMPLATE_TABLE, "creator", $me;
28 return $self->SUPER::retrieve(@_);
31 sub delete {
32 my $self = shift;
33 push @_, "table_name", TEMPLATE_TABLE, "creator", $me;
34 return $self->SUPER::delete(@_);
37 sub save {
38 my $self = shift;
39 push @_, "table_name", TEMPLATE_TABLE, "creator", $me;
40 return $self->SUPER::save(@_);