No subject
Tue Dec 27 09:26:03 EST 2011
You can see the tables in the actor schema with the command: evergreen# \dt actor.
the period is critical in this command. You should see:
evergreen# \dt actor.
List of relations
Schema | Name | Type | Owner
--------+------------------------+-------+-----------
actor | card | table | postgres
actor | hours_of_operation | table | postgres
actor | org_address | table | postgres
actor | org_lasso | table | postgres
actor | org_lasso_map | table | postgres
actor | org_unit | table | postgres
actor | org_unit_closed | table | postgres
actor | org_unit_proximity | table | postgres
actor | org_unit_setting | table | postgres
actor | org_unit_type | table | postgres
actor | stat_cat | table | postgres
actor | stat_cat_entry | table | postgres
actor | stat_cat_entry_usr_map | table | postgres
actor | usr | table | postgres
actor | usr_address | table | postgres
actor | usr_note | table | postgres
actor | usr_org_unit_opt_in | table | postgres
actor | usr_password_reset | table | evergreen
actor | usr_saved_search | table | evergreen
actor | usr_setting | table | postgres
actor | usr_standing_penalty | table | postgres
actor | workstation | table | postgres
(22 rows)
Now, your phone number is found in the usr table as Wolf explained earlier. to see the fields in the usr table, one issues the \d actor.usr command.
The table is big enough so that i am not listing it's contents here. This post should explain for you and others who might be new to the evergreen schema architecture how to navigate around it using the psql command line tool.
pgadmin and others (I use Navicat) only make this easier.
I hope this helps.
Steve Wills
-----Original Message-----
From: Wolf Halton [mailto:wolf.halton at gmail.com]
Sent: Sunday, January 8, 2012 01:40 AM
To: 'Evergreen Development Discussion List'
Subject: Re: [OPEN-ILS-DEV] Want to know the variable name of patron's phone number
Hi Darshan,
--Please watch the subject line. Your response had a subject line of "...Digest etc etc" and that breaks the threading of the conversation. --
That is the list of databases, and the table is part of the evergreen database. If you have a linux desktop to look at gui stuff, you can look at the structure using pgadmin III (as long as your database is listening on an external port). I cannot tell you exactly how to approach using the field, but I can guarantee it will be there. (Your money back if not delighted).
Wolf
On Wed, Jan 4, 2012 at 7:40 AM, darshan <dkhot at dreamsoftech.com" target="_blank" >dkhot at dreamsoftech.com> wrote:
Hi,
I checked in database but I couldn't find table that you mention. In fact
there was no single table in database. Please see attached screenshot and
guide me if I am referring wrong database.
Thanks
Darshan
Message: 2
Date: Tue, 3 Jan 2012 08:00:34 -0500
From: Wolf Halton <wolf.halton at gmail.com" target="_blank" >wolf.halton at gmail.com>
Subject: Re: [OPEN-ILS-DEV] Want to know the variable name of patron's
phone number
To: Evergreen Development Discussion List
<open-ils-dev at list.georgialibraries.org" target="_blank" >open-ils-dev at list.georgialibraries.org>
Message-ID:
<CALRLYEm4RFJigMgfcowywNBeJhU_XS9JtQiDZfzwBCThX=WboA at mail.gmail.com" target="_blank" >WboA at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I am not a dev on this project, but I could find you this much. That
information is in the table called "usr" there are fields for day_phone,
evening_phone and other_phone. I used pgadmin III to look at the table
details. This is on evergreen version 2.1.
On Tue, Jan 3, 2012 at 6:48 AM, darshan <dkhot at dreamsoftech.com" target="_blank" >dkhot at dreamsoftech.com> wrote:
> Hi,****
>
> ** **
>
> In email template we use some variables ( like ${PATRON_NAME} and
> ${PATRON_ADDRESS}) to get patron specific data. We want to use patrons
> phone number in email message but we could not identify the variable
> to get this value. Please help.****
>
> ** **
>
> Thanks****
>
> Darshan Khot****
>
--
This Apt Has Super Cow Powers - http://sourcefreedom.com Advancing Libraries
Together - http://LYRASIS.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/2012
0103/1dba7e0f/attachment-0001.htm>
End of Open-ils-dev Digest, Vol 70, Issue 1
*******************************************
--
This Apt Has Super Cow Powers - http://sourcefreedom.com
Advancing Libraries Together - http://LYRASIS.org
--=_2f09a6c5ee232f8e30e47c1f93359104
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="UTF-8"
<br><br>Thank You<br><br>--------------------------------------------------=
---------------------------------------------------------------------------=
--------------------------------<br>From: "Steve Wills" <swills at beyond-p=
rint.com><br>Sent: Sun, 08 Jan 2012 13:51:49 <br>To: "Evergreen Developm=
ent Discussion List" <open-ils-dev at list.georgialibraries.org><br>Subj=
ect: [OPEN-ILS-DEV] ***SPAM*** Using PSQL with Evergreen's Database. Want =
to know the variable name of patron's phone number<br> <div> I tried to res=
pond before but my email didn't make it onto the list for some reason. =
; This is my second try.<br><br>Darshan,<br><br>You need the right database=
, by default it is called evergreen. In postgres, your previous=
posts indicate that you can get into psql. pgadmin and other g=
ui tools are cool but fundamentally one wants to understand the underlying =
database. psql strips away the gui and forces you to think only about=
the database, it might speak to the difficulty you are having.<br><br>firs=
t, in psql, use the \l tool to see what databases you have in your postgres=
instance. Usually, your Evergreen database will be called evergreen =
unless you had done something proactive to change that name.<br><br>postgre=
s#\c evergreen <br><br>this command should attach you to your evergreen dat=
abase. Now you probably want to see the tables. While it is tem=
pting to type \d and see tables, evergreen aggregates it's tables into func=
tional schema. You must know what these schema are in order to intera=
ct with the tables they govern. To get a list of those tables, use th=
e command \dn which should yield a list like:<br><br> &nbs=
p; List of schemas<br>  =
; Name |=
Owner <br>---------------------+-----------<br>&nb=
sp;acq &nb=
sp; | postgres<br> action&n=
bsp;  =
; | postgres<br> action_trigger =
| postgres<br> actor &n=
bsp; | postgres<br> a=
sset  =
; | postgres<br> auditor &nb=
sp; =
| postgres<br> authority &nb=
sp; | postgres<br> biblio &nb=
sp; =
| postgres<br> booking  =
; | evergreen<br> config&nbs=
p; &=
nbsp; | postgres<br> container &nbs=
p; | postgres<br> ever=
green | e=
vergreen<br> extend_reporter | postgres<br> inf=
ormation_schema | postgres<br> metabib &n=
bsp; | postgres<br>&n=
bsp;migration &n=
bsp; | postgres<br> money &nb=
sp; | pos=
tgres<br> offline  =
; | postgres<br> =
;permission &nbs=
p; | postgres<br> pg_catalog =
| postgres<br> pg_toast &nbs=
p; | postgres<b=
r> pg_toast_temp_1 | postgres<br> pg_toast_temp=
_2 | postgres<br> public &nbs=
p; &=
nbsp; | postgres<br> query &n=
bsp;  =
; | evergreen<br> reporter &n=
bsp; | postgres<br> search&n=
bsp;  =
; | postgres<br> serial  =
; &n=
bsp; | postgres<br> staging &=
nbsp; | evergre=
en<br> stats &nbs=
p; | postgres<b=
r> vandelay  =
; | postgres<br>(31 rows)<br><br>From this list of =
schema, you probably want the Actor schema to gleen your phone number. =
; <br><br>You can see the tables in the actor schema with the command: ever=
green# \dt actor.<br><br>the period is critical in this command. You =
should see:<br><br>evergreen# \dt actor.<br> &=
nbsp; Lis=
t of relations<br> Schema | &=
nbsp; Name | Ty=
pe | Owner <br>--------+---------------------=
---+-------+-----------<br> actor | card =
&nb=
sp; | table | postgres<br> actor | hours_of_operation =
; | table | postgres<br> actor | org_address&n=
bsp; | table | =
postgres<br> actor | org_lasso &nbs=
p; | table | postgres<br> ac=
tor | org_lasso_map &n=
bsp; | table | postgres<br> actor | org_unit &n=
bsp; | table | =
postgres<br> actor | org_unit_closed &nbs=
p; | table | postgres<br> actor | org_unit_proximity=
| table | postgres<br> actor | org_unit=
_setting | table | postgres<br> ac=
tor | org_unit_type &n=
bsp; | table | postgres<br> actor | stat_cat &n=
bsp; | table | =
postgres<br> actor | stat_cat_entry  =
; | table | postgres<br> actor | stat_cat_entr=
y_usr_map | table | postgres<br> actor | usr &n=
bsp;  =
; | table | postgres<br> actor | usr_address&n=
bsp; | table | =
postgres<br> actor | usr_note  =
; | table | postgres<br>&nb=
sp;actor | usr_org_unit_opt_in | table | postgres<b=
r> actor | usr_password_reset | table | =
evergreen<br> actor | usr_saved_search &n=
bsp; | table | evergreen<br> actor | usr_setting &nbs=
p; | table | postgres=
<br> actor | usr_standing_penalty | table | postgres=
<br> actor | workstation &nbs=
p; | table | postgres<br>(22 rows)<br><br>Now, your=
phone number is found in the usr table as Wolf explained earlier. to=
see the fields in the usr table, one issues the \d actor.usr command.<br><=
br>The table is big enough so that i am not listing it's contents here.&nbs=
p; This post should explain for you and others who might be new to the ever=
green schema architecture how to navigate around it using the psql command =
line tool.<br><br>pgadmin and others (I use Navicat) only make this easier.=
<br><br>I hope this helps.<br>Steve Wills<br><br><br><br></div>
<blockquote style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000=
0ff 2px solid; MARGIN-RIGHT: 0px"><font face=3D"Tahoma" size=3D"2">-----Ori=
ginal Message-----<br><b>From:</b> Wolf Halton [mailto:wolf.halton at gmail.co=
m]<br><b>Sent:</b> Sunday, January 8, 2012 01:40 AM<br><b>To:</b> 'Evergree=
n Development Discussion List'<br><b>Subject:</b> Re: [OPEN-ILS-DEV] Want t=
o know the variable name of patron's phone number<br><br></font>Hi Darshan,=
<br>--Please watch the subject line. Your response had a subject line=
of "...Digest etc etc" and that breaks the threading of the conversation. =
--<br><br>That is the list of databases, and the table is part of the everg=
reen database. If you have a linux desktop to look at gui stuff, you =
can look at the structure using pgadmin III (as long as your database is li=
stening on an external port). I cannot tell you exactly how to approa=
ch using the field, but I can guarantee it will be there. (Your money=
back if not delighted).<br>
<br>Wolf<br><br><br><div cl-ass=3D"gmail_quote">On Wed, Jan 4, 2012 at 7:40=
AM, darshan <span dir=3D"ltr"><dkhot at dreamsoftech.com" target=3D"_blank=
" >dkhot at dreamsoftech.com></span> wrote:<br><blockquote cl-ass=3D"gma=
il_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-lef=
t:1ex">
Hi,<br>
<br>
I checked in database but I couldn't find table that you mention. In fact<b=
r>
there was no single table in database. Please see attached screenshot and<b=
r>
guide me if I am referring wrong database.<br>
<br>
Thanks<br>
Darshan<br>
<br>
Message: 2<br>
Date: Tue, 3 Jan 2012 08:00:34 -0500<br>
From: Wolf Halton <wolf.halton at gmail.com" target=3D"_blank" >wolf.hal=
ton at gmail.com><br>
Subject: Re: [OPEN-ILS-DEV] Want to know the variable name of patron's<br>
phone number<br>
To: Evergreen Development Discussion List<br>
<open-ils-dev at list.georgialibraries.org" tar=
get=3D"_blank" >open-ils-dev at list.georgialibraries.org><br>
Message-ID:<br>
<CALRLYEm4RFJigMgfcowywNBeJhU_XS9JtQiDZfzwBC=
ThX=3DWboA at mail.gmail.com" target=3D"_blank" >WboA at mail.gmail.com><br=
>
Content-Type: text/plain; charset=3D"utf-8"<br>
<br>
I am not a dev on this project, but I could find you this much. That<=
br>
information is in the table called "usr" there are fields for day_phone,<br=
>
evening_phone and other_phone. I used pgadmin III to look at the tabl=
e<br>
details. This is on evergreen version 2.1.<br>
<br>
On Tue, Jan 3, 2012 at 6:48 AM, darshan <dkhot at dreamsoftech.com" target=
=3D"_blank" >dkhot at dreamsoftech.com> wrote:<br>
<br>
> Hi,****<br>
><br>
> ** **<br>
><br>
> In email template we use some variables ( like ${PATRON_NAME} and<br>
> ${PATRON_ADDRESS}) to get patron specific data. We want to use patrons=
<br>
> phone number in email message but we could not identify the variable<b=
r>
> to get this value. Please help.****<br>
><br>
> ** **<br>
><br>
> Thanks****<br>
><br>
> Darshan Khot****<br>
><br>
<span cl-ass=3D"HOEnZb"><font color=3D"#888888"><br>
<br>
<br>
--<br>
This Apt Has Super Cow Powers - <a href=3D'http://sourcefreedom.com'>http:/=
/sourcefreedom.com</a> Advancing Libraries<br>
Together - <a href=3D'http://LYRASIS.org'>http://LYRASIS.org</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL:<br>
<<a href=3D"http://www.rediffmail.com/cgi-bin/red.cgi?red=3Dhttp%3A%2F%2=
Flibmail%2Egeorgialibraries%2Eorg%2Fpipermail%2Fopen%2Dils%2Ddev%2Fattachme=
nts%2F2012%250A0103%2F1dba7e0f%2Fattachment%2D0001%2Ehtm&isImage=3D0&am=
p;BlockImage=3D0&rediffng=3D0" mce_href=3D"http://libmail.georgialibrar=
ies.org/pipermail/open-ils-dev/attachments/2012%0A0103/1dba7e0f/attachment-=
0001.htm" target=3D"_blank">http://libmail.georgialibraries.org/pipermail/o=
pen-ils-dev/attachments/2012<br>
0103/1dba7e0f/attachment-0001.htm</a>><br>
<br>
End of Open-ils-dev Digest, Vol 70, Issue 1<br>
*******************************************<br>
</font></span></blockquote></div><br><br clear=3D"all"><br>-- <br>This Apt =
Has Super Cow Powers - <a href=3D'http://sourcefreedom.com'>http://sourcefr=
eedom.com</a><br>Advancing Libraries Together - <a href=3D'http://LYRASIS.o=
rg'>http://LYRASIS.org</a><br>
<br>
</blockquote>=20
<br><A HREF=3D"http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.redi=
ffmail.com/signatureline.htm at Middle?" target=3D"_blank"><IMG SRC=3D"http://=
sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatur=
eline.htm at Middle"></A><br><table width=3D"578" border=3D"0" cellspacing=3D"=
0" cellpadding=3D"0"><tr><td><span style=3D"font-family:Arial, Helvetica, s=
ans-serif; font-size:12px; color:#393939;">Follow <span style=3D"color=
:#0000CC;"><b><u><a href=3D"http://track.rediff.com/click?url=3D___http://d=
ealhojaye.rediff.com?sc_cid=3Drediffmailsignature___&cmp=3Dsignature&lnk=3D=
rediffmailsignature&newservice=3Ddeals" target=3D"_blank">Rediff Deal ho ja=
ye!</a></u></b></span> to get exciting offers in your city everyday.</=
span></td></tr></table>
--=_2f09a6c5ee232f8e30e47c1f93359104--
More information about the Open-ils-dev
mailing list