Voyage meets MeLCat: MC’ing the Introductions. MeLCat extract sequences Voyager bibout.pl bib extract patout.pl today’s extract yesterday’s extract patdiff.pl.

Slides:



Advertisements
Similar presentations
CC SQL Utilities.
Advertisements

Logging In Go to web site:
VOYAGER REQUEST FORMS REVIEW. Login Blocks & Request Errors.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
A Strand of Perls: Some Home Grown Utilities. Our New Books List Call Number Sorting Getting Operator Profiles QPID – Quick Patron Information Dump (cupid…)
Python and Web Programming
A Guide to MySQL 3. 2 Objectives Start MySQL and learn how to use the MySQL Reference Manual Create a database Change (activate) a database Create tables.
Perl DBI Scripting with the ILS Roy Zimmer Western Michigan University.
Voyager Developer Meeting March 9-10, 2011 Chicago, IL Voyager Developer Meeting March 9-10, 2011 Chicago, IL Michael Doran, Systems Librarian University.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
This presentation will guide you though the initial stages of installation, through to producing your first report Click your mouse to advance the presentation.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
A Guide to SQL, Eighth Edition Chapter Three Creating Tables.
FireRMS SQL Audit, Archiving & Purging Presented by Laura Small FireRMS Quality Assurance.
CSCI 6962: Server-side Design and Programming JDBC Database Programming.
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
MARC 10.5 Update John Harvey. MARC 10.5 Changes  Backup Scripts restructured  Added a script to generate scripts outside of MARC  Generate Scripts.
LBTO IssueTrak User’s Manual Norm Cushing version 1.3 August 8th, 2007.
Gadgets & More…. “Date Range” Gadgets Allows you to choose a specific date, before or after a date or a range of dates using the Workflows calendar.
What’s New in VRS? GUGM May 15, 2008 Presenter: Kelly P. Robinson GIL Service Georgia State University
Automated OUTLAY REPORT. The is an Excel spreadsheet which is used to track all funds related to the project, from beginning to end.
South Dakota Library Network ALEPH v21 Staff User Upgrade Information Circulation and ILL South Dakota Library Network 1200 University, Unit 9672 Spearfish,
MySQL + PHP.  Introduction Before you actually start building your database scripts, you must have a database to place information into and read it from.
Weeding in ALEPH Library Staff Training © South Dakota Library Network, 2013 ©Ex Libris (USA), 2011 Modified for SDLN Version
JavaScript, Fourth Edition
South Dakota Library Network ALEPH Basic Circulation Training Patrons South Dakota Library Network 1200 University, Unit 9672 Spearfish, SD
Moodle (Course Management Systems). Assignments 1 Assignments are a refreshingly simple method for collecting student work. They are a simple and flexible.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
Let VRS Work for You! ELUNA Conference 2008 Presenter: Kelly P. Robinson GIL Service Georgia State University
Credit Union National Association Installing and Uploading Project Zip Code.
1 OPOL Training (OrderPro Online) Prepared by Christina Van Metre Independent Educational Consultant CTO, Business Development Team © Training Version.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Writing macros and programs for Voyager cataloging Kathryn Lybarger ELUNA 2013 May 3, #ELUNA2013.
CREATING TEMPLATES CREATING CUSTOM CHARACTERS IMPORTING BATCH DATA SAVING DATA & TEMPLATES CREATING SERIES DATA PRINTING THE DATA.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
1 Chapter 9 – Cookies, Sessions, FTP, and More spring into PHP 5 by Steven Holzner Slides were developed by Jack Davis College of Information Science.
ITCS373: Internet Technology Lecture 5: More HTML.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
A Guide to MySQL 3. 2 Introduction  Structured Query Language (SQL): Popular and widely used language for retrieving and manipulating database data Developed.
When I want to work with SQL, I start off as if I am doing a regular query.
Chapter Five Advanced File Processing. 2 Lesson A Selecting, Manipulating, and Formatting Information.
Automating a Vendor File Load Process with Perl and Shell Scripting Roy Zimmer Western Michigan University.
Customer Service Website. What’s so great about it? Latest information Stock status Pricing Barcodes numbers Back / Forward orders Place.
How to Setup Scan to on most Sharp Models.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
Navigation: If the tutorial opens up in your web browser, simply click your mouse to advance to the next slide. Use the “Backspace”
SAP R/3 User Administration1. 2 User administration in a productive environment is an ongoing process of creating, deleting, changing, and monitoring.
This was written with the assumption that workbooks would be added. Even if these are not introduced until later, the same basic ideas apply Hopefully.
American Diploma Project Administrative Site Training.
1 Logging into the new PCard (PaymentNet) System: PAYMENTNET * Introduction * May use IE 8.0 or greater or Firefox * Do not.
American Diploma Project Administrative Site Training.
1 Chapter 6: Creating Oracle Data Block Forms. 2 Forms  Application with a graphical user interface that looks like a paper form  Used to insert, update,
Performing ISO ILL borrowing and lending requests on the same server Yoel Kortick 2008.
Work Plan for 2008 – Mid Year Client Update
SI Ad hoc report builder overview
Running a Forms Developer Application
Mail Merge for Lotus Notes and Excel User Guide
SQL and SQL*Plus Interaction
Mail Merge for Lotus Notes and Excel User Guide
Required Data Files Review
Publishing to OCLC Yoel Kortick Senior Librarian.
Data File Import / Export
ALEPH Version 22 Beginning Cataloging
SFTP file transfers for Imports and Exports.
Presentation transcript:

Voyage meets MeLCat: MC’ing the Introductions

MeLCat extract sequences Voyager bibout.pl bib extract patout.pl today’s extract yesterday’s extract patdiff.pl Pmarcexport patron extract to MeLCat

Our MeLCat implementation is unfortunately still a work in progress. The information presented here may be subject to change. The information is as current as possible, given deadline constraints. Disclaimer

The bib extract and patron extract programs, and the patron differences program, are all written in Perl and are designed to run on your Voyager box. A Unix box is assumed. Minimal modifications should be required in order to run on a Windows box. Notes

User requirements: Familiarity with a text editor, file names, and paths on your machine. You’ll need to be able to query your database (SQL provided). You will be editing the setup section at the beginning of the programs to customize settings for your institution. Notes

MeLCat extract sequences Voyager bibout.pl bib extract patout.pl today’s extract yesterday’s extract patdiff.pl Pmarcexport patron extract to MeLCat

/m1/voyager/YOURdb/sbin/Pmarcexport \ -oOUTPUTFILE \ -mBtoday-N \ -ttoday-N \ -i Bib Extract, Pmarcexport The export command is in script form in a file. Thus the parts of the command have been broken out. The trailing “\” indicates the command continues on the next line.

/m1/voyager/YOURdb/sbin/Pmarcexport \ -oOUTPUTFILE \ -mBtoday-N \ -ttoday-N \ -i Bib Extract, Pmarcexport Substitute your own values for words in upper case.

/m1/voyager/YOURdb/sbin/Pmarcexport \ -oOUTPUTFILE \ -mBtoday-N \ -ttoday-N \ -i Bib Extract, Pmarcexport The mode, m, is B, which means to select records by both create and update dates. The export target, t, gives the date range. The last parameter, i, says to ignore suppressed bib records.

/m1/voyager/YOURdb/sbin/Pmarcexport \ -oOUTPUTFILE \ -mBtoday-N \ -ttoday-N \ -i Bib Extract, Pmarcexport today-N specifies to look back N days from today At WMU, we used a value of 10,000 for our initial load. For ongoing loads, we use a value of 1, since we run our MeLCat bib extract daily.

Bib Extract, Pmarcexport problems We had problems with Pmarcexport. Our initial large bib export resulted in two files, not one! This turned out to be expected, but previously undocumented, behavior.

Bib Extract, Pmarcexport problems We had problems with Pmarcexport. Our initial large bib export resulted in two files, not one! This turned out to be expected, but previously undocumented, behavior. Had problems with record counts when a split occurred.

Bib Extract, Pmarcexport problems We had problems with Pmarcexport. Our initial large bib export resulted in two files, not one! This turned out to be expected, but previously undocumented, behavior. Had problems with record counts when a split occurred. Also had mysterious SQL error which didn’t(?) seem to affect the output. When we finalized this presentation, these issues had not yet all been resolved.

MeLCat extract sequences Voyager bibout.pl bib extract patout.pl today’s extract yesterday’s extract patdiff.pl Pmarcexport patron extract to MeLCat

bibout.pl voy_bib_export_file melcat_bib_file voy_bib_export_file is created by Voyager’s Pmarcexport program melcat_bib_file is the resulting bib file ready to be sent to MeLCat Both files are in MARC format. Bib Extract, Usage

Typically, Pmarcexport will create one output file. For large amounts of data, you may have two or more files. In that case, you can run bibout on each file, or possibly concatenate the Pmarcexport files into one for bibout to process. In this presentation, and in bibout.pl, Pmarcexport’s output is referred to as one file. Bib Extract, Usage

Two stages: test extracts and initial loads ongoing production extracts and loads The exact usage is determined via a Pmarcexport script parameter and the corresponding setting for bibout. Bib Extract, Usage

Bib Extract – What does it do? bibout reads the file created by Pmarcexport. For each bib, find and scan its mfhd(s) for fields 866, 867, and 868. These fields, if present, are added as is to the bib record. Get mfhd and item information associated with this bib record, or just mfhd data as a limited fallback when there is no item record.

Bib Extract – What does it do? Append a new field to the bib record that contains the following data: |a item id (mfhd id if no item) |b item barcode |c item status |d item type |e call number |f location |g enum info |h number of recalls This is field 999 by default.

Bib Extract – What does it do? |a item id When there is no item id, |a contains a mfhd id. This is indicated with a leading “M” in this field. Still to come: handling deleted records

Bib Extract, database access bibout needs to know how to connect to your Voyager database. At WMU, we’ve standardized on storing this information in a file, allowing for easier updates and better security. Any programs that access Voyager do not have the specific database access information in the program.

Bib Extract, database access The information you need for this is your: machine name database name (may be username) database login (password) Oracle SID [VGER | LIBR] Voyager 5’s SID is VGER; the SID for previous versions is LIBR. Use the right one for your version.

Bib Extract, database access Put this information in the file, all on one line: your.machine.name.edu/namedb/db_login/sid (namedb may be username in your situation) The slashes, “/”, belong in there, and the bib extract program will read this data so it can access Voyager. Make sure that this file contains your information, including the SID. Then we need to tell bibout where this file is, by specifying its path and the file name.

Bib Extract - which database? bibout needs to know from which database we are extracting the data. Since the database name may not equate to the user, we specify the database name separately. For example, you may be connecting to your database as a read-only user, so you would have to specify the database.

Bib Extract bibout also needs to know how many days to look back. Give it the same value, N days, that you used in the export script. This makes sure that everyone is on the same page.

Bib Extract – Which locations? We wanted to restrict, by location, the items showing up in MeLCat. Here’s a sample query to see your location codes: Select the location_codes you want, and put them in a text file, one per line.

Bib Extract – Which locations? After creating the location codes file, you need to tell bibout where this file is (the path), and the file name.

Bib Extract By default, the new field that contains the item/mfhd information is 999. If you need a different tag, you’ll need to tell bibout what that is.

MeLCat extract sequences Voyager bibout.pl bib extract patout.pl today’s extract yesterday’s extract patdiff.pl Pmarcexport patron extract to MeLCat

Patron Extract, Usage patout.pl patron_extract_file patron_extract_file is the double quoted, comma separated value format patron data retrieved from Voyager

Patron Extract – What does it do? Similar to bibout, the patron extract program (patout.pl) also looks back so many days to get patron data. Voyager is queried and the patron extract data for MeLCat is put in CSV format.

Patron Extract, Output last name, first name, middle name, patron barcode, patron group, patron exp date, WIN (WMU ID number), patron ID (Voyager internal number), delete indicator (D=delete, blank to retain), blocked (Y/N), address, exp date patron exp date is , if indefinite

Patron Extract, blocking Patron is blocked when: patron record expired before today lost items count exceeds lost limit defined in the extract recalls count exceeds recall limit defined in the extract fees due amount exceeds the maximum balance for the patron group used in the extract address record expired before today

Patron Extract, assumptions The extract uses the patron’s most recent active patron group as the patron group of record.

Patron Extract, database access The patron extract gets its Voyager database access information from the same file mentioned earlier in the bib extract part of this presentation… Database Access Put this information in the file, all on one line: your.machine.name.edu/namedb/db_login/sid (namedb may be username in your situation) The slashes, “/”, belong in there, and the bib extract program will read this data so it can access Voyager. …then we need to tell patout where this file is, by specifying its path and the file name.

Patron Extract Again, like with bibout, we need to tell patout how many days back to look to get patron data. This value will probably depend on how often your patron data is updated.

Patron Extract We discovered setting up limits by patron group to be pretty much impossible. This is because a patron group can be in multiple circ groups, with each circ group able to have different limits. So we went with across-the-board limits, and you’ll have to use a global value for the lost-limit and the recall-limit.

Patron Extract, patron groups There will probably be some patron groups that should not be in MeLCat. You’ll need to tell patout which patron groups are allowed. This is done via the patron group ID. Here’s how to get these ID numbers:

Patron Extract, patron groups Now you have a listing of patron group IDs and names. Note that fine/fee limits can be found in the Systems Administration client by clicking on Circulation, then on Policy Definitions. Record your patron group limits at each corresponding patron group ID. Remember that in Voyager, money values (U.S.) are stored in cents, so the values you enter here, divided by 100, equal the dollar amounts.

Patron Extract We also need a representative circ group for patout to do its thing. From your Sys…Admin… client, pick a circulation policy group with the most appropriate lending attributes. Now run a query to get its ID number: and let patout know what it is.

Patron Extract Finally, patout needs to know where to write the output. Specify the file path and file name. The filename will automatically have a date stamp appended. For example, if you’re using a file name of “patron.out”, you’ll end up with file names likepatron.out patron.out etc.

MeLCat extract sequences Voyager bibout.pl bib extract patout.pl today’s extract yesterday’s extract patdiff.pl Pmarcexport patron extract to MeLCat

Patron Differences Extract patdiff.pl looks at the current and the previous patron extract and puts the differences into the patron extract to be sent to MeLCat. The extract comparison is based on patron ID.

Patron Differences Extract The extract gets: new records records no longer showing up; they are marked for deletion the current version of any records with differences in them

Patron Differences Extract patdiff needs to know where to write its output file. Specify the file path and the file name.

Extracts ready! Your bib and patron extracts are now ready to be sent to MeLCat.

Thanks for listening. Questions? Picture © 2005 by Roy Zimmer