Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Godmar Back
Running in a J2EE is somewhat different from running in a CGI environment.
Specifically, variables such as REMOTE_ADDR, etc. are not stored in
environment variables that are easily accessible.

Assuming that your XSLT is executed for each request (which, btw, is not a
given since Voyager may well be caching the results of the style-sheet
application), your vendor may set up the XSLT processor environment to
provide access to variables related to the current request, for instance,
via XALAN-J extensions. If they did that, it would probably be in the
documentation to which you have access under NDA.

If not, things will be a lot more complicated. You'll probably have to wrap
the servlet in your own; store the current servlet request in a thread-local
variable, then create an xalan extension to access it during the XSLT
processing. That requires a fair bit of Java/J2EE "trickery," but is
definitely possible (and will likely void your warranty.)

 - Godmar

On Fri, Jun 19, 2009 at 9:42 PM, Tom Pasley  wrote:

> Hi,
>
> I see Michael's here too - (he's a bit of a guru on the Voyager-L listserv
> :-D).
>
> Michael, if you have a look at the Vendor URL, there's some info there, but
> you might also try having a look through some of these G.search results:
>
> site:xml.apache.org inurl:"xalan-j" "system"
>
> - see if that helps any - like to help more, but I've got to go!
>
> Tom
>
> On Sat, Jun 20, 2009 at 10:11 AM, Doran, Michael D  wrote:
>
> > Hi Jon,
> >
> > > Try putting somewhere in one of the xslt pages
> >
> > Cool!  Here's the output:
> >
> >Version: 1
> >Vendor: Apache Software Foundation
> >Vendor URL: http://xml.apache.org/xalan-j
> >
> > -- Michael
> >
> > # Michael Doran, Systems Librarian
> > # University of Texas at Arlington
> > # 817-272-5326 office
> > # 817-688-1926 mobile
> > # do...@uta.edu
> > # http://rocky.uta.edu/doran/
> >
> >
> > > -Original Message-
> > > From: Code for Libraries [mailto:code4...@listserv.nd.edu] On
> > > Behalf Of Jon Gorman
> > > Sent: Friday, June 19, 2009 5:05 PM
> > > To: CODE4LIB@LISTSERV.ND.EDU
> > > Subject: Re: [CODE4LIB] How to access environment variables in XSL
> > >
> > > Try putting somewhere in one of the xslt pages
> > >
> > > 
> > > Version:
> > > 
> > > 
> > > Vendor:
> > > 
> > > 
> > > Vendor URL:
> > > 
> > > 
> > >
> > > Jon
> > >
> > > On Fri, Jun 19, 2009 at 4:53 PM, Doran, Michael
> > > D wrote:
> > > > Hi Dave,
> > > >
> > > >> What XSLT processor and programming language are you using?
> > > >
> > > > I'm embarrassed to say that I'm not sure.  I'm making
> > > modifications and enhancements to already existing XSL pages
> > > that are part of the framework of Ex Libris' new Voyager 7.0
> > > OPAC.  This new version of the OPAC is running under Apache
> > > Tomcat (on Solaris) and my assumption is that the programming
> > > language is Java; however the source code for the app itself
> > > is not available to me (and I'm not a Java programmer anyway,
> > > so it's a moot point).  I assume also that the XSLT processor
> > > is what comes with Solaris (or Tomcat?).  As you can probably
> > > tell, this stuff is new to me.  I've been trying to take a
> > > Sun Ed XML/XSL class for the last year, but it keeps getting
> > > cancelled for lack of students.  Apparently I'm the last
> > > person left in the Dallas/Fort Worth area that needs to learn
> > > this stuff. ;-)
> > > >
> > > > -- Michael
> > > >
> > > > # Michael Doran, Systems Librarian
> > > > # University of Texas at Arlington
> > > > # 817-272-5326 office
> > > > # 817-688-1926 mobile
> > > > # do...@uta.edu
> > > > # http://rocky.uta.edu/doran/
> > > >
> > > >
> > > >> -Original Message-
> > > >> From: Code for Libraries [mailto:code4...@listserv.nd.edu] On
> > > >> Behalf Of Walker, David
> > > >> Sent: Friday, June 19, 2009 2:48 PM
> > > >> To: CODE4LIB@LISTSERV.ND.EDU
> > > >> Subject: Re: [CODE4LIB] How to access environment variables in XSL
> > > >>
> > > >> Micahael,
> > > >>
> > > >> What XSLT processor and programming language are you using?
> > > >>
> > > >> --Dave
> > > >>
> > > >> ==
> > > >> David Walker
> > > >> Library Web Services Manager
> > > >> California State University
> > > >> http://xerxes.calstate.edu
> > > >> 
> > > >> From: Code for Libraries [code4...@listserv.nd.edu] On Behalf
> > > >> Of Doran, Michael D [do...@uta.edu]
> > > >> Sent: Friday, June 19, 2009 12:44 PM
> > > >> To: CODE4LIB@LISTSERV.ND.EDU
> > > >> Subject: [CODE4LIB] How to access environment variables in XSL
> > > >>
> > > >> I am working with some XSL pages that serve up HTML on the
> > > >> web.  I'm new to XSL.   In my prior web development, I was
> > > >> accustomed to being able to access environment variables (and
> > > >> their values, natch) in my CGI scripts and/or via Server Side
> > > >> Includes.  Is there an equivalent mechanism for accessing
> > > >> those environment variables within

Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Tom Pasley
Hi,

I see Michael's here too - (he's a bit of a guru on the Voyager-L listserv
:-D).

Michael, if you have a look at the Vendor URL, there's some info there, but
you might also try having a look through some of these G.search results:

site:xml.apache.org inurl:"xalan-j" "system"

- see if that helps any - like to help more, but I've got to go!

Tom

On Sat, Jun 20, 2009 at 10:11 AM, Doran, Michael D  wrote:

