Giter VIP home page Giter VIP logo

marcgedit's Introduction

MARCGedit

An optional MARCMaker and MARCBreaker Editor for Linux environment (Debian). MARC Gedit is powered by Gedit text editor.

MARCGedit works with the following technology:

  • Gedit - official text editor of the GNOME desktop environment
  • The MARC::* - series of modules create a simple object-oriented abstraction of MARC record handling.
  • MARC::File::MARCMaker - work with MARCMaker/MARCBreaker records
  • Class::Accesor - Perl module that automatically generates accessors
  • Zenity - display graphical dialog boxes from shell scripts
  • GtkSourceView - shared libraries for the GTK+ syntax highlighting widget

You need to install the following modules (debian environment):

$ apt-get install libmarc-record-perl libmarc-file-marcmaker-perl zenity zenity-common gedit gedit-common gedit-plugins libclass-accessor-perl

Running the application locally

# Clone repository or download ZIP file
$ git clone https://github.com/hecaxmmx/MARCGedit.git
$ unzip /MARCGedit-master.zip
$ cd MARCGedit

# Install manually
$ cp snippets/. ~/.config/gedit/snippets
$ cp tools/. ~/.config/gedit/tools
$ cp marc.lang ~/.local/share/gtksourceview-3.0/language-specs
$ ./gsettings_gedit.sh

# Or use the install script for local user
$ bash install.sh

Note: If snippets and tools directories does not exist please create manually.

Setting Gedit (only if gsetting does not work properly)

  1. Open Gedit text editor normally
  2. Enable External Tools, goto Preferences -> Plugins -> External Tools
  3. Enable Snippets, goto Preferences -> Plugins -> Snippets
  4. Enable draw spaces, goto Preferences -> Plugins -> Draw spaces
  5. Enable line number, goto Preferences -> View -> Display line numbers
  6. Enable highlight line, goto Preferences -> View -> Highlight current line
  7. Choose View -> Highlight -> MARC (This is required)

Using MARCGedit

  1. Open Gedit
  2. Choose View -> Highlight -> MARC
  3. Insert a book record
  • Type the word "bibrecords" and press tab button
  • A popup will show up with all options
  • Select Book
  • Test with another type of record
  1. Insert new fixed field
  • Type "builder008" and press tab button
  • A popup will show up with all options
  • Select Bib>008 Book (builder008)
  • Press tab button to move between coding positions
  • Change data for each position (data coded in OCLC format)
  1. Insert new leader
  • Type "builderLDR" and press tab button
  • A popu will show up with all options
  • Select LDR>Book (builderLDR)
  • Press tab button to move between coding positions
  1. Convert MARC Maker to MARC
  • Go to Tools -> External Tools -> MARC Maker

Support for Koha Rancor Editor

  1. Open Gedit
  2. Choose View -> Highlight -> MARC
  3. Insert a book record
  • Type the word "rancor" and press tab button
  • A popup will show up with all options
  • Select rancor->Book.

SNIPPETS

MARCGedit use the Gedit snippets plugin The file marc.xml needs to be copied to /usr/share/gedit/plugins/snippets or ~/.config/gedit/snippets directory. Snippets allows you to introduce MARC records or fixed fields to the current text.

TAGS FILES (Deprecated)

Tags plugin no more works in Gedit. The tags needs to be compresed in ".tags.gz" format. Once compresed, you can copy the gz files to one of this two directories: /usr/share/gedit/plugins/taglist or ~/.gnome2/gedit/taglist

HIGHLIGHT MARCGedit

The highlight syntax of MARCMaker is activated if you use marc.lang file. You need to copy this file to /usr/share/gtksourceview-3.0/language-specs or ~/.local/share/gtksourceview-3.0/language-specs directory

EXTERNAL TOOLS

External tools plugin allows to execute the tools created for MARCGedit listed below:

  • MARCMaker -> convert MARCMaker records to MARC binary (ISO 2709) [Ctrl-Alt-M]
  • MARCBreaker -> convert MARC binary (ISO 2709) to MARCMaker in plain text [Ctrl-Alt-B]
  • Field 005 Date and Time -> generate date in format of Representation of Dates and Times (ISO 8601) [Ctrl-Alt-D]
  • Change case -> Changes the case of characters in the selection [Ctrl-Alt-C]
  • Insert Double Dagger -> Insert double dagger for Rancor records as subfield delimiter [Shift+Ctrl+D]

To execute those tools you need to go to Tools -> External Tools or execute by shortcut key.

marcgedit's People

Contributors

hecaxmmx avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

satiata

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.