Biblio-Isis
17 years agofix difference at MFN 5, 225^a
Dobrica Pavlinusic [Fri, 7 Jul 2006 20:48:57 +0000 (20:48 +0000)]
fix difference at MFN 5, 225^a

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@48 4670fa4d-42ec-0310-ab5b-a66af6943492

17 years agosane debug output
Dobrica Pavlinusic [Fri, 7 Jul 2006 10:33:33 +0000 (10:33 +0000)]
sane debug output

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@47 4670fa4d-42ec-0310-ab5b-a66af6943492

17 years agodump rec in debug also
Dobrica Pavlinusic [Fri, 7 Jul 2006 10:25:02 +0000 (10:25 +0000)]
dump rec in debug also

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@46 4670fa4d-42ec-0310-ab5b-a66af6943492

17 years agobetter logging, use Data::Dump if available [0.14]
Dobrica Pavlinusic [Thu, 6 Jul 2006 20:31:46 +0000 (20:31 +0000)]
better logging, use Data::Dump if available [0.14]

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@45 4670fa4d-42ec-0310-ab5b-a66af6943492

17 years agoskip empty results of hash_filter
Dobrica Pavlinusic [Thu, 6 Jul 2006 11:02:37 +0000 (11:02 +0000)]
skip empty results of hash_filter

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@44 4670fa4d-42ec-0310-ab5b-a66af6943492

17 years agoactually use -n argument for maximum records to dump
Dobrica Pavlinusic [Thu, 29 Jun 2006 23:20:14 +0000 (23:20 +0000)]
actually use -n argument for maximum records to dump

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@43 4670fa4d-42ec-0310-ab5b-a66af6943492

18 years agoadded -d path and -n flags
Dobrica Pavlinusic [Fri, 9 Dec 2005 14:50:52 +0000 (14:50 +0000)]
added -d path and -n flags

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@42 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agobetter support for ISIS files with null pointers (it will warn and not die)
Dobrica Pavlinusic [Sat, 12 Mar 2005 21:05:29 +0000 (21:05 +0000)]
better support for ISIS files with null pointers (it will warn and not die)

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@41 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoI use Test::More and not Test::Simple
Dobrica Pavlinusic [Tue, 1 Feb 2005 15:49:42 +0000 (15:49 +0000)]
I use Test::More and not Test::Simple

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@40 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agocarp and not croak if MST or XRF file isn't found (calling program will
Dobrica Pavlinusic [Thu, 27 Jan 2005 22:01:17 +0000 (22:01 +0000)]
carp and not croak if MST or XRF file isn't found (calling program will
receive undef from new and warning will be issued).

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@39 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agouse File::Spec in attempt to support MacPerl
Dobrica Pavlinusic [Wed, 12 Jan 2005 19:28:41 +0000 (19:28 +0000)]
use File::Spec in attempt to support MacPerl

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@38 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agore-organize directories, add CDS/ISIS manual -- part about file structure
Dobrica Pavlinusic [Fri, 7 Jan 2005 20:57:56 +0000 (20:57 +0000)]
re-organize directories, add CDS/ISIS manual -- part about file structure

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@37 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agorenamed module to Biblio::Isis
Dobrica Pavlinusic [Thu, 6 Jan 2005 20:48:07 +0000 (20:48 +0000)]
renamed module to Biblio::Isis

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@36 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agomoved *_cnt function to end of module (so that documetation ends up at end)
Dobrica Pavlinusic [Thu, 6 Jan 2005 16:27:07 +0000 (16:27 +0000)]
moved *_cnt function to end of module (so that documetation ends up at end)

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@35 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agocroak more, carp less (die on anything which is unrecoverable)
Dobrica Pavlinusic [Thu, 6 Jan 2005 00:40:07 +0000 (00:40 +0000)]
croak more, carp less (die on anything which is unrecoverable)

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@34 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years ago- make filehandles locally scoped
Dobrica Pavlinusic [Wed, 5 Jan 2005 21:23:04 +0000 (21:23 +0000)]
- make filehandles locally scoped
- changed unpack to portable big-endian (so that it works on little-endian
  machines; tested with PearPC and OpenDarwin)
- added carps where missing
- added binmode when opening files
- any argument to 002_isis.t will show debugging output

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@33 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agonew api version
Dobrica Pavlinusic [Wed, 5 Jan 2005 15:46:26 +0000 (15:46 +0000)]
new api version
- added count method (instead of calling maxmfn directly in object)
- added POD coverage test
- moved unpack_cnt to be separate method and document it

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@32 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agofixed manifest
Dobrica Pavlinusic [Sun, 2 Jan 2005 22:14:54 +0000 (22:14 +0000)]
fixed manifest

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@31 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agofix
Dobrica Pavlinusic [Sun, 2 Jan 2005 02:41:30 +0000 (02:41 +0000)]
fix

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@30 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agorenamed example script
Dobrica Pavlinusic [Sat, 1 Jan 2005 22:39:27 +0000 (22:39 +0000)]
renamed example script

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@29 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agotest read_cnt
Dobrica Pavlinusic [Sat, 1 Jan 2005 22:29:49 +0000 (22:29 +0000)]
test read_cnt

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@28 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agodocumentation improvement
Dobrica Pavlinusic [Sat, 1 Jan 2005 22:29:35 +0000 (22:29 +0000)]
documentation improvement

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@27 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agopartial fix for physically deleted records, but logic could benefit from a
Dobrica Pavlinusic [Fri, 31 Dec 2004 07:16:02 +0000 (07:16 +0000)]
partial fix for physically deleted records, but logic could benefit from a
bit more work since it's not totally complient with ISIS documentation.

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@26 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agomajor improvments and new version:
Dobrica Pavlinusic [Fri, 31 Dec 2004 05:43:20 +0000 (05:43 +0000)]
major improvments and new version:
- implement logically deleted records (really!)
- re-ordered values tests using cmp_ok so that reporting is correct,
- return record in fetch even if it's in memory (bugfix)
- removed some obsolete code

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@25 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoadd missing FDT file
Dobrica Pavlinusic [Fri, 31 Dec 2004 04:24:57 +0000 (04:24 +0000)]
add missing FDT file

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@24 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoimportant fix: identifiers should be first two characters and than ^,
Dobrica Pavlinusic [Fri, 31 Dec 2004 04:21:21 +0000 (04:21 +0000)]
important fix: identifiers should be first two characters and than ^,
otherwise, leave them alone.

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@23 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agotest to_ascii
Dobrica Pavlinusic [Fri, 31 Dec 2004 01:06:21 +0000 (01:06 +0000)]
test to_ascii

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@22 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agofetch tests
Dobrica Pavlinusic [Fri, 31 Dec 2004 00:46:33 +0000 (00:46 +0000)]
fetch tests

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@21 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoadded test data
Dobrica Pavlinusic [Thu, 30 Dec 2004 23:17:00 +0000 (23:17 +0000)]
added test data

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@20 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoadded real test (beginning of...) and changed some confesses to croak
Dobrica Pavlinusic [Thu, 30 Dec 2004 23:16:20 +0000 (23:16 +0000)]
added real test (beginning of...) and changed some confesses to croak

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@19 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoDeduce file names and extensions using glob case insesitive. This fixes
Dobrica Pavlinusic [Thu, 30 Dec 2004 22:40:53 +0000 (22:40 +0000)]
Deduce file names and extensions using glob case insesitive. This fixes
potential problem with extension names.
Extracted code to read .CNT file into read_cnt function.

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@18 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agosmall script to compare output from IsisDB with OpenISIS
Dobrica Pavlinusic [Thu, 30 Dec 2004 19:45:14 +0000 (19:45 +0000)]
small script to compare output from IsisDB with OpenISIS

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@17 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoclean up offset calculation (now works with ISIS databases from isis.dll),
Dobrica Pavlinusic [Thu, 30 Dec 2004 17:16:34 +0000 (17:16 +0000)]
clean up offset calculation (now works with ISIS databases from isis.dll),
don't re-fetch MFN if in memory allready,
dump debugging messages to STDERR

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@16 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agomostly documentation improvements, but also nicer output and field names
Dobrica Pavlinusic [Wed, 29 Dec 2004 22:46:40 +0000 (22:46 +0000)]
mostly documentation improvements, but also nicer output and field names
output (using .FDT file) in to_ascii if read_fdt is specified

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@15 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agobenchmark hash creation for various implementations
Dobrica Pavlinusic [Wed, 29 Dec 2004 20:11:34 +0000 (20:11 +0000)]
benchmark hash creation for various implementations

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@14 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoadded debug output which displays raw structures
Dobrica Pavlinusic [Wed, 29 Dec 2004 20:10:59 +0000 (20:10 +0000)]
added debug output which displays raw structures

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@13 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoadded to_hash method and hash_filter coderef to new constructor to filter
Dobrica Pavlinusic [Wed, 29 Dec 2004 20:10:11 +0000 (20:10 +0000)]
added to_hash method and hash_filter coderef to new constructor to filter
data prior to unpacking ISIS data into hash.

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@12 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agodocumentation and dependency improvements, inline Read32 to get some more
Dobrica Pavlinusic [Wed, 29 Dec 2004 17:03:52 +0000 (17:03 +0000)]
documentation and dependency improvements, inline Read32 to get some more
performance.

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@11 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoskip fields with length 0, OpenIsis produce binary junk in this case.
Dobrica Pavlinusic [Wed, 29 Dec 2004 16:04:07 +0000 (16:04 +0000)]
skip fields with length 0, OpenIsis produce binary junk in this case.

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@10 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agologically deleted records are by default skipped, but can be included using
Dobrica Pavlinusic [Wed, 29 Dec 2004 16:01:41 +0000 (16:01 +0000)]
logically deleted records are by default skipped, but can be included using
include_deleted option to new

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@9 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoanother speedup (7845.71/s)
Dobrica Pavlinusic [Wed, 29 Dec 2004 15:17:59 +0000 (15:17 +0000)]
another speedup (7845.71/s)

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@8 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoadded benchmarking script, some speedup (7029.54/s vs 5829.19/s),
Dobrica Pavlinusic [Wed, 29 Dec 2004 15:10:34 +0000 (15:10 +0000)]
added benchmarking script, some speedup (7029.54/s vs 5829.19/s),
removed left-overs from php porting (dictionaries are not supported by this module),
make dump_isis.pl arguments same as dump_openisis.pl,
renamed GetMFN to fetch

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@7 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agominor changes and cleanup, create Changes from Subversion repository log
Dobrica Pavlinusic [Tue, 28 Dec 2004 04:07:03 +0000 (04:07 +0000)]
minor changes and cleanup, create Changes from Subversion repository log

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@6 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agotest pod
Dobrica Pavlinusic [Tue, 28 Dec 2004 04:06:29 +0000 (04:06 +0000)]
test pod

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@5 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoprint number of rows
Dobrica Pavlinusic [Tue, 28 Dec 2004 04:06:04 +0000 (04:06 +0000)]
print number of rows

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@4 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoremove debugging
Dobrica Pavlinusic [Tue, 28 Dec 2004 01:48:44 +0000 (01:48 +0000)]
remove debugging

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@3 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agofirst working version:
Dobrica Pavlinusic [Tue, 28 Dec 2004 01:41:45 +0000 (01:41 +0000)]
first working version:
- add support for repeatable fields (so all hash values becomed arrays, even
  with single element)
- scripts to dump CDS/ISIS database using this module and OpenIsis
- to_ascii method which dumps ascii output of record

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@2 4670fa4d-42ec-0310-ab5b-a66af6943492

19 years agoImport of old code back from february to actually make it work.
Dobrica Pavlinusic [Tue, 28 Dec 2004 00:43:04 +0000 (00:43 +0000)]
Import of old code back from february to actually make it work.

git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@1 4670fa4d-42ec-0310-ab5b-a66af6943492