> Hi Jon,
>
> > Try putting somewhere in one of the xslt pages
>
> Cool!  Here's the output:
>
>Version: 1
>Vendor: Apache Software Foundation
>Vendor URL: http://xml.apache.org/xalan-j
>
> -- Michael
>
> # Michael Doran, Systems Librarian
> # University of Texas at Arlington
> # 817-272-5326 office
> # 817-688-1926 mobile
> # do...@uta.edu
> # http://rocky.uta.edu/doran/
>
>
> > -Original Message-
> > From: Code for Libraries [mailto:code4...@listserv.nd.edu] On
> > Behalf Of Jon Gorman
> > Sent: Friday, June 19, 2009 5:05 PM
> > To: CODE4LIB@LISTSERV.ND.EDU
> > Subject: Re: [CODE4LIB] How to access environment variables in XSL
> >
> > Try putting somewhere in one of the xslt pages
> >
> > 
> > Version:
> > 
> > 
> > Vendor:
> > 
> > 
> > Vendor URL:
> > 
> > 
> >
> > Jon
> >
> > On Fri, Jun 19, 2009 at 4:53 PM, Doran, Michael
> > D wrote:
> > > Hi Dave,
> > >
> > >> What XSLT processor and programming language are you using?
> > >
> > > I'm embarrassed to say that I'm not sure.  I'm making
> > modifications and enhancements to already existing XSL pages
> > that are part of the framework of Ex Libris' new Voyager 7.0
> > OPAC.  This new version of the OPAC is running under Apache
> > Tomcat (on Solaris) and my assumption is that the programming
> > language is Java; however the source code for the app itself
> > is not available to me (and I'm not a Java programmer anyway,
> > so it's a moot point).  I assume also that the XSLT processor
> > is what comes with Solaris (or Tomcat?).  As you can probably
> > tell, this stuff is new to me.  I've been trying to take a
> > Sun Ed XML/XSL class for the last year, but it keeps getting
> > cancelled for lack of students.  Apparently I'm the last
> > person left in the Dallas/Fort Worth area that needs to learn
> > this stuff. ;-)
> > >
> > > -- Michael
> > >
> > > # Michael Doran, Systems Librarian
> > > # University of Texas at Arlington
> > > # 817-272-5326 office
> > > # 817-688-1926 mobile
> > > # do...@uta.edu
> > > # http://rocky.uta.edu/doran/
> > >
> > >
> > >> -Original Message-
> > >> From: Code for Libraries [mailto:code4...@listserv.nd.edu] On
> > >> Behalf Of Walker, David
> > >> Sent: Friday, June 19, 2009 2:48 PM
> > >> To: CODE4LIB@LISTSERV.ND.EDU
> > >> Subject: Re: [CODE4LIB] How to access environment variables in XSL
> > >>
> > >> Micahael,
> > >>
> > >> What XSLT processor and programming language are you using?
> > >>
> > >> --Dave
> > >>
> > >> ==
> > >> David Walker
> > >> Library Web Services Manager
> > >> California State University
> > >> http://xerxes.calstate.edu
> > >> 
> > >> From: Code for Libraries [code4...@listserv.nd.edu] On Behalf
> > >> Of Doran, Michael D [do...@uta.edu]
> > >> Sent: Friday, June 19, 2009 12:44 PM
> > >> To: CODE4LIB@LISTSERV.ND.EDU
> > >> Subject: [CODE4LIB] How to access environment variables in XSL
> > >>
> > >> I am working with some XSL pages that serve up HTML on the
> > >> web.  I'm new to XSL.   In my prior web development, I was
> > >> accustomed to being able to access environment variables (and
> > >> their values, natch) in my CGI scripts and/or via Server Side
> > >> Includes.  Is there an equivalent mechanism for accessing
> > >> those environment variables within an XSL page?
> > >>
> > >> These are examples of the variables I'm referring to:
> > >> SERVER_NAME
> > >> SERVER_PORT
> > >> HTTP_HOST
> > >> DOCUMENT_URI
> > >> REMOTE_ADDR
> > >> HTTP_REFERER
> > >>
> > >> In a Perl CGI script, I would do something like this:
> > >> my $server = $ENV{'SERVER_NAME'};
> > >>
> > >> Or in an SSI, I could do something like this:
> > >> 
> > >>
> > >> If it matters, I'm working in: Solaris/Apache/Tomcat
> > >>
> > >> I've googled this but not found anything useful yet (except
> > >> for other people asking the same question).  Maybe I'm asking
> > >> the wrong question.  Any help would be appreciated.
> > >>
> > >> -- Michael
> > >>
> > >> # Michael Doran, Systems Librarian
> > >> # University of Texas at Arlington
> > >> # 817-272-5326 office
> > >> # 817-688-1926 mobile
> > >> # do...@uta.edu
> > >> # http://rocky.uta.edu/doran/
> > >>
> > >
> >
>


Re: [CODE4LIB] Institutional identifiers in repositories

2009-06-19 Thread Michael J. Giarlo
If you've got the time and the inclination, Karen, I think that would be
wonderful.  Thanks a bunch!

-Mike


On Fri, Jun 19, 2009 at 19:32, Karen Coyle  wrote:

> Thanks, Mike. So, to get specific, should I answer the survey for the
> Internet Archive? It's not academic, it's not necessarily scholarly, but
> it's about everything else you mention here.
>
>
> kc
>
> Michael J. Giarlo wrote:
>
>> I try to avoid defining 'repository'.  Institutional repositories and
>> subject repositories like arxiv.org are clearly 'repositories', but
>> beyond
>> that, you're right, it is somewhat ill-defined.  One might look to the
>> Kahn-Wilensky architecture [1], or the OAIS reference model [2], or even
>> Wikipedia [3] for definitions, but it's not clear that even the
>> authorities
>> agree on what makes a repository.  It's a system.  It's network-accessible
>> and typically has a web interface of some sort.  Files and groups of files
>> sometimes known as objects tend to be deposited in them, perhaps for some
>> combination of management, access, or preservation.  Many run Fedora,
>> DSpace, and ePrints, and factor heavily in scholarly communication.  Some
>> are document-centric.  Some will accept anything.  To some, a learning
>> management system may be a repo.  To others, a content management system.
>>
>> My background is in academia so my own definition is somewhat biased, but
>> I
>> wouldn't say it is necessarily limited in the way you ask.  Re: the I2
>> page
>> you mention: I2's work is currently separated into a few separate
>> "scenarios", one of which is oriented around repositories, and that's
>> where
>> the survey comes from.  The other scenarios are for library workflows and
>> electronic resources, so it's safe to assume that repository does not mean
>> ILS or OPAC or ERP system.
>>
>> My hope is that folks have their own working definitions of the term and
>> can
>> decide for themselves what it means.  But great question, Karen!
>>
>> -Mike
>>
>> 1. http://www.cnri.reston.va.us/k-w.html
>> 2. http://public.ccsds.org/publications/archive/650x0b1.pdf
>> 3. http://en.wikipedia.org/wiki/Digital_repository
>>
>>
>>
>> On Fri, Jun 19, 2009 at 15:15, Karen Coyle wrote:
>>
>>
>>> How do you define 'repository'? I know that's a hard question, but i'm
>>>
>>>
>> just
>>
>>
>>> not sure who should answer. Is it limited to places where academics store
>>> their own works? The I2 page on the NISO site seems to be more inclusive,
>>> citing "all library and publishing environments."
>>>
>>> kc
>>>
>>> Michael J. Giarlo wrote:
>>>
>>>
 The NISO I2 Working Group is surveying repository managers to
 determine the current practices and needs of the repository community
 regarding institutional identifiers.  We value your time and your
 input in the process to create a standard for a new institutional
 identifier.

 We hope that you will complete the survey which should take less than
 15 minutes.  The survey will remain open through Monday, July 6th.

 Here is a link to the survey:
 http://www.surveymonkey.com/s.aspx?sm=RGQgZ3090DVrb3kFzr3P3Q_3d_3d

 Please feel free to share this message with other interested parties.

 Thanks for your participation!  (And apologies for massive
 cross-posting; this is a fragmented community.)

 -Mike
 Co-chair, Repositories scenario, NISO I2 Working Group





>>> --
>>> ---
>>> Karen Coyle / Digital Library Consultant
>>> kco...@kcoyle.net http://www.kcoyle.net
>>> ph.: 510-540-7596   skype: kcoylenet
>>> fx.: 510-848-3913
>>> mo.: 510-435-8234
>>> 
>>>
>>>
>>>
>>
>>
>>
>>
>
>
> --
> ---
> Karen Coyle / Digital Library Consultant
> kco...@kcoyle.net http://www.kcoyle.net
> ph.: 510-540-7596   skype: kcoylenet
> fx.: 510-848-3913
> mo.: 510-435-8234
> 
>


Re: [CODE4LIB] Institutional identifiers in repositories

2009-06-19 Thread Karen Coyle
Thanks, Mike. So, to get specific, should I answer the survey for the 
Internet Archive? It's not academic, it's not necessarily scholarly, but 
it's about everything else you mention here.


kc

Michael J. Giarlo wrote:

I try to avoid defining 'repository'.  Institutional repositories and
subject repositories like arxiv.org are clearly 'repositories', but beyond
that, you're right, it is somewhat ill-defined.  One might look to the
Kahn-Wilensky architecture [1], or the OAIS reference model [2], or even
Wikipedia [3] for definitions, but it's not clear that even the authorities
agree on what makes a repository.  It's a system.  It's network-accessible
and typically has a web interface of some sort.  Files and groups of files
sometimes known as objects tend to be deposited in them, perhaps for some
combination of management, access, or preservation.  Many run Fedora,
DSpace, and ePrints, and factor heavily in scholarly communication.  Some
are document-centric.  Some will accept anything.  To some, a learning
management system may be a repo.  To others, a content management system.

My background is in academia so my own definition is somewhat biased, but I
wouldn't say it is necessarily limited in the way you ask.  Re: the I2 page
you mention: I2's work is currently separated into a few separate
"scenarios", one of which is oriented around repositories, and that's where
the survey comes from.  The other scenarios are for library workflows and
electronic resources, so it's safe to assume that repository does not mean
ILS or OPAC or ERP system.

My hope is that folks have their own working definitions of the term and can
decide for themselves what it means.  But great question, Karen!

-Mike

1. http://www.cnri.reston.va.us/k-w.html
2. http://public.ccsds.org/publications/archive/650x0b1.pdf
3. http://en.wikipedia.org/wiki/Digital_repository



On Fri, Jun 19, 2009 at 15:15, Karen Coyle wrote:
  

How do you define 'repository'? I know that's a hard question, but i'm


just
  

not sure who should answer. Is it limited to places where academics store
their own works? The I2 page on the NISO site seems to be more inclusive,
citing "all library and publishing environments."

kc

Michael J. Giarlo wrote:


The NISO I2 Working Group is surveying repository managers to
determine the current practices and needs of the repository community
regarding institutional identifiers.  We value your time and your
input in the process to create a standard for a new institutional
identifier.

We hope that you will complete the survey which should take less than
15 minutes.  The survey will remain open through Monday, July 6th.

Here is a link to the survey:
http://www.surveymonkey.com/s.aspx?sm=RGQgZ3090DVrb3kFzr3P3Q_3d_3d

Please feel free to share this message with other interested parties.

Thanks for your participation!  (And apologies for massive
cross-posting; this is a fragmented community.)

-Mike
Co-chair, Repositories scenario, NISO I2 Working Group



  

--
---
Karen Coyle / Digital Library Consultant
kco...@kcoyle.net http://www.kcoyle.net
ph.: 510-540-7596   skype: kcoylenet
fx.: 510-848-3913
mo.: 510-435-8234






  



--
---
Karen Coyle / Digital Library Consultant
kco...@kcoyle.net http://www.kcoyle.net
ph.: 510-540-7596   skype: kcoylenet
fx.: 510-848-3913
mo.: 510-435-8234



Re: [CODE4LIB] Institutional identifiers in repositories

2009-06-19 Thread Michael J. Giarlo
I try to avoid defining 'repository'.  Institutional repositories and
subject repositories like arxiv.org are clearly 'repositories', but beyond
that, you're right, it is somewhat ill-defined.  One might look to the
Kahn-Wilensky architecture [1], or the OAIS reference model [2], or even
Wikipedia [3] for definitions, but it's not clear that even the authorities
agree on what makes a repository.  It's a system.  It's network-accessible
and typically has a web interface of some sort.  Files and groups of files
sometimes known as objects tend to be deposited in them, perhaps for some
combination of management, access, or preservation.  Many run Fedora,
DSpace, and ePrints, and factor heavily in scholarly communication.  Some
are document-centric.  Some will accept anything.  To some, a learning
management system may be a repo.  To others, a content management system.

My background is in academia so my own definition is somewhat biased, but I
wouldn't say it is necessarily limited in the way you ask.  Re: the I2 page
you mention: I2's work is currently separated into a few separate
"scenarios", one of which is oriented around repositories, and that's where
the survey comes from.  The other scenarios are for library workflows and
electronic resources, so it's safe to assume that repository does not mean
ILS or OPAC or ERP system.

My hope is that folks have their own working definitions of the term and can
decide for themselves what it means.  But great question, Karen!

-Mike

1. http://www.cnri.reston.va.us/k-w.html
2. http://public.ccsds.org/publications/archive/650x0b1.pdf
3. http://en.wikipedia.org/wiki/Digital_repository



On Fri, Jun 19, 2009 at 15:15, Karen Coyle wrote:
> How do you define 'repository'? I know that's a hard question, but i'm
just
> not sure who should answer. Is it limited to places where academics store
> their own works? The I2 page on the NISO site seems to be more inclusive,
> citing "all library and publishing environments."
>
> kc
>
> Michael J. Giarlo wrote:
>>
>> The NISO I2 Working Group is surveying repository managers to
>> determine the current practices and needs of the repository community
>> regarding institutional identifiers.  We value your time and your
>> input in the process to create a standard for a new institutional
>> identifier.
>>
>> We hope that you will complete the survey which should take less than
>> 15 minutes.  The survey will remain open through Monday, July 6th.
>>
>> Here is a link to the survey:
>> http://www.surveymonkey.com/s.aspx?sm=RGQgZ3090DVrb3kFzr3P3Q_3d_3d
>>
>> Please feel free to share this message with other interested parties.
>>
>> Thanks for your participation!  (And apologies for massive
>> cross-posting; this is a fragmented community.)
>>
>> -Mike
>> Co-chair, Repositories scenario, NISO I2 Working Group
>>
>>
>>
>
>
> --
> ---
> Karen Coyle / Digital Library Consultant
> kco...@kcoyle.net http://www.kcoyle.net
> ph.: 510-540-7596   skype: kcoylenet
> fx.: 510-848-3913
> mo.: 510-435-8234
> 
>


Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Doran, Michael D
Hi Jon,

> Try putting somewhere in one of the xslt pages

Cool!  Here's the output:

Version: 1
Vendor: Apache Software Foundation
Vendor URL: http://xml.apache.org/xalan-j

-- Michael

# Michael Doran, Systems Librarian
# University of Texas at Arlington
# 817-272-5326 office
# 817-688-1926 mobile
# do...@uta.edu
# http://rocky.uta.edu/doran/
  

> -Original Message-
> From: Code for Libraries [mailto:code4...@listserv.nd.edu] On 
> Behalf Of Jon Gorman
> Sent: Friday, June 19, 2009 5:05 PM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subject: Re: [CODE4LIB] How to access environment variables in XSL
> 
> Try putting somewhere in one of the xslt pages
> 
> 
> Version:
> 
> 
> Vendor:
> 
> 
> Vendor URL:
> 
> 
> 
> Jon
> 
> On Fri, Jun 19, 2009 at 4:53 PM, Doran, Michael 
> D wrote:
> > Hi Dave,
> >
> >> What XSLT processor and programming language are you using?
> >
> > I'm embarrassed to say that I'm not sure.  I'm making 
> modifications and enhancements to already existing XSL pages 
> that are part of the framework of Ex Libris' new Voyager 7.0 
> OPAC.  This new version of the OPAC is running under Apache 
> Tomcat (on Solaris) and my assumption is that the programming 
> language is Java; however the source code for the app itself 
> is not available to me (and I'm not a Java programmer anyway, 
> so it's a moot point).  I assume also that the XSLT processor 
> is what comes with Solaris (or Tomcat?).  As you can probably 
> tell, this stuff is new to me.  I've been trying to take a 
> Sun Ed XML/XSL class for the last year, but it keeps getting 
> cancelled for lack of students.  Apparently I'm the last 
> person left in the Dallas/Fort Worth area that needs to learn 
> this stuff. ;-)
> >
> > -- Michael
> >
> > # Michael Doran, Systems Librarian
> > # University of Texas at Arlington
> > # 817-272-5326 office
> > # 817-688-1926 mobile
> > # do...@uta.edu
> > # http://rocky.uta.edu/doran/
> >
> >
> >> -Original Message-
> >> From: Code for Libraries [mailto:code4...@listserv.nd.edu] On
> >> Behalf Of Walker, David
> >> Sent: Friday, June 19, 2009 2:48 PM
> >> To: CODE4LIB@LISTSERV.ND.EDU
> >> Subject: Re: [CODE4LIB] How to access environment variables in XSL
> >>
> >> Micahael,
> >>
> >> What XSLT processor and programming language are you using?
> >>
> >> --Dave
> >>
> >> ==
> >> David Walker
> >> Library Web Services Manager
> >> California State University
> >> http://xerxes.calstate.edu
> >> 
> >> From: Code for Libraries [code4...@listserv.nd.edu] On Behalf
> >> Of Doran, Michael D [do...@uta.edu]
> >> Sent: Friday, June 19, 2009 12:44 PM
> >> To: CODE4LIB@LISTSERV.ND.EDU
> >> Subject: [CODE4LIB] How to access environment variables in XSL
> >>
> >> I am working with some XSL pages that serve up HTML on the
> >> web.  I'm new to XSL.   In my prior web development, I was
> >> accustomed to being able to access environment variables (and
> >> their values, natch) in my CGI scripts and/or via Server Side
> >> Includes.  Is there an equivalent mechanism for accessing
> >> those environment variables within an XSL page?
> >>
> >> These are examples of the variables I'm referring to:
> >>     SERVER_NAME
> >>     SERVER_PORT
> >>     HTTP_HOST
> >>     DOCUMENT_URI
> >>     REMOTE_ADDR
> >>     HTTP_REFERER
> >>
> >> In a Perl CGI script, I would do something like this:
> >>     my $server = $ENV{'SERVER_NAME'};
> >>
> >> Or in an SSI, I could do something like this:
> >>     
> >>
> >> If it matters, I'm working in: Solaris/Apache/Tomcat
> >>
> >> I've googled this but not found anything useful yet (except
> >> for other people asking the same question).  Maybe I'm asking
> >> the wrong question.  Any help would be appreciated.
> >>
> >> -- Michael
> >>
> >> # Michael Doran, Systems Librarian
> >> # University of Texas at Arlington
> >> # 817-272-5326 office
> >> # 817-688-1926 mobile
> >> # do...@uta.edu
> >> # http://rocky.uta.edu/doran/
> >>
> >
> 


Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Jon Gorman
Try putting somewhere in one of the xslt pages


Version:


Vendor:


Vendor URL:



Jon

On Fri, Jun 19, 2009 at 4:53 PM, Doran, Michael D wrote:
> Hi Dave,
>
>> What XSLT processor and programming language are you using?
>
> I'm embarrassed to say that I'm not sure.  I'm making modifications and 
> enhancements to already existing XSL pages that are part of the framework of 
> Ex Libris' new Voyager 7.0 OPAC.  This new version of the OPAC is running 
> under Apache Tomcat (on Solaris) and my assumption is that the programming 
> language is Java; however the source code for the app itself is not available 
> to me (and I'm not a Java programmer anyway, so it's a moot point).  I assume 
> also that the XSLT processor is what comes with Solaris (or Tomcat?).  As you 
> can probably tell, this stuff is new to me.  I've been trying to take a Sun 
> Ed XML/XSL class for the last year, but it keeps getting cancelled for lack 
> of students.  Apparently I'm the last person left in the Dallas/Fort Worth 
> area that needs to learn this stuff. ;-)
>
> -- Michael
>
> # Michael Doran, Systems Librarian
> # University of Texas at Arlington
> # 817-272-5326 office
> # 817-688-1926 mobile
> # do...@uta.edu
> # http://rocky.uta.edu/doran/
>
>
>> -Original Message-
>> From: Code for Libraries [mailto:code4...@listserv.nd.edu] On
>> Behalf Of Walker, David
>> Sent: Friday, June 19, 2009 2:48 PM
>> To: CODE4LIB@LISTSERV.ND.EDU
>> Subject: Re: [CODE4LIB] How to access environment variables in XSL
>>
>> Micahael,
>>
>> What XSLT processor and programming language are you using?
>>
>> --Dave
>>
>> ==
>> David Walker
>> Library Web Services Manager
>> California State University
>> http://xerxes.calstate.edu
>> 
>> From: Code for Libraries [code4...@listserv.nd.edu] On Behalf
>> Of Doran, Michael D [do...@uta.edu]
>> Sent: Friday, June 19, 2009 12:44 PM
>> To: CODE4LIB@LISTSERV.ND.EDU
>> Subject: [CODE4LIB] How to access environment variables in XSL
>>
>> I am working with some XSL pages that serve up HTML on the
>> web.  I'm new to XSL.   In my prior web development, I was
>> accustomed to being able to access environment variables (and
>> their values, natch) in my CGI scripts and/or via Server Side
>> Includes.  Is there an equivalent mechanism for accessing
>> those environment variables within an XSL page?
>>
>> These are examples of the variables I'm referring to:
>>     SERVER_NAME
>>     SERVER_PORT
>>     HTTP_HOST
>>     DOCUMENT_URI
>>     REMOTE_ADDR
>>     HTTP_REFERER
>>
>> In a Perl CGI script, I would do something like this:
>>     my $server = $ENV{'SERVER_NAME'};
>>
>> Or in an SSI, I could do something like this:
>>     
>>
>> If it matters, I'm working in: Solaris/Apache/Tomcat
>>
>> I've googled this but not found anything useful yet (except
>> for other people asking the same question).  Maybe I'm asking
>> the wrong question.  Any help would be appreciated.
>>
>> -- Michael
>>
>> # Michael Doran, Systems Librarian
>> # University of Texas at Arlington
>> # 817-272-5326 office
>> # 817-688-1926 mobile
>> # do...@uta.edu
>> # http://rocky.uta.edu/doran/
>>
>


Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Doran, Michael D
Hi Andrew,

