simplify logic for displaying item status
authorGalen Charlton <gmcharlt@gmail.com>
Sat, 1 May 2010 18:15:42 +0000 (14:15 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Mon, 3 May 2010 11:45:19 +0000 (07:45 -0400)
commit0c39f1ac9b5407b06357e1e936ea0d723da42367
treee1b7bb2e918d4ac08563f3bb091e53a067b1b9c9
parent96a70655aac0c96b82a77dd1e71eee7858d7a274
simplify logic for displaying item status

Flatten the tmpl_if tree for determining the item status
to display and tweaked the order in which statuses are checked to

1. (circ reality) item on loan
2. (circ reality) item in transit
3. (circ reality) item wating at hold shelf
4. (item status that makes circ impossible) item withdrawn
5. (item status that makes circ impossible) item lost
6. (policy that implies no circ but in-house use possible) item not-for-loan per item
7. (policy that implies no circ but in-house use possible) item not-for-loan per item type
8  (item status that *might* affect circ) damaged
8. (fallback) item available

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc