Bug 7016 Followup: Add new GetItemnumberForBiblio subroutine
[koha.git] / C4 / Labels / Profile.pm
blob77926837eaafb8717f33bf1b0f87adca7450f67c
1 package C4::Labels::Profile;
3 use strict;
4 use warnings;
6 use base qw(C4::Creators::Profile);
8 use autouse 'Data::Dumper' => qw(Dumper);
10 BEGIN {
11 use version; our $VERSION = qv('1.0.0_1');
14 __PACKAGE__ =~ m/^C4::(.+)::.+$/;
15 my $me = $1;
17 sub new {
18 my $self = shift;
19 push @_, "creator", $me;
20 return $self->SUPER::new(@_);
23 sub save {
24 my $self = shift;
25 push @_, "creator", $me;
26 return $self->SUPER::save(@_);
29 sub retrieve {
30 my $self = shift;
31 push @_, "creator", $me;
32 return $self->SUPER::retrieve(@_);
35 sub delete {
36 if (ref($_[0])) {
37 my $self = shift; # check to see if this is a method call
38 push @_, "creator", $me;
39 return $self->SUPER::delete(@_);
41 else {
42 push @_, "creator", $me;
43 return __PACKAGE__->SUPER::delete(@_); # XXX: is this too hackish?