> If you are using some sort of XSL processor in a programming 
> language (java, php, ruby) you can "assign" a variable to the
> xsl file and use the variable in the file much like you would
> in any other scripting environment.

The XSL processor is (I assume) being invoked from within the OPAC's Java 
program, but alas, I don't have access to the source code (and am not a Java 
programmer anyway).

> You can also go one step ahead and use XQuery which gives you 
> the ability to access a FLOWR based enviornment where you can
> declare variables and introduce some more advanced logic over XSL.

I'm not familiar with this, but will look into it.  Thanks.

-- Michael

# Michael Doran, Systems Librarian
# University of Texas at Arlington
# 817-272-5326 office
# 817-688-1926 mobile
# do...@uta.edu
# http://rocky.uta.edu/doran/
  

> -Original Message-
> From: Code for Libraries [mailto:code4...@listserv.nd.edu] On 
> Behalf Of Andrew Nagy
> Sent: Friday, June 19, 2009 3:05 PM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subject: Re: [CODE4LIB] How to access environment variables in XSL
> 
> If you are using some sort of XSL processor in a programming 
> language (java,
> php, ruby) you can "assign" a variable to the xsl file and 
> use the variable
> in the file much like you would in any other scripting environment.
> 
> You can also go one step ahead and use XQuery which gives you 
> the ability to
> access a FLOWR based enviornment where you can declare variables and
> introduce some more advanced logic over XSL.
> 
> Andrew
> 
> On Fri, Jun 19, 2009 at 3:44 PM, Doran, Michael D 
>  wrote:
> 
> > I am working with some XSL pages that serve up HTML on the 
> web.  I'm new to
> > XSL.   In my prior web development, I was accustomed to 
> being able to access
> > environment variables (and their values, natch) in my CGI 
> scripts and/or via
> > Server Side Includes.  Is there an equivalent mechanism for 
> accessing those
> > environment variables within an XSL page?
> >
> > These are examples of the variables I'm referring to:
> >SERVER_NAME
> >SERVER_PORT
> >HTTP_HOST
> >DOCUMENT_URI
> >REMOTE_ADDR
> >HTTP_REFERER
> >
> > In a Perl CGI script, I would do something like this:
> >my $server = $ENV{'SERVER_NAME'};
> >
> > Or in an SSI, I could do something like this:
> >
> >
> > If it matters, I'm working in: Solaris/Apache/Tomcat
> >
> > I've googled this but not found anything useful yet (except 
> for other
> > people asking the same question).  Maybe I'm asking the 
> wrong question.  Any
> > help would be appreciated.
> >
> > -- Michael
> >
> > # Michael Doran, Systems Librarian
> > # University of Texas at Arlington
> > # 817-272-5326 office
> > # 817-688-1926 mobile
> > # do...@uta.edu
> > # http://rocky.uta.edu/doran/
> >
> >
> 


Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Doran, Michael D
Hi Dave,

> What XSLT processor and programming language are you using?

I'm embarrassed to say that I'm not sure.  I'm making modifications and 
enhancements to already existing XSL pages that are part of the framework of Ex 
Libris' new Voyager 7.0 OPAC.  This new version of the OPAC is running under 
Apache Tomcat (on Solaris) and my assumption is that the programming language 
is Java; however the source code for the app itself is not available to me (and 
I'm not a Java programmer anyway, so it's a moot point).  I assume also that 
the XSLT processor is what comes with Solaris (or Tomcat?).  As you can 
probably tell, this stuff is new to me.  I've been trying to take a Sun Ed 
XML/XSL class for the last year, but it keeps getting cancelled for lack of 
students.  Apparently I'm the last person left in the Dallas/Fort Worth area 
that needs to learn this stuff. ;-)

-- Michael

# Michael Doran, Systems Librarian
# University of Texas at Arlington
# 817-272-5326 office
# 817-688-1926 mobile
# do...@uta.edu
# http://rocky.uta.edu/doran/
  

> -Original Message-
> From: Code for Libraries [mailto:code4...@listserv.nd.edu] On 
> Behalf Of Walker, David
> Sent: Friday, June 19, 2009 2:48 PM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subject: Re: [CODE4LIB] How to access environment variables in XSL
> 
> Micahael, 
> 
> What XSLT processor and programming language are you using?
> 
> --Dave
> 
> ==
> David Walker
> Library Web Services Manager
> California State University
> http://xerxes.calstate.edu
> 
> From: Code for Libraries [code4...@listserv.nd.edu] On Behalf 
> Of Doran, Michael D [do...@uta.edu]
> Sent: Friday, June 19, 2009 12:44 PM
> To: CODE4LIB@LISTSERV.ND.EDU
> Subject: [CODE4LIB] How to access environment variables in XSL
> 
> I am working with some XSL pages that serve up HTML on the 
> web.  I'm new to XSL.   In my prior web development, I was 
> accustomed to being able to access environment variables (and 
> their values, natch) in my CGI scripts and/or via Server Side 
> Includes.  Is there an equivalent mechanism for accessing 
> those environment variables within an XSL page?
> 
> These are examples of the variables I'm referring to:
> SERVER_NAME
> SERVER_PORT
> HTTP_HOST
> DOCUMENT_URI
> REMOTE_ADDR
> HTTP_REFERER
> 
> In a Perl CGI script, I would do something like this:
> my $server = $ENV{'SERVER_NAME'};
> 
> Or in an SSI, I could do something like this:
> 
> 
> If it matters, I'm working in: Solaris/Apache/Tomcat
> 
> I've googled this but not found anything useful yet (except 
> for other people asking the same question).  Maybe I'm asking 
> the wrong question.  Any help would be appreciated.
> 
> -- Michael
> 
> # Michael Doran, Systems Librarian
> # University of Texas at Arlington
> # 817-272-5326 office
> # 817-688-1926 mobile
> # do...@uta.edu
> # http://rocky.uta.edu/doran/
> 


Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Andrew Ashton
Depending on how you're using the XSL, Cocoon->XQuery->XSL is one option -
although I don't know how Xquery would get access to your environment
variables directly.  But you could use XQuery to stream the values into the
source XML as nodes just like the rest of your data, then deal with them how
you please in the XSL.  You can use an XQuery module to store the variables
in question and import them into whatever XQueries you write.

