Added drive to library view

This commit is contained in:
Deon George
2011-06-25 09:46:26 +10:00
parent 279eacd4ab
commit 2d7cfd3eb3
10 changed files with 144 additions and 11 deletions

View File

@@ -34,5 +34,14 @@ class Slot {
public function __toString() {
return $this->slot;
}
public function barcodelabel() {
if ($this->status == 'Allocated' AND $this->barcode == 'not present')
return _('No Label');
elseif ($this->status == 'Unallocated')
return _('Slot Empty');
else
return $this->barcodelabel;
}
}
?>