SlideShare a Scribd company logo
We’ll start at the ½ hour
MarcEdit Shelter-In-Place
Webinar 8: Automated
editing through scripts and
tooling
Watch Folders
Watch folders provide a separate
processing service that enables users
to attach task processes to a particular
folder or list of folders
This option is enabled and configured
within the preferences
Watcher
Configuration
Options
Supports FTP/SFTP acquisitions
Support Regular Expressions to match
specific filenames
Supports the following process types:
◦ Format Conversions
◦ Character Conversions
◦ File Joins
◦ Task Lists
Topics
A close look at the Script Maker
Working with the Script Maker
• Where can you make updates
• What kinds of changes can you make
Further automation
• Understanding the MarcEdit COM
MarcEdit Script
Wizard
MarcEdit Script Wizard provides a template approach to
automating MarcEdit
◦ What does it provide:
◦ Templates for Sorting data
◦ Templates for Making Files
◦ Templates for Breaking Files
◦ Provides a simplified method for accessing all data in the record
Understanding
how it works
Template based
◦ VB and Perl templates found in the
Application Directory/Config
directory
Template functions (MARCBREAKER)
Function Marc_Break(source, dest)
Dim obj_MB
Dim lret
if fso.FileExists(source)=false then
msgbox "Local MarcFile Could not be located. Quitting"
wscript.quit
end if
Set obj_MB=CreateObject("MARCEngine7.MARC21")
lret=obj_MB.MarcFile(source, dest)
set obj_MB=Nothing
Marc_Break=lret
end Function
Template Functions (MARCMAKER)
Function Marc_Make(source, dest)
Dim obj_MK
Set obj_MK=CreateObject("MARCEngine7.MARC21")
lret=obj_MK.MMaker(source, dest)
Set obj_MK=Nothing
Marc_Make=lret
end function
Tasks that can
be automated
• Using conditionals or not
Add/Deleting Fields
• Variable Field Data
Modify Subfield data
• Fixes some issues that historically have
happened when exporting data from III
III Corrections
Editing Scripts:
Main Loop
Do while not obj_Dest(0).AtEndOfStream
str_Data = obj_Dest(0).ReadLine
if len(trim(str_Data))=0 then
obj_Dest(1).Write Marc_String & vbcrlf
tlcount = tlcount + 1
Marc_String = ""
str_001 = ""
str_949 = ""
str_229 = ""
else
if Len(Trim(str_Data))<>0 then
Marc_String = Marc_String & str_Data & vbcrlf
End if
end if
Loop
Script Examples
Advanced
Automation
MarcEdit COM objects
◦ MARC21 Object (MARCEngine)
◦ Query Object (Z39.50 Object)
Methods/Functions
https://marcedit.reeset.net/software/api_docs7/com/
Automating the
Command Line
MarcEdit includes a command-line program called cmarcedit
◦ Command line program wraps the engine functionality,
character conversion functionality and xml processing
◦ XSLT functions require you to define each XSLT file that you wish
to use, including the MARCXML => Mnemonic xslt translation.
Command Line
Examples
Running Tasks via the Terminal. The -experimental flag is
optional but runs tasks natively and is significantly faster. This
functionality will eventually be standard.
>> cmarcedit.exe -s [sourcefile] -d [destfile] -task [fullpath to
task file]
Validating Records:
>> cmarcedit.exe -s [sourcefile] -validate
Add -clean to remove invalid records:
>> cmarcedit.exe -s [sourcefile] -validate -clean
Command to tell you if dups exist in a file:
>> cmarcedit.exe -s [sourcefile] -dups?
Command to Export Delimited values:
>>cmarcedit.exe -s 100_a_coded_test.mrk -d 001_100.txt -rules
UNIMARC_bib_001_100_coded.txt -export_delimited -D t
MarcEdit
CommandLine
http://marcedit.reeset.net/cmarcedit-exe-using-the-
command-line
And:
https://marcedit.reeset.net/learning_marcedit/book-v-
features-for-developers/chapter-4-working-with-marcedits-
command-line-tools/
MarcEdit Shelter-In-Place Webinar 8: Automated editing through scripts and tooling

More Related Content

