From 005404926f07a4fb8494f072fc8e6d814876d687 Mon Sep 17 00:00:00 2001 From: Joe Atzberger Date: Thu, 10 Jan 2008 15:22:41 -0600 Subject: [PATCH] Labels.pm - BEGIN block VERSION and vars related to export. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Labels.pm | 58 +++++++++++++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 30 deletions(-) diff --git a/C4/Labels.pm b/C4/Labels.pm index c7f8cb33d7..f78310dd67 100644 --- a/C4/Labels.pm +++ b/C4/Labels.pm @@ -18,8 +18,6 @@ package C4::Labels; # Suite 330, Boston, MA 02111-1307 USA use strict; -require Exporter; - use vars qw($VERSION @ISA @EXPORT); use PDF::Reuse; @@ -28,7 +26,34 @@ use Algorithm::CheckDigits; # use Data::Dumper; # use Smart::Comments; -$VERSION = 0.02; +BEGIN { + $VERSION = 0.03; + require Exporter; + @ISA = qw(Exporter); + @EXPORT = qw( + &get_label_options &get_label_items + &build_circ_barcode &draw_boundaries + &drawbox &GetActiveLabelTemplate + &GetAllLabelTemplates &DeleteTemplate + &GetSingleLabelTemplate &SaveTemplate + &CreateTemplate &SetActiveTemplate + &SaveConf &DrawSpineText &GetTextWrapCols + &GetUnitsValue &DrawBarcode + &get_printingtypes + &get_layouts + &get_barcode_types + &get_batches &delete_batch + &add_batch &SetFontSize &printText + &GetItemFields + &get_text_fields + get_layout &save_layout &add_layout + &set_active_layout &by_order + &build_text_dropbox + &delete_layout &get_active_layout + &get_highest_batch + &deduplicate_batch + ); +} =head1 NAME @@ -38,33 +63,6 @@ C4::Labels - Functions for printing spine labels and barcodes in Koha =over 2 -=cut - -@ISA = qw(Exporter); -@EXPORT = qw( - &get_label_options &get_label_items - &build_circ_barcode &draw_boundaries - &drawbox &GetActiveLabelTemplate - &GetAllLabelTemplates &DeleteTemplate - &GetSingleLabelTemplate &SaveTemplate - &CreateTemplate &SetActiveTemplate - &SaveConf &DrawSpineText &GetTextWrapCols - &GetUnitsValue &DrawBarcode - &get_printingtypes - &get_layouts - &get_barcode_types - &get_batches &delete_batch - &add_batch &SetFontSize &printText - &GetItemFields - &get_text_fields - get_layout &save_layout &add_layout - &set_active_layout &by_order - &build_text_dropbox - &delete_layout &get_active_layout - &get_highest_batch - &deduplicate_batch -); - =item get_label_options; $options = get_label_options() -- 2.20.1