Beginners' Dance Class: http://www.youtube.com/watch?v=y64Ynur-veU
Perl turned 20 a couple of years ago. It has been with us since the Web has learned to crawl. Long before php, java beans and web application frameworks. There is tons of old perl out there, but there is also new perl code which runs on modern websites. Sometimes it is hard to find what is what.
Maurice's blog
Dance class for the absolute beginner
Submitted by Maurice on Wed, 09/01/2010 - 22:09Dancer: Avoid session altogether
Submitted by Maurice on Wed, 09/01/2010 - 20:41I found a new toy: Dancer, the minimal effort perl web framework, see http://perldancer.org. Main advantage: easy to start even without any real webapp experience, good learning curve, nice community (still somewhat small) . Dancer code looks good. Some would even say elegant.
Anyways, I just noticed that I don't even need a session. I can just load info in class variable
our $memory_cache;
rakudo on cygwin
Submitted by Maurice on Sat, 07/31/2010 - 21:16: seems to work now. I had to copy cygparrot.dll to parrot_install/bin
- Login to post comments
decider.pl
Submitted by Maurice on Tue, 05/18/2010 - 15:20We talked about the decider today. The decider is supposed to select the media resources which shall be published. We agreed to use only one algorithm. By this I mean a relatively complex decision process and NOT a simple mapping rule, as for example:
if string "alpha" in field a then publish this resource to alpha.
oaicat's implementation of ListMetadataFormats
Submitted by Maurice on Sun, 03/21/2010 - 12:26Just a little, tiny note: When you run oaicat's demo from war file (version 1.42 or so), you might actually get no response for ListMetadataFormats if parameter is missing. I mean you get an error message that the parameter is missing, while the spec clearly states that the parameter is optional.
It seems that this issue has been fixed since current demo version at http://alcme.oclc.org/oaicat and also the upgraded version (available as jar and source) on my test box responds correctly.
- Login to post comments
oaicat filesystem and update
Submitted by Maurice on Sat, 03/20/2010 - 13:16Filesystem Structure
I guess I will go for a filesystem populated with many small xml files. Each file contains one record in native format and would be named according to the objId, e.g.
objId1234567.mpx
kueId1234.mpx
mulId12345.mpx
There should be only one record per objId, so probably I do not need several directories although this might get very big directory.
Updates
I guess I could write a little perl script to update the filesystem.
Logging oaicat
Submitted by Maurice on Fri, 03/19/2010 - 12:13What happened before
So, I gave up installing tomcat on my laptop last week or so. Instead I use my ubuntu box at home now. That gave new headaches for a few evenings, but it was solvable and now it works reliably. At first I installed oaicat.war, then updated to 1.5.57 jar distribution and today, I was able to compile oaicat from source using netbeans. I guess I got my development system running. What is the next step?
Customaization Notes
I guess it is time to read the customization notes again. So where to look?
Frankly XSLT
Submitted by Maurice on Thu, 03/18/2010 - 20:50Today, Frank asked me for basic xslt and this week Andreas also showed more interest in XSLT than I expected, so I thought I write down some notes on how to get going with XSLT. I won't tell you what XSLT actually is, just info that you might be missing when you start out.
Another thing: One way of using XSLT is to convert xml to html or xhtml; i use it to transform xml data to xml data in another format.
Basic Info on XSLT
OAIcat examples
Submitted by Maurice on Thu, 03/18/2010 - 09:09Since the normal installation of the oaicat demo at http://alcme.oclc.org/oaicat/ transforms raw oai mhp xml output to nice html you cannot really see the xml quickly. Unless you install your own version and modify oaicat.properties, of course.
That's why I attach the response to Identity and ListRecord here as xml. It should make it easier to get to this xml when I am not on the one or two machines where I have oaicat running.
- Login to post comments
OAI Tools
Submitted by Maurice on Sun, 03/14/2010 - 21:50This is my list of OAI tools. In the beginning I will only post links, but as I go and learn about more about them, I will describe them a bit more:
Java
- OAICat Open Source Software OCLC
<http://www.oclc.org/research/software/oai/cat.htm> - http://sourceforge.net/projects/proai/. Last update: 2009-05-04. Seems to be used by Fedora commons: http://www.fedora-commons.org/download/2.1.1/userdocs/services/oaiprovid...
PHP4
