From b4c295da4b189616be89709b7a8d46dc660bf981 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 18 Mar 2013 11:20:42 +0100 Subject: [PATCH] Bug 10321: Followup for hold notes Content-Type: text/plain; charset=utf-8 Based on work for report 9722. This patch resolves a small display problem with the number of columns of the table on opac-reserve. Test plan: Enable OPACShowHoldQueueDetails and OpacShowHoldNotes. Without this patch, the hold notes end at the one-but-last column. Test this by placing a hold in opac and click on Edit notes. Apply this patch: repeat what you did, the display should be correct. Toggle the value of OPACShowHoldQueueDetails. And check again. --- opac/opac-reserve.pl | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index d1c3360..b633d3d 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -548,13 +548,14 @@ if ( $numBibsAvailable == 0 || $anyholdable == 0) { $template->param( none_available => 1 ); } -my $itemTableColspan = 8; +my $itemTableColspan = 9; if (! $template->{VARS}->{'OPACItemHolds'}) { $itemTableColspan--; } if (! $template->{VARS}->{'singleBranchMode'}) { $itemTableColspan--; } +$itemTableColspan-- if !$show_holds_count && !$show_priority; my $show_notes=C4::Context->preference('OPACShowHoldNotes'); $template->param(OPACShowHoldNotes=>$show_notes); $itemTableColspan-- if !$show_notes; -- 1.7.7.6