From: miker Date: Thu, 2 Nov 2006 03:43:46 +0000 (+0000) Subject: adding circulation type; adding core plain-transit table X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fcf49db8c878545d425567ef19bb38e4775b07d3;p=Evergreen.git adding circulation type; adding core plain-transit table git-svn-id: svn://svn.open-ils.org/ILS/trunk@6543 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 46be015536..156572e1c1 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -244,21 +244,21 @@ - + - - - - - - - - - - + + + + + + + + + + @@ -268,19 +268,19 @@ - + - - - - - - - - + + + + + + + + @@ -1001,6 +1001,7 @@ + @@ -1015,6 +1016,7 @@ + @@ -1136,23 +1138,23 @@ - + - - - - - - - - - - - - + + + + + + + + + + + + @@ -1232,15 +1234,15 @@ - + - + - - + + @@ -2281,4 +2283,16 @@ + + + + + + + + + + + + diff --git a/Open-ILS/src/sql/Pg/reporter-schema.sql b/Open-ILS/src/sql/Pg/reporter-schema.sql index 20905bd7f1..8990e46188 100644 --- a/Open-ILS/src/sql/Pg/reporter-schema.sql +++ b/Open-ILS/src/sql/Pg/reporter-schema.sql @@ -166,5 +166,13 @@ SELECT u.id, END AS general_division FROM actor.usr u; +CREATE OR REPLACE VIEW reporter.circ_type AS +SELECT id, + CASE WHEN opac_renewal OR phone_renewal OR desk_renewal + THEN 'RENEWAL' + ELSE 'CHECKOUT' + END AS "type" + FROM action.circulation; + COMMIT;