Bug 9673: QA followup
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 4 Nov 2013 11:23:23 +0000 (12:23 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 19 Dec 2013 06:27:46 +0000 (06:27 +0000)
This followup fixes the wthdrawn typo exist in updatedatabase.pl and
does not display the lostitem date if the lostitem value is not set (!=
"").

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt

index 535cbfe..6fd42f2 100755 (executable)
@@ -7846,9 +7846,9 @@ if(CheckVersion($DBversion)) {
 $DBversion = "3.13.00.XXX";
 if ( CheckVersion($DBversion) ) {
    $dbh->do("ALTER TABLE items ADD itemlost_on DATETIME NULL AFTER itemlost");
-   $dbh->do("ALTER TABLE items ADD withdrawn_on DATETIME NULL AFTER wthdrawn");
+   $dbh->do("ALTER TABLE items ADD withdrawn_on DATETIME NULL AFTER withdrawn");
    $dbh->do("ALTER TABLE deleteditems ADD itemlost_on DATETIME NULL AFTER itemlost");
-   $dbh->do("ALTER TABLE deleteditems ADD withdrawn_on DATETIME NULL AFTER wthdrawn");
+   $dbh->do("ALTER TABLE deleteditems ADD withdrawn_on DATETIME NULL AFTER withdrawn");
    print "Upgrade to $DBversion done (Bug 9673 - Track when items are marked as lost or withdrawn)\n";
    SetVersion ($DBversion);
 }
index d54513d..86d4e34 100644 (file)
                         &nbsp;
                     [% END %]
                 </li>
-                [% IF ITEM_DAT.itemlost_on %]<li><span class="label">Lost on:</span>[% ITEM_DAT.itemlost_on | $KohaDates %] &nbsp;</li>[% END %]
+                [% IF ITEM_DAT.itemlost != "" && ITEM_DAT.itemlost_on %]
+                    <li><span class="label">Lost on:</span>[% ITEM_DAT.itemlost_on | $KohaDates %] &nbsp;</li>
+                [% END %]
             [% END %]
             [% IF ( ITEM_DAT.itemdamagedloop ) %]
             <li><span class="label">Damaged status:</span>