AddItem
AddItemBatchFromMarc
ModItemFromMarc
- Item2Marc
+ Item2Marc
ModItem
ModDateLastSeen
ModItemTransfer
GetItemnumberFromBarcode
GetBarcodeFromItemnumber
GetHiddenItemnumbers
- DelItemCheck
- MoveItemFromBiblio
- GetLatestAcquisitions
+ DelItemCheck
+ MoveItemFromBiblio
+ GetLatestAcquisitions
+
CartToShelf
+ ShelfToCart
GetAnalyticsCount
GetItemHolds
}
my $item = GetItem($itemnumber);
- $item->{location} = $item->{permanent_location};
+ if ( $item->{location} eq 'CART' ) {
+ $item->{location} = $item->{permanent_location};
+ ModItem($item, undef, $itemnumber);
+ }
+}
+
+=head2 ShelfToCart
+
+ ShelfToCart($itemnumber);
+
+Set the current shelving location of the item
+to shelving cart ('CART').
+
+=cut
+
+sub ShelfToCart {
+ my ( $itemnumber ) = @_;
+
+ unless ( $itemnumber ) {
+ croak "FAILED ShelfToCart() - no itemnumber supplied";
+ }
+
+ my $item = GetItem($itemnumber);
+ $item->{'location'} = 'CART';
ModItem($item, undef, $itemnumber);
}
my $dbh = C4::Context->dbh;
+ # Remove the 'shelving cart' location status if it is being used.
+ CartToShelf( $itemnumber ) if ( C4::Context->preference("ReturnToShelvingCart") );
+
#new entry in branchtransfers....
my $sth = $dbh->prepare(
"INSERT INTO branchtransfers (itemnumber, frombranch, datesent, tobranch)
my $dbh = C4::Context->dbh;
my $query = "
- SELECT *
+ SELECT title, author, lib, itemlost, authorised_value, barcode, datelastseen, price, replacementprice, homebranch,
+ itype, itemtype, holdingbranch, location, itemnotes, items.biblionumber as biblionumber
FROM items
LEFT JOIN biblio ON (items.biblionumber = biblio.biblionumber)
LEFT JOIN biblioitems ON (items.biblionumber = biblioitems.biblionumber)