View | Details | Raw Unified | Return to bug 9673
Collapse All | Expand All

(-)a/installer/data/mysql/kohastructure.sql (-7 / +3 lines)
Lines 868-874 CREATE TABLE `deleteditems` ( Link Here
868
  `itemlost` tinyint(1) NOT NULL default 0, -- authorized value defining this item as lost (MARC21 952$1)
868
  `itemlost` tinyint(1) NOT NULL default 0, -- authorized value defining this item as lost (MARC21 952$1)
869
  `itemlost_on` datetime DEFAULT NULL, -- the date and time an item was last marked as lost, NULL if not lost
869
  `itemlost_on` datetime DEFAULT NULL, -- the date and time an item was last marked as lost, NULL if not lost
870
  `withdrawn` tinyint(1) NOT NULL default 0, -- authorized value defining this item as withdrawn (MARC21 952$0)
870
  `withdrawn` tinyint(1) NOT NULL default 0, -- authorized value defining this item as withdrawn (MARC21 952$0)
871
  `wthdrawn_on` datetime DEFAULT NULL, -- the date and time an item was last marked as withdrawn, NULL if not withdrawn
871
  `withdrawn_on` datetime DEFAULT NULL, -- the date and time an item was last marked as withdrawn, NULL if not withdrawn
872
  `itemcallnumber` varchar(255) default NULL, -- call number for this item (MARC21 952$o)
872
  `itemcallnumber` varchar(255) default NULL, -- call number for this item (MARC21 952$o)
873
  `coded_location_qualifier` varchar(10) default NULL, -- coded location qualifier(MARC21 952$f)
873
  `coded_location_qualifier` varchar(10) default NULL, -- coded location qualifier(MARC21 952$f)
874
  `issues` smallint(6) default NULL, -- number of times this item has been checked out
874
  `issues` smallint(6) default NULL, -- number of times this item has been checked out
Lines 1160-1172 CREATE TABLE `items` ( -- holdings/item information Link Here
1160
  `notforloan` tinyint(1) NOT NULL default 0, -- authorized value defining why this item is not for loan (MARC21 952$7)
1160
  `notforloan` tinyint(1) NOT NULL default 0, -- authorized value defining why this item is not for loan (MARC21 952$7)
1161
  `damaged` tinyint(1) NOT NULL default 0, -- authorized value defining this item as damaged (MARC21 952$4)
1161
  `damaged` tinyint(1) NOT NULL default 0, -- authorized value defining this item as damaged (MARC21 952$4)
1162
  `itemlost` tinyint(1) NOT NULL default 0, -- authorized value defining this item as lost (MARC21 952$1)
1162
  `itemlost` tinyint(1) NOT NULL default 0, -- authorized value defining this item as lost (MARC21 952$1)
1163
<<<<<<< HEAD
1164
  `withdrawn` tinyint(1) NOT NULL default 0, -- authorized value defining this item as withdrawn (MARC21 952$0)
1165
=======
1166
  `itemlost_on` datetime DEFAULT NULL, -- the date and time an item was last marked as lost, NULL if not lost
1163
  `itemlost_on` datetime DEFAULT NULL, -- the date and time an item was last marked as lost, NULL if not lost
1167
  `wthdrawn` tinyint(1) NOT NULL default 0, -- authorized value defining this item as withdrawn (MARC21 952$0)
1164
  `withdrawn` tinyint(1) NOT NULL default 0, -- authorized value defining this item as withdrawn (MARC21 952$0)
1168
  `wthdrawn_on` datetime DEFAULT NULL, -- the date and time an item was last marked as withdrawn, NULL if not withdrawn
1165
  `withdrawn_on` datetime DEFAULT NULL, -- the date and time an item was last marked as withdrawn, NULL if not withdrawn
1169
>>>>>>> Bug 9673 - Track when items are marked as lost or withdrawn
1170
  `itemcallnumber` varchar(255) default NULL, -- call number for this item (MARC21 952$o)
1166
  `itemcallnumber` varchar(255) default NULL, -- call number for this item (MARC21 952$o)
1171
  `coded_location_qualifier` varchar(10) default NULL, -- coded location qualifier(MARC21 952$f)
1167
  `coded_location_qualifier` varchar(10) default NULL, -- coded location qualifier(MARC21 952$f)
1172
  `issues` smallint(6) default NULL, -- number of times this item has been checked out/issued
1168
  `issues` smallint(6) default NULL, -- number of times this item has been checked out/issued
(-)a/installer/data/mysql/updatedatabase.pl (-2 / +2 lines)
Lines 7045-7053 if ( CheckVersion($DBversion) ) { Link Here
7045
$DBversion = "3.13.00.XXX";
7045
$DBversion = "3.13.00.XXX";
7046
if ( CheckVersion($DBversion) ) {
7046
if ( CheckVersion($DBversion) ) {
7047
   $dbh->do("ALTER TABLE items ADD itemlost_on DATETIME NULL AFTER itemlost");
7047
   $dbh->do("ALTER TABLE items ADD itemlost_on DATETIME NULL AFTER itemlost");
7048
   $dbh->do("ALTER TABLE items ADD wthdrawn_on DATETIME NULL AFTER wthdrawn");
7048
   $dbh->do("ALTER TABLE items ADD withdrawn_on DATETIME NULL AFTER wthdrawn");
7049
   $dbh->do("ALTER TABLE deleteditems ADD itemlost_on DATETIME NULL AFTER itemlost");
7049
   $dbh->do("ALTER TABLE deleteditems ADD itemlost_on DATETIME NULL AFTER itemlost");
7050
   $dbh->do("ALTER TABLE deleteditems ADD wthdrawn_on DATETIME NULL AFTER wthdrawn");
7050
   $dbh->do("ALTER TABLE deleteditems ADD withdrawn_on DATETIME NULL AFTER wthdrawn");
7051
   print "Upgrade to $DBversion done (Bug 9673 - Track when items are marked as lost or withdrawn)\n";
7051
   print "Upgrade to $DBversion done (Bug 9673 - Track when items are marked as lost or withdrawn)\n";
7052
   SetVersion ($DBversion);
7052
   SetVersion ($DBversion);
7053
}
7053
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-2 / +1 lines)
Lines 166-172 Link Here
166
                    </form>
166
                    </form>
167
                [% END %]
167
                [% END %]
168
            </li>
168
            </li>
169
            [% IF ITEM_DAT.wthdrawn_on %]<li><span class="label">Withdrawn on:</span>[% ITEM_DAT.wthdrawn_on | $KohaDates %] &nbsp;</li>[% END %]
169
            [% IF ITEM_DAT.withdrawn_on %]<li><span class="label">Withdrawn on:</span>[% ITEM_DAT.withdrawn_on | $KohaDates %] &nbsp;</li>[% END %]
170
            </ol></div>
170
            </ol></div>
171
            <div class="listgroup"><h4>History</h4>
171
            <div class="listgroup"><h4>History</h4>
172
            <ol class="bibliodetails">
172
            <ol class="bibliodetails">
173
- 

Return to bug 9673