PDF
Running Kafka On Kubernetes With Strimzi For Real-Time Streaming Applications
PPTX
Flink Streaming
PPTX
산동네 게임 DBA 이야기
PDF
Microservices in Clojure
PDF
Ekon23 (2) Kingdom-Driven-Design applied to Social Media with mORMot
PDF
MySQL GTID Concepts, Implementation and troubleshooting
PDF
Running Kafka On Kubernetes With Strimzi For Real-Time Streaming Applications
Flink Streaming
산동네 게임 DBA 이야기
Microservices in Clojure
Ekon23 (2) Kingdom-Driven-Design applied to Social Media with mORMot
MySQL GTID Concepts, Implementation and troubleshooting

What's hot (12)

PPTX
Jump Start with Apache Spark 2.0 on Databricks
ODP
An Introduction to REDIS NoSQL database
PPTX
How to document a database
PDF
Introduction to Nebula Graph, an Open-Source Distributed Graph Database
PDF
Apache spark
PDF
Apache Sentry for Hadoop security
PPT
Graph database
PDF
Evolution of MySQL Parallel Replication
PPTX
Airflow presentation
PDF
Presto: Fast SQL-on-Anything (including Delta Lake, Snowflake, Elasticsearch ...
PDF
Best practice-high availability-solution-geo-distributed-final
PPTX
Mongo db
Jump Start with Apache Spark 2.0 on Databricks
An Introduction to REDIS NoSQL database
How to document a database
Introduction to Nebula Graph, an Open-Source Distributed Graph Database
Apache spark
Apache Sentry for Hadoop security
Graph database
Evolution of MySQL Parallel Replication
Airflow presentation
Presto: Fast SQL-on-Anything (including Delta Lake, Snowflake, Elasticsearch ...
Best practice-high availability-solution-geo-distributed-final
Mongo db
Ad

Similar to MarcEdit Shelter-In-Place Webinar 8: Automated editing through scripts and tooling (18)

PDF
marcedit_discussion.pdf
PPTX
Working with the MarcEditor
PPTX
Make MarcEdit Work For You: OLC Technical Services Retreat
PDF
MarcEdit Tools and Workflows
PPTX
OLC Batch Edit Panel: Specialized Tools for Batch Editing MarcEdit
PPTX
MarcEdit - makes the life easier (BALID Training programme on Marc 21)
PPTX
MarcEdit for Illinois Library Association conference 2011
PPT
Snrg2011 6.15.1.114 herold_scott
PPTX
Terry Reese - Real-world data editing with MarcEdit
PPTX
Cataloging with MarcEdit
PPT
Marc edit and_nonmarc_data (1)
PPTX
MarcEdit Shelter-in-place Webinar 2.5: Getting Started with MarcEdit Mac
PPTX
Slides from the NASIG 2018 Preconference
PPTX
MarcEdit for Everyone with Katie Dunn
PPTX
The magic of MarcEdit, or, how I learned to stop worrying and love metadata /...
PDF
Tasks Your Business Should Automate in 2022 That Just Make Sense
PPT
Libsys 7 to koha
PPT
Marcive Documents: Catching Up and Keeping Up
marcedit_discussion.pdf
Working with the MarcEditor
Make MarcEdit Work For You: OLC Technical Services Retreat
MarcEdit Tools and Workflows
OLC Batch Edit Panel: Specialized Tools for Batch Editing MarcEdit
MarcEdit - makes the life easier (BALID Training programme on Marc 21)
MarcEdit for Illinois Library Association conference 2011
Snrg2011 6.15.1.114 herold_scott
Terry Reese - Real-world data editing with MarcEdit
Cataloging with MarcEdit
Marc edit and_nonmarc_data (1)
MarcEdit Shelter-in-place Webinar 2.5: Getting Started with MarcEdit Mac
Slides from the NASIG 2018 Preconference
MarcEdit for Everyone with Katie Dunn
The magic of MarcEdit, or, how I learned to stop worrying and love metadata /...
Tasks Your Business Should Automate in 2022 That Just Make Sense
Libsys 7 to koha
Marcive Documents: Catching Up and Keeping Up
Ad

More from Terry Reese (20)

PPTX
MarcEdit Shelter-In-Place Webinar 7: Making Regular Expressions work for you ...
PPTX
MarcEdit Shelter-In-Place Webinar 6: Regular Expressions and .NET, A Primer
PPTX
MarcEdit Shelter-In-Place Webinar 5.5: Transliterations in MarcEdit
PPTX
MarcEdit Shelter-In-Place Webinar 5: Working with MarcEdit's Linked Data Fram...
PPTX
MarcEdit Shelter-In-Place Webinar 4: Merging, Clustering, and Integrations…oh...
PPTX
Making complicated processes simple: a look at how MarcEdit 7 is expanding th...
PPTX
Rejoining the Information access landscape
PPTX
Open metadata, open systems…redrawing the library metadata landscape
PPTX
Getting Started with Regular Expressions In MarcEdit
PPTX
Fitting MarcEdit into the library software ecosystem
PPTX
Thinking about Preservation: OSUL Content Manage Workflow
PDF
The world beyond MARC: let’s focus on asking the right questions
PPTX
Reframing Public Housing: Visualization and Data Analytics in History
PPTX
#mashcat: Evolving MarcEdit: Leveraging Semantic Data in MarcEdit
PPTX
Preparing Catalogers for Linked data
PPTX
Harnessing the Lifecycle: Planning and Implementing a Strategic Digital Coll...
PPTX
Practical approaches to entification in library bibliographic data
PDF
AALL 2015: Hands on Linked Data Tools for Catalogers: MarcEdit and MARCNext
PPTX
Making RDA Easy(er) with MarcEdit
PPTX
Open Repositories 2014 Poster -- Managing Change: An Organizational Outline f...
MarcEdit Shelter-In-Place Webinar 7: Making Regular Expressions work for you ...
MarcEdit Shelter-In-Place Webinar 6: Regular Expressions and .NET, A Primer
MarcEdit Shelter-In-Place Webinar 5.5: Transliterations in MarcEdit
MarcEdit Shelter-In-Place Webinar 5: Working with MarcEdit's Linked Data Fram...
MarcEdit Shelter-In-Place Webinar 4: Merging, Clustering, and Integrations…oh...
Making complicated processes simple: a look at how MarcEdit 7 is expanding th...
Rejoining the Information access landscape
Open metadata, open systems…redrawing the library metadata landscape
Getting Started with Regular Expressions In MarcEdit
Fitting MarcEdit into the library software ecosystem
Thinking about Preservation: OSUL Content Manage Workflow
The world beyond MARC: let’s focus on asking the right questions
Reframing Public Housing: Visualization and Data Analytics in History
#mashcat: Evolving MarcEdit: Leveraging Semantic Data in MarcEdit
Preparing Catalogers for Linked data
Harnessing the Lifecycle: Planning and Implementing a Strategic Digital Coll...
Practical approaches to entification in library bibliographic data
AALL 2015: Hands on Linked Data Tools for Catalogers: MarcEdit and MARCNext
Making RDA Easy(er) with MarcEdit
Open Repositories 2014 Poster -- Managing Change: An Organizational Outline f...

Recently uploaded (20)

PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Cell Types and Its function , kingdom of life
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
master seminar digital applications in india
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Basic Mud Logging Guide for educational purpose
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Lesson notes of climatology university.
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Microbial diseases, their pathogenesis and prophylaxis
O7-L3 Supply Chain Operations - ICLT Program
Cell Types and Its function , kingdom of life
GDM (1) (1).pptx small presentation for students
master seminar digital applications in india
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Anesthesia in Laparoscopic Surgery in India
STATICS OF THE RIGID BODIES Hibbelers.pdf
Basic Mud Logging Guide for educational purpose
TR - Agricultural Crops Production NC III.pdf
Final Presentation General Medicine 03-08-2024.pptx
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPH.pptx obstetrics and gynecology in nursing
Lesson notes of climatology university.
Abdominal Access Techniques with Prof. Dr. R K Mishra
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Insiders guide to clinical Medicine.pdf
Sports Quiz easy sports quiz sports quiz
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx

MarcEdit Shelter-In-Place Webinar 8: Automated editing through scripts and tooling