X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=patroncards%2Fedit-layout.pl;h=0c4dfe47bbbb43e6cdb89fb38f3091584cfd35e5;hb=0d4acbba5c5db238eb42ed37dc9ba3dc2f36974b;hp=7b05f6c308271a2d1e767bf53a58f61887bd5aae;hpb=8ad2c7d7acc3cb0033426bd78928214a22ad9dd1;p=koha.git diff --git a/patroncards/edit-layout.pl b/patroncards/edit-layout.pl index 7b05f6c308..0c4dfe47bb 100755 --- a/patroncards/edit-layout.pl +++ b/patroncards/edit-layout.pl @@ -14,9 +14,9 @@ # 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; @@ -28,8 +28,8 @@ use autouse 'Data::Dumper' => qw(Dumper); use C4::Auth qw(get_template_and_user); use C4::Output qw(output_html_with_http_headers); -use C4::Creators::Lib 1.000000 qw(get_barcode_types get_label_types get_font_types get_text_justification_types get_unit_values get_all_image_names); -use C4::Patroncards::Layout 1.000000; +use C4::Creators; +use C4::Patroncards; my $cgi = new CGI; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( @@ -145,6 +145,7 @@ if ($op eq 'edit') { layout_id => $layout->get_attr('layout_id') > -1 ? $layout->get_attr('layout_id') : '', layout_name => $layout->get_attr('layout_name'), page_side => ($layout_xml->{'page_side'} eq 'F' ? 0 : 1), + guide_box => $layout_xml->{'guide_box'}, units => $units, @barcode, barcode_type => get_barcode_types(), @@ -206,6 +207,7 @@ elsif ($op eq 'save') { $layout_id = $cgi->param($parameter) if $parameter eq 'layout_id'; $layout->{'units'} = $cgi->param($parameter) if $parameter eq 'units'; $layout->{'page_side'} = $cgi->param($parameter) if $parameter eq 'page_side'; + $layout->{'guide_box'} = $cgi->param($parameter) if $parameter eq 'guide_box'; } } $layout->{'text'} = $text_lines;