From 0c39f1ac9b5407b06357e1e936ea0d723da42367 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sat, 1 May 2010 14:15:42 -0400 Subject: [PATCH] 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 --- .../prog/en/includes/item-status.inc | 60 +++++++++---------- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc index af71a99f80..5e881fe8d0 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc @@ -1,34 +1,32 @@ - - Not for loan () - - - - Checked out to - - Checked out - + + + Checked out to + + Checked out + + + In transit from + to since + + On hold + + Item withdrawn + + + " alt="" title=""> - - - - - - " alt="" title=""> - - Item lost - - - - Item withdrawn - - Item damaged - - In transit from - to since - - On holdAvailable - - - + Item lost + + + + + Not for loan + + + Not for loan + + Item damaged + + Available -- 2.39.5