Access Keys:
Skip to content (Access Key - 0)
My Area (Access Key - 2)


Toggle Sidebar
Your Rating: Results: PatheticBadOKGoodOutstanding! 1 rates

Labels

marcit marcit Delete
automate automate Delete
sfx sfx Delete
elympics elympics Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

MARCIt Cron-able Script

Tags: , , ,
Last Updated: Feb 19, 2010 17:26


  • Description

    cron_marcit.cgi http://www.exlibrisgroup.org/download/attachments/26739622/cron_marcit.cgi is a PERL script that automates the activation of the marcit process so that marcit can be cronned. It interacts with the SFX Admin web interface in much the same way that library staff do. This way if Ex Libris changes the underlying scripts, the process continues to work. In theory, you could modify this to run with the manual export, but this particular instance is set up to run with a profile.


  • Author: Mark Dehmlow
  • Additional author(s):
  • Institution: University of Notre Dame
  • Year: 2010
  • License: GNU GPL version 3, Copyright 2010 University of Notre Dame/Hesburgh Libraries
  • Link to terms: http://www.gnu.org/licenses/gpl-3.0.html
  • Skill required for using this code:
    basic

State

Stable

Programming language

PERL

SFX

This uses standard PERL modules that should be installed with SFX.

Download

http://www.exlibrisgroup.org/download/attachments/26739622/cron_marcit.cgi

Using the following Ex Libris open interfaces

Open Source Programming Languages

Release notes

Version 1.0 - Production Release

Installation instructions

Place the cron_marcit.cgi cgi script in the sfxadmin directory. I typically create a local directory anywhere I put custom scripts so as to differentiate them from the core program.

Make sure that the first line, the path to PERL is correct for your SFX server. You can get this by typing 'which perl' at the command line.

$config->{'sfx_admin_base_url'} = 'http://url:8889/instance/sfxadmin';
$config->{'uname'} = 'sfx admin username';
$config->{'pword'} = 'sfx admin password';
$config->{'file_prefix'} = 'filename prefix you use for marcit records';
$config->{'profile_name'} = 'the name of your marcit profile';
$config->{'record_format'} = 'the record format you select MARC, ALEPH_SEQ, etc.';
$config->{'notification_email'} = 'an email address for someone to get feedback about how the script ran';
$config->{'compare'} = 1; 
# this should be 1 to allow for holdings comparison, or 0 for no compare

If you set the compare variable to 1, you will want to create a file in the directory called compare_file and enter the file name of the file you would like to script to use for the initial comparison, e.g. marit-e-collection.20100210152343

If you cron this, you will want it to run under the SFX user related to the specific instance. The script searches for the home directory to write out to a file where the final record data package will reside.

Known issues

None


Comments

Text...

Page Attachments

File NameCommentSizeNumber of Downloads
cron_marcit.cgiMARCIt Automated Script5 kB51

Added by Mark Dehmlow on Feb 10, 2010 22:46, last edited by Mark Dehmlow on Feb 19, 2010 17:26

Adaptavist Theme Builder Powered by Atlassian Confluence