simple, terminal-based scripts
I have made a number of simple, terminal-based scripts available for downloading from the local archive. From the distribution’s README file:
This distribution includes a set of terminal-based scripts to
manage a MyLibrary instance. Its primary purpose is to
demonstrate how to use some of the MyLibrary modules.As such, the scripts allow you to manage facets, terms,
locations, resources. When it comes to the first three, they
allow you to create, find, edit, and delete them.When it comes to resources, the scripts allow not only creating,
finding, editing, and deleting, but it also allows you to import
data via OAI from the Directory of Open Access Journals as well
as the Infomotions Image Gallery. They also support exporting
content as RDF, indexing the content with swish-e, and searching
the swish-e index.Hackers will want to also take a look at the file named
subroutines.pl because it contains a number of things used in
just about every script.Finally, remember, MyLibrary is not really about resources.
Instead, it is about creating relationships between people
(patrons and librarians) and resources. Morover, it can also be
about creating relationships between people and people, or
resources and resources. All of this is done by: 1) creating a
set of facet/term combinations, 2) assigning the combinations to
things (people or resources), and finally, 3) creating reports
from the database against those things. A traditionan library
subject page is just one example of a report. Sets of RDF files
are another. Content to be indexed is a third. This list is only
as long as your imagination combined with the principles of
librarianship.Here’s what you will find in this distribution, and most of them
can be run from the command line without the need of the menu
program:
- main-menu.pl - a rudimentary menu
- manage-facets.pl - create, find, edit, and delete facets
- manage-terms.pl - create, find, edit, and delete terms
- manage-locations.pl - create, find, edit, and delete locations
- manage-resources.pl - create, find, edit, and delete resources as well as report on them
- doaj2mylibrary.pl - import DOAJ content into MyLibrary
- images2mylibrary.pl - import Infomotions Image Gallery into MyLibrary
- index-resources.cfg - a swish-e configuration file
- resources2swish.pl - read resources and export for swish-e
- index-resources.pl - index resources with swish-e
- search.pl - query a swish-e index and display results
- resources2rdf.pl - dump resources as simple RDF/XML
- subroutines.pl - commonly used functions throughout the system
- README - this file
- LICENSE - the GNU Public License
Enjoy, and happy hacking.
Discussion Area - Leave a Comment
You must be logged in to post a comment.