The problem with this approach is that it locks you into a webapp
architecture that you might not want to deal with, though I'd be curious to
hear recommendations for non-Cocoon implementations of XQuery for webapps.

-Andy

> 
> On Fri, Jun 19, 2009 at 3:44 PM, Doran, Michael D  wrote:
> 
>> I am working with some XSL pages that serve up HTML on the web.  I'm new to
>> XSL.   In my prior web development, I was accustomed to being able to access
>> environment variables (and their values, natch) in my CGI scripts and/or via
>> Server Side Includes.  Is there an equivalent mechanism for accessing those
>> environment variables within an XSL page?
>> 
>> These are examples of the variables I'm referring to:
>>SERVER_NAME
>>SERVER_PORT
>>HTTP_HOST
>>DOCUMENT_URI
>>REMOTE_ADDR
>>HTTP_REFERER
>> 
>> In a Perl CGI script, I would do something like this:
>>my $server = $ENV{'SERVER_NAME'};
>> 
>> Or in an SSI, I could do something like this:
>>
>> 
>> If it matters, I'm working in: Solaris/Apache/Tomcat
>> 
>> I've googled this but not found anything useful yet (except for other
>> people asking the same question).  Maybe I'm asking the wrong question.  Any
>> help would be appreciated.
>> 
>> -- Michael
>> 
>> # Michael Doran, Systems Librarian
>> # University of Texas at Arlington
>> # 817-272-5326 office
>> # 817-688-1926 mobile
>> # do...@uta.edu
>> # http://rocky.uta.edu/doran/
>> 
>> 


Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Jonathan Rochkind
Kinda the point of XSL is simply transforming XML as input into 
something (html, xml, or other) as output.


The "right" way to do this, if you have any control over what's 
generating the XML that is "input" to your XSL, is to have relevant (or 
all) environmental variables included in the XML that's input the XSL in 
the first place.


There maybe other ways that aren't as elegant, as everyone else has 
said, it will depend on your particular environment. Because that's not 
really what XSL is designed to do.


Jon Gorman wrote:

Hi Michael,

Only have time for a quick response.  Like Jonathan Rochkind said,
there's not really a built in way into XSL to refer to these things
like some other languages. The reason is typically the XSL processor
is used by some other language/system to transform a stylesheet, not
connected directly to the web server.  The cgi example works because
you have mod_perl or something similar to set the variables.  In this
case tomcat and the underlying java programs are going to be a layer
between the web server and the actual XSL sheets.  (There's another
model where you send both the xml and the xsl to the client and the
client transforms it, but that's been problematic iin the past).

That being said, XSL does support parameters that can be passed into
the stylesheet.  I know I've used java-type environments that used XSL
that made sure to pass on any "environmental" and http-based variables
in the stylesheet.  At this point perhaps tomcat and saxon (I'd guess
it's using saxon, maybe xalan) might be more tightly intergrated.

Given the application I would suspect you're using though, I wouldn't
count on those types of variables being passed in.  If they are, they
might not be documentted.  If you poke around the xsl files and they
are, you might see something like xsl:param name="myils:server" or
something..  The trick I've seen with a lot of these that you'll have
to explicitly state the parameter at the top in order to use it.
Various parsers might have a way to have the processor dump out what
parameters were passed into it, but I can't think of any off hand.
Many processors have system-properties, and in fact I think they all
are supposed to implement ...system-property('xsl:vendor').  I seem to
remember some processor extending this function to include some other
properties.

You might also want to look at
http://www.mulberrytech.com/xsl/xsl-list/processor-version.xsl (view
source) for some ideas on how to get a better grip on what XSLT
processor is being used.

(The XSL FAQ is long and a little confusing, but has gret nuggets of
information).
http://www.dpawson.co.uk/xsl/sect2/sect21.html


Sorry I can't be of more help.

Jon Gorman

  


Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Jon Gorman
Hi Michael,

Only have time for a quick response.  Like Jonathan Rochkind said,
there's not really a built in way into XSL to refer to these things
like some other languages. The reason is typically the XSL processor
is used by some other language/system to transform a stylesheet, not
connected directly to the web server.  The cgi example works because
you have mod_perl or something similar to set the variables.  In this
case tomcat and the underlying java programs are going to be a layer
between the web server and the actual XSL sheets.  (There's another
model where you send both the xml and the xsl to the client and the
client transforms it, but that's been problematic iin the past).

That being said, XSL does support parameters that can be passed into
the stylesheet.  I know I've used java-type environments that used XSL
that made sure to pass on any "environmental" and http-based variables
in the stylesheet.  At this point perhaps tomcat and saxon (I'd guess
it's using saxon, maybe xalan) might be more tightly intergrated.

Given the application I would suspect you're using though, I wouldn't
count on those types of variables being passed in.  If they are, they
might not be documentted.  If you poke around the xsl files and they
are, you might see something like xsl:param name="myils:server" or
something..  The trick I've seen with a lot of these that you'll have
to explicitly state the parameter at the top in order to use it.
Various parsers might have a way to have the processor dump out what
parameters were passed into it, but I can't think of any off hand.
Many processors have system-properties, and in fact I think they all
are supposed to implement ...system-property('xsl:vendor').  I seem to
remember some processor extending this function to include some other
properties.

You might also want to look at
http://www.mulberrytech.com/xsl/xsl-list/processor-version.xsl (view
source) for some ideas on how to get a better grip on what XSLT
processor is being used.

(The XSL FAQ is long and a little confusing, but has gret nuggets of
information).
http://www.dpawson.co.uk/xsl/sect2/sect21.html


Sorry I can't be of more help.

Jon Gorman


Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Andrew Nagy
If you are using some sort of XSL processor in a programming language (java,
php, ruby) you can "assign" a variable to the xsl file and use the variable
in the file much like you would in any other scripting environment.

You can also go one step ahead and use XQuery which gives you the ability to
access a FLOWR based enviornment where you can declare variables and
introduce some more advanced logic over XSL.

Andrew

On Fri, Jun 19, 2009 at 3:44 PM, Doran, Michael D  wrote:

> I am working with some XSL pages that serve up HTML on the web.  I'm new to
> XSL.   In my prior web development, I was accustomed to being able to access
> environment variables (and their values, natch) in my CGI scripts and/or via
> Server Side Includes.  Is there an equivalent mechanism for accessing those
> environment variables within an XSL page?
>
> These are examples of the variables I'm referring to:
>SERVER_NAME
>SERVER_PORT
>HTTP_HOST
>DOCUMENT_URI
>REMOTE_ADDR
>HTTP_REFERER
>
> In a Perl CGI script, I would do something like this:
>my $server = $ENV{'SERVER_NAME'};
>
> Or in an SSI, I could do something like this:
>
>
> If it matters, I'm working in: Solaris/Apache/Tomcat
>
> I've googled this but not found anything useful yet (except for other
> people asking the same question).  Maybe I'm asking the wrong question.  Any
> help would be appreciated.
>
> -- Michael
>
> # Michael Doran, Systems Librarian
> # University of Texas at Arlington
> # 817-272-5326 office
> # 817-688-1926 mobile
> # do...@uta.edu
> # http://rocky.uta.edu/doran/
>
>


Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Kyle Banerjee
The low tech way to accomplish this is to use PERL to create the XSLT
on the fly. You can just jam the values directly in or define an


kyle


On Fri, Jun 19, 2009 at 12:44 PM, Doran, Michael D wrote:
> I am working with some XSL pages that serve up HTML on the web.  I'm new to 
> XSL.   In my prior web development, I was accustomed to being able to access 
> environment variables (and their values, natch) in my CGI scripts and/or via 
> Server Side Includes.  Is there an equivalent mechanism for accessing those 
> environment variables within an XSL page?
>
> These are examples of the variables I'm referring to:
>    SERVER_NAME
>    SERVER_PORT
>    HTTP_HOST
>    DOCUMENT_URI
>    REMOTE_ADDR
>    HTTP_REFERER
>
> In a Perl CGI script, I would do something like this:
>    my $server = $ENV{'SERVER_NAME'};
>
> Or in an SSI, I could do something like this:
>    
>
> If it matters, I'm working in: Solaris/Apache/Tomcat
>
> I've googled this but not found anything useful yet (except for other people 
> asking the same question).  Maybe I'm asking the wrong question.  Any help 
> would be appreciated.
>
> -- Michael
>
> # Michael Doran, Systems Librarian
> # University of Texas at Arlington
> # 817-272-5326 office
> # 817-688-1926 mobile
> # do...@uta.edu
> # http://rocky.uta.edu/doran/
>
>



-- 
--
Kyle Banerjee
Digital Services Program Manager
Orbis Cascade Alliance
baner...@uoregon.edu / 503.999.9787


Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Walker, David
Micahael, 

What XSLT processor and programming language are you using?

--Dave

==
David Walker
Library Web Services Manager
California State University
http://xerxes.calstate.edu

From: Code for Libraries [code4...@listserv.nd.edu] On Behalf Of Doran, Michael 
D [do...@uta.edu]
Sent: Friday, June 19, 2009 12:44 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: [CODE4LIB] How to access environment variables in XSL

I am working with some XSL pages that serve up HTML on the web.  I'm new to 
XSL.   In my prior web development, I was accustomed to being able to access 
environment variables (and their values, natch) in my CGI scripts and/or via 
Server Side Includes.  Is there an equivalent mechanism for accessing those 
environment variables within an XSL page?

These are examples of the variables I'm referring to:
SERVER_NAME
SERVER_PORT
HTTP_HOST
DOCUMENT_URI
REMOTE_ADDR
HTTP_REFERER

In a Perl CGI script, I would do something like this:
my $server = $ENV{'SERVER_NAME'};

Or in an SSI, I could do something like this:


If it matters, I'm working in: Solaris/Apache/Tomcat

I've googled this but not found anything useful yet (except for other people 
asking the same question).  Maybe I'm asking the wrong question.  Any help 
would be appreciated.

-- Michael

# Michael Doran, Systems Librarian
# University of Texas at Arlington
# 817-272-5326 office
# 817-688-1926 mobile
# do...@uta.edu
# http://rocky.uta.edu/doran/


Re: [CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Jonathan Rochkind
There is no way to do that inherent to XSL.  There _might_ be a way to 
do that in the particular environment you are processing your XML.  
Which I guess is a Java XSL processor?  I'd reccommend finding the 
listserv for the Java XSL processor you're using, and asking there. 
There might not be a way to do it.


Doran, Michael D wrote:

I am working with some XSL pages that serve up HTML on the web.  I'm new to 
XSL.   In my prior web development, I was accustomed to being able to access 
environment variables (and their values, natch) in my CGI scripts and/or via 
Server Side Includes.  Is there an equivalent mechanism for accessing those 
environment variables within an XSL page?

These are examples of the variables I'm referring to:
SERVER_NAME
SERVER_PORT
HTTP_HOST
DOCUMENT_URI
REMOTE_ADDR
HTTP_REFERER

In a Perl CGI script, I would do something like this:
my $server = $ENV{'SERVER_NAME'};

Or in an SSI, I could do something like this:


If it matters, I'm working in: Solaris/Apache/Tomcat

I've googled this but not found anything useful yet (except for other people 
asking the same question).  Maybe I'm asking the wrong question.  Any help 
would be appreciated.

-- Michael

# Michael Doran, Systems Librarian
# University of Texas at Arlington
# 817-272-5326 office
# 817-688-1926 mobile
# do...@uta.edu
# http://rocky.uta.edu/doran/
 
  


[CODE4LIB] How to access environment variables in XSL

2009-06-19 Thread Doran, Michael D
I am working with some XSL pages that serve up HTML on the web.  I'm new to 
XSL.   In my prior web development, I was accustomed to being able to access 
environment variables (and their values, natch) in my CGI scripts and/or via 
Server Side Includes.  Is there an equivalent mechanism for accessing those 
environment variables within an XSL page?

These are examples of the variables I'm referring to:
SERVER_NAME
SERVER_PORT
HTTP_HOST
DOCUMENT_URI
REMOTE_ADDR
HTTP_REFERER

In a Perl CGI script, I would do something like this:
my $server = $ENV{'SERVER_NAME'};

Or in an SSI, I could do something like this:


If it matters, I'm working in: Solaris/Apache/Tomcat

I've googled this but not found anything useful yet (except for other people 
asking the same question).  Maybe I'm asking the wrong question.  Any help 
would be appreciated.

-- Michael

# Michael Doran, Systems Librarian
# University of Texas at Arlington
# 817-272-5326 office
# 817-688-1926 mobile
# do...@uta.edu
# http://rocky.uta.edu/doran/
 


Re: [CODE4LIB] Institutional identifiers in repositories

2009-06-19 Thread Karen Coyle
How do you define 'repository'? I know that's a hard question, but i'm 
just not sure who should answer. Is it limited to places where academics 
store their own works? The I2 page on the NISO site seems to be more 
inclusive, citing "all library and publishing environments."


kc

Michael J. Giarlo wrote:

The NISO I2 Working Group is surveying repository managers to
determine the current practices and needs of the repository community
regarding institutional identifiers.  We value your time and your
input in the process to create a standard for a new institutional
identifier.

We hope that you will complete the survey which should take less than
15 minutes.  The survey will remain open through Monday, July 6th.

Here is a link to the survey:
http://www.surveymonkey.com/s.aspx?sm=RGQgZ3090DVrb3kFzr3P3Q_3d_3d

Please feel free to share this message with other interested parties.

Thanks for your participation!  (And apologies for massive
cross-posting; this is a fragmented community.)

-Mike
Co-chair, Repositories scenario, NISO I2 Working Group


  



--
---
Karen Coyle / Digital Library Consultant
kco...@kcoyle.net http://www.kcoyle.net
ph.: 510-540-7596   skype: kcoylenet
fx.: 510-848-3913
mo.: 510-435-8234



[CODE4LIB] Institutional identifiers in repositories

2009-06-19 Thread Michael J. Giarlo
The NISO I2 Working Group is surveying repository managers to
determine the current practices and needs of the repository community
regarding institutional identifiers.  We value your time and your
input in the process to create a standard for a new institutional
identifier.

We hope that you will complete the survey which should take less than
15 minutes.  The survey will remain open through Monday, July 6th.

Here is a link to the survey:
http://www.surveymonkey.com/s.aspx?sm=RGQgZ3090DVrb3kFzr3P3Q_3d_3d

Please feel free to share this message with other interested parties.

Thanks for your participation!  (And apologies for massive
cross-posting; this is a fragmented community.)

-Mike
Co-chair, Repositories scenario, NISO I2 Working Group


Re: [CODE4LIB] Digital imaging questions

2009-06-19 Thread Jason Stirnaman
> and then write a parser (in Python or Ruby) that
> will read the values from that spreadsheet and produce a dublin_core.xml

Sai,

That work has already been done in PHP: http://tds.terkko.helsinki.fi/utils/ I 
just used it for a small project. I tweaked it a tiny bit and tried to clarify 
the documentation, but otherwise it works really well.
Regarding the DSpace metadata registry, I'd recommend sending your question to 
dspace-tech maillist.

Jason
-- 



>>> On 6/18/2009 at 1:38 PM, in message
<97d9c0c70906181138x4e15e044q939ed862f9e11...@mail.gmail.com>, Andrew Hankinson
 wrote:
> I'm pretty sure you can add extra fields to the dublin_core.xml file and
> import it. I think I did something like this a few years ago, but I'm a bit
> fuzzy on the details.
> For the metadata creation, it might be worth your while to save the Excel
> spreadsheet to a CSV file and then write a parser (in Python or Ruby) that
> will read the values from that spreadsheet and produce a dublin_core.xml
> file. If you gather the photo files in the same location,
> you can then use the DSpace bulk importer to import everything into
> your collection.
> 
> See here:
> http://www.tdl.org/wp-content/uploads/2009/04/DSpaceBatchImportFormat.pdf 
> 
> You may be able to add extra fields to the search index. See here:
> http://wiki.dspace.org/index.php/Modify_search_fields 
> 
> On Thu, Jun 18, 2009 at 1:32 PM, Deng, Sai  wrote:
> 
>> Andrew and Yan,
>> Thanks for the reply and the information!
>>
>> About DSpace metadata registry, we can add new schema or new elements to
>> it, but the elements won’t be searchable, right? (We can change the
>> input-forms.xml to make it display in the submission workflow if we will
>> have item by item submission.)
>>
>> In our case, we already have the herbarium metadata in excel sheet created
>> by Biology Dept. They are now in loose Darwin Core and kind of free style.
>> If I would like to do data transformation (transform it to a mixture of DC
>> and Darwin Core possibly) and batch import the xml to DSpace, how to
>> proceed? Where should I add the Darwin Core metadata (in the dublin_core.xml
>> as well)? It seems that it only has dcvalue element.
>>
>> Sai
>>
>> -Original Message-
>> From: Code for Libraries [mailto:code4...@listserv.nd.edu] On Behalf Of
>> Andrew Hankinson
>> Sent: Thursday, June 18, 2009 11:03 AM
>> To: CODE4LIB@LISTSERV.ND.EDU 
>> Subject: Re: [CODE4LIB] Digital imaging questions
>>
>> Hi Sai,
>> "Archival Quality Images" has some meaning, but it might be helpful to look
>> up a standard and start your investigation for a new camera based on the
>> recommendations of that standard. You might find this page from the Library
>> of Congress helpful:
>>
>> http://www.digitalpreservation.gov/formats/content/still.shtml 
>>
>> I think your indication that RAW/TIFF is a pretty safe bet, but being able
>> to point to an actual standard might make your case for a new camera a bit
>> more convincingly.  Other factors to take into account (other than
>> megapixels and format) are color reproduction, image 'noise'
>> specifications,
>> DPI, lighting, (and probably many other things).
>>
>> For DSpace you don't even need to map the elements of Dublin Core to
>> DarwinCore. Dspace has the ability to input different schema in its
>> metadata
>> registry. You can then modify the "inputforms.xml" file in the Dspace
>> config
>> directory to add the appropriate fields for the additional metadata fields.
>>
>> Hope this helps!
>> -Andrew
>>
>> On Thu, Jun 18, 2009 at 10:33 AM, Deng, Sai  wrote:
>>
>> > Hi, list,
>> >
>> >
>> >
>> > A while ago, I read some interesting discussion on how to use camera to
>> > produce archival-quality images from this list. Now, I have some imaging
>> > questions and I think this might be a good list to turn to. Thank you in
>> > advance! We are trying to add some herbarium images to our DSpace. The
>> > specimen pictures will be taken at the Biology department and the library
>> is
>> > responsible for depositing the images and transferring/mapping/adding
>> > metadata. On the testing stage, they use Fujifilm FinePix S8000fd digital
>> > camera
>> >
>> > (
>> >
>> 
> http://www.fujifilmusa.com/support/ServiceSupportSoftwareContent.do?dbid=8747 
> 16&prodcat=871639&sscucatid=664260
>> ).
>> > It produces 8 megapixel images, and it doesn't have raw/tiff support. It
>> > seems that it cannot produce archival quality images. Before we persuade
>> the
>> > Biology department to switch their camera, I want to make sure it is
>> > absolutely necessary. The pictures they took look fine with human eyes,
>> see
>> > an example at:
>> >
>> http://library.wichita.edu/techserv/test/herbarium/Astenophylla1-02710.jpg 
>> >
>> > In order to make master images from a camera, it should be capable of
>> > producing raw or tiff images with 12 or above megapixels?
>> >
>> >
>> >
>> > A related archiving question, the biology field standard is DarwinCore,
>> > however, DSpace d