webpac
19 years agoimprovement: path limit in URL works without full result display
Dobrica Pavlinusic [Wed, 8 Dec 2004 18:24:24 +0000 (18:24 +0000)]
improvement: path limit in URL works without full result display

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@600 13eb9ef6-21d5-0310-b721-a9d68796d827

19 years agofix repeatable field names which have non 7-bit ascii characters
Dobrica Pavlinusic [Wed, 8 Dec 2004 18:23:25 +0000 (18:23 +0000)]
fix repeatable field names which have non 7-bit ascii characters

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@599 13eb9ef6-21d5-0310-b721-a9d68796d827

19 years agochanges to support UTF-8 encoding from
Dobrica Pavlinusic [Wed, 29 Sep 2004 17:22:24 +0000 (17:22 +0000)]
changes to support UTF-8 encoding from
SpreadSheet::ParseExcel::FmtDefault.

You will have to modify line 69 from
return pack('C*', unpack('n*', $sTxt));
to following which returns utf-8:
return pack('U*', unpack('n*', $sTxt));

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@488 13eb9ef6-21d5-0310-b721-a9d68796d827

19 years agobug fix when transfering fields with multiple values (e.g. checkboxes) to
Dobrica Pavlinusic [Tue, 21 Sep 2004 16:40:46 +0000 (16:40 +0000)]
bug fix when transfering fields with multiple values (e.g. checkboxes) to
pager (hidden fields that is)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@457 13eb9ef6-21d5-0310-b721-a9d68796d827

19 years agobetter check if table exists (so that DBD::SQLite upgrade won't break)
Dobrica Pavlinusic [Fri, 27 Aug 2004 17:21:00 +0000 (17:21 +0000)]
better check if table exists (so that DBD::SQLite upgrade won't break)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@399 13eb9ef6-21d5-0310-b721-a9d68796d827

19 years agodon't be greedy when trying to find end of eval{...}
Dobrica Pavlinusic [Wed, 7 Jul 2004 20:58:58 +0000 (20:58 +0000)]
don't be greedy when trying to find end of eval{...}
This enables inserting { } into field after eval

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@384 13eb9ef6-21d5-0310-b721-a9d68796d827

19 years agofixed direct memory lookup, workaround for strange
Dobrica Pavlinusic [Wed, 7 Jul 2004 20:51:37 +0000 (20:51 +0000)]
fixed direct memory lookup, workaround for strange
bug when requested output is scalar; it will ignore
first element which works but is not totally correct

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@383 13eb9ef6-21d5-0310-b721-a9d68796d827

19 years agoif field in eval isn't repeatable use first value,
Dobrica Pavlinusic [Wed, 7 Jul 2004 17:34:42 +0000 (17:34 +0000)]
if field in eval isn't repeatable use first value,
return eval errors

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@381 13eb9ef6-21d5-0310-b721-a9d68796d827

19 years agocreate missing lookup files
Dobrica Pavlinusic [Wed, 7 Jul 2004 09:55:45 +0000 (09:55 +0000)]
create missing lookup files

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@379 13eb9ef6-21d5-0310-b721-a9d68796d827

19 years agoback-ported unlimited recursive mem_lookup from webpac v2.
Dobrica Pavlinusic [Tue, 15 Jun 2004 22:14:41 +0000 (22:14 +0000)]
back-ported unlimited recursive mem_lookup from webpac v2.
Now you can say something like [[[900]]] and it will produce
tripple lookup (as opposed to double which was maximum in old
version).

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@351 13eb9ef6-21d5-0310-b721-a9d68796d827

19 years agoremoved template
Dobrica Pavlinusic [Tue, 15 Jun 2004 22:08:42 +0000 (22:08 +0000)]
removed template

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@350 13eb9ef6-21d5-0310-b721-a9d68796d827

19 years agoset enviroment variables LC_COLLATE and LC_CTYPE (needed by SQLite to
Dobrica Pavlinusic [Sun, 13 Jun 2004 12:47:07 +0000 (12:47 +0000)]
set enviroment variables LC_COLLATE and LC_CTYPE (needed by SQLite to
convert charset to upper characters correctly)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@344 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agofixed parsing for science direct html with more than one <a href=> per one <tr>
Dobrica Pavlinusic [Thu, 10 Jun 2004 22:05:38 +0000 (22:05 +0000)]
fixed parsing for science direct html with more than one <a href=> per one <tr>
support to force input file (if you uncomment filename in script)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@338 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agosave MFN as field 001
Dobrica Pavlinusic [Thu, 10 Jun 2004 19:20:05 +0000 (19:20 +0000)]
save MFN as field 001

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@336 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoprint warning if type is not handled (probably a typo)
Dobrica Pavlinusic [Tue, 18 May 2004 18:15:19 +0000 (18:15 +0000)]
print warning if type is not handled (probably a typo)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@333 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agovarious fixes
Dobrica Pavlinusic [Sun, 16 May 2004 22:12:02 +0000 (22:12 +0000)]
various fixes

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@330 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agodon't die on field which can't be parsed (just print warning), corrected
Dobrica Pavlinusic [Sat, 15 May 2004 20:54:40 +0000 (20:54 +0000)]
don't die on field which can't be parsed (just print warning), corrected
subfield order for field 210

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@329 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agocommand line parametars are now working (xml files are at end, so that shell
Dobrica Pavlinusic [Sat, 15 May 2004 19:52:01 +0000 (19:52 +0000)]
command line parametars are now working (xml files are at end, so that shell
glob will work), misc improvements

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@328 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agofirst really working version: support single and repeating fields correctly,
Dobrica Pavlinusic [Sat, 15 May 2004 18:54:41 +0000 (18:54 +0000)]
first really working version: support single and repeating fields correctly,
output encodings implemented, support for indicators

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@327 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agofixes, cleanups, you know: on the way to usable version
Dobrica Pavlinusic [Fri, 14 May 2004 17:22:39 +0000 (17:22 +0000)]
fixes, cleanups, you know: on the way to usable version

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@326 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agofirst try at converting MODS XML records back to MARC
Dobrica Pavlinusic [Fri, 14 May 2004 16:38:22 +0000 (16:38 +0000)]
first try at converting MODS XML records back to MARC

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@325 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agofix of a fix (case)
Dobrica Pavlinusic [Sun, 18 Apr 2004 02:15:16 +0000 (02:15 +0000)]
fix of a fix (case)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@322 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoimplement my_unac_string function, and my_unac_filter option in global.conf
Dobrica Pavlinusic [Sun, 18 Apr 2004 00:57:39 +0000 (00:57 +0000)]
implement my_unac_string function, and my_unac_filter option in global.conf
which you *REALLY* want to use if you don't have only clean 7-bit characters
in your data

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@320 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agofix CROASCII (B1.002:1982) filter
Dobrica Pavlinusic [Sun, 18 Apr 2004 00:50:13 +0000 (00:50 +0000)]
fix CROASCII (B1.002:1982) filter

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@318 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agomake distribution from SubVersion repository
Dobrica Pavlinusic [Sat, 17 Apr 2004 23:22:32 +0000 (23:22 +0000)]
make distribution from SubVersion repository

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@317 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoMajor change:
Dobrica Pavlinusic [Sat, 17 Apr 2004 20:40:28 +0000 (20:40 +0000)]
Major change:

I no longer user HTML::Pager, SWISH and SWISH::Fork modules,
but SWISH::API (new interface to swish 2.4.x, which is required) and own
implementation of pager.

That saves round-trips of all results from swish-e to memory and to
HTML::Pager so this produces also significant speedup when result set is
large (tipically if you entered just a letter or two with huge number of
records).

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@304 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agobug fix: support for working from root of virtual host
Dobrica Pavlinusic [Sun, 4 Apr 2004 22:09:57 +0000 (22:09 +0000)]
bug fix: support for working from root of virtual host

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@302 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoeven more detail explanation
Dobrica Pavlinusic [Sun, 4 Apr 2004 21:04:47 +0000 (21:04 +0000)]
even more detail explanation

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@300 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoexplanation of bit-masks with examples
Dobrica Pavlinusic [Sun, 4 Apr 2004 20:48:56 +0000 (20:48 +0000)]
explanation of bit-masks with examples

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@299 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoYou can now specify configuration file as command-line option, and
Dobrica Pavlinusic [Fri, 2 Apr 2004 23:31:25 +0000 (23:31 +0000)]
You can now specify configuration file as command-line option, and
if you don't do that, it will use default one called all2xml.conf

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@298 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoremoved unneeded warning
Dobrica Pavlinusic [Fri, 2 Apr 2004 23:30:44 +0000 (23:30 +0000)]
removed unneeded warning

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@297 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agobug fix: eval now honours codepage settings
Dobrica Pavlinusic [Mon, 29 Mar 2004 19:41:12 +0000 (19:41 +0000)]
bug fix: eval now honours codepage settings

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@293 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agodelimiter and append now works as expected
Dobrica Pavlinusic [Sun, 14 Mar 2004 20:19:42 +0000 (20:19 +0000)]
delimiter and append now works as expected

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@290 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agofix
Dobrica Pavlinusic [Sun, 14 Mar 2004 19:50:13 +0000 (19:50 +0000)]
fix

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@287 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agomerge changes from trunk to branches, converted all import_xml
Dobrica Pavlinusic [Sun, 14 Mar 2004 19:44:57 +0000 (19:44 +0000)]
merge changes from trunk to branches, converted all import_xml

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@286 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agopreserve other attributes
Dobrica Pavlinusic [Sun, 14 Mar 2004 19:43:51 +0000 (19:43 +0000)]
preserve other attributes

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@285 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoconverted delimiters to new format
Dobrica Pavlinusic [Sun, 14 Mar 2004 18:04:52 +0000 (18:04 +0000)]
converted delimiters to new format

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@281 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoscript to convert delimiters
Dobrica Pavlinusic [Sun, 14 Mar 2004 17:16:21 +0000 (17:16 +0000)]
script to convert delimiters

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@280 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoImplemented new form of delimiters like this:
Dobrica Pavlinusic [Sun, 14 Mar 2004 14:59:43 +0000 (14:59 +0000)]
Implemented new form of delimiters like this:

<tag>
<delimiter>, </delimiter>
<value>200a</value>
</tag>

which is equivavelnt to following old mark-up:

<tag delimiter=", ">200a</tag>

but, it won't loose spaces in attribute values (which
are invalid by XML specification and XML::Simple removes
them so WebPac never get them)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@279 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agomoved tests in own directory, added test to demonstrate XML::Simple feature
Dobrica Pavlinusic [Sun, 14 Mar 2004 12:37:14 +0000 (12:37 +0000)]
moved tests in own directory, added test to demonstrate XML::Simple feature
to remove spaces from begin and end attribute value (which is wrong for
delimiters as WebPAC uses them)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@278 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoported 269:272 from hidra
Dobrica Pavlinusic [Sun, 14 Mar 2004 12:06:51 +0000 (12:06 +0000)]
ported 269:272 from hidra

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@275 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years ago<config> tags (which use values from all2xml.conf) are now properly handled
Dobrica Pavlinusic [Sun, 14 Mar 2004 11:50:29 +0000 (11:50 +0000)]
<config> tags (which use values from all2xml.conf) are now properly handled
if there is more than one in same swish tag. However, to use <config
type="index"> is useless IMHO, and <config type="index_lookup"> is not
implemented.

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@274 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years ago"show details" now work corretly when not on first page
Dobrica Pavlinusic [Sat, 13 Mar 2004 17:46:47 +0000 (17:46 +0000)]
"show details" now work corretly when not on first page

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@271 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoported r260 from hidra branch: moved eval to parse_format.pm where it
Dobrica Pavlinusic [Fri, 12 Mar 2004 15:06:58 +0000 (15:06 +0000)]
ported r260 from hidra branch: moved eval to parse_format.pm where it
belongs. Also changed eval format to: eval{v901^a eq "Mikrotezaurus"}
(please note same format as in ISIS formating language)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@263 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoported 257:258 from hidra branch
Dobrica Pavlinusic [Thu, 11 Mar 2004 18:23:59 +0000 (18:23 +0000)]
ported 257:258 from hidra branch
all2xml.pl - fix for swish without filter
openisis/perl/OpenIsis.pm - removed warning

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@259 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoported r254 from hidra branch
Dobrica Pavlinusic [Tue, 9 Mar 2004 12:18:17 +0000 (12:18 +0000)]
ported r254 from hidra branch

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@256 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoported r248:252 from hidra branch:
Dobrica Pavlinusic [Tue, 9 Mar 2004 12:17:05 +0000 (12:17 +0000)]
ported r248:252 from hidra branch:

r248: much improved installation instructions, especially for Debian
      GNU/Linux distributions
r249: changed use of Spreadsheet::ParseExcel and MARC to require/import so
      that dependency on those modules can be resolved in runtime.
r250: finished installation documentation
r251: removing dependency on HTML::Parser would ease installation
r252: smaller eval{} fiexes. eval{} logic should really move to
      parse_format.pm

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@255 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoimplement close for perl OpenIsis bindings
Dobrica Pavlinusic [Mon, 8 Mar 2004 17:52:10 +0000 (17:52 +0000)]
implement close for perl OpenIsis bindings

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@240 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoincluding openisis 0.9.0 into webpac tree
Dobrica Pavlinusic [Mon, 8 Mar 2004 17:49:13 +0000 (17:49 +0000)]
including openisis 0.9.0 into webpac tree

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@239 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agopreparation for first file dump at sourceforge.net
Dobrica Pavlinusic [Sun, 7 Mar 2004 23:15:24 +0000 (23:15 +0000)]
preparation for first file dump at sourceforge.net

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@235 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoeval{...} now works for type="swish" also...
Dobrica Pavlinusic [Sun, 7 Mar 2004 22:51:14 +0000 (22:51 +0000)]
eval{...} now works for type="swish" also...

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@234 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agolookup_key and lookup_val types now support filters
Dobrica Pavlinusic [Fri, 5 Mar 2004 23:33:19 +0000 (23:33 +0000)]
lookup_key and lookup_val types now support filters

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@233 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agodump TDB file (e.g. lookup)
Dobrica Pavlinusic [Fri, 5 Mar 2004 23:18:30 +0000 (23:18 +0000)]
dump TDB file (e.g. lookup)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@232 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoclear memory cache when opening new file lookup
Dobrica Pavlinusic [Fri, 5 Mar 2004 22:53:30 +0000 (22:53 +0000)]
clear memory cache when opening new file lookup

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@231 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoLot of changes and improvements:
Dobrica Pavlinusic [Wed, 25 Feb 2004 10:49:32 +0000 (10:49 +0000)]
Lot of changes and improvements:
- documentation at beginning of script
- use XML file for configuration (as opposed to hard-coded values in script)
- example XML configuration can be created with ./isis2marc.pl > config.xml
- supports unique and non-unique output depending on presence of <key>
  tag in configuration file

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@230 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agobrown-bag-bug-fix: writing MARC file just once (at end) will save a lot of time
Dobrica Pavlinusic [Mon, 23 Feb 2004 23:21:43 +0000 (23:21 +0000)]
brown-bag-bug-fix: writing MARC file just once (at end) will save a lot of time

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@229 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoscript which will select just some fields from CDS/ISIS database and insert
Dobrica Pavlinusic [Mon, 23 Feb 2004 23:17:17 +0000 (23:17 +0000)]
script which will select just some fields from CDS/ISIS database and insert
only unique values in MARC file (useful for creating ad-hoc authority file)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@228 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoBeginning of documentation for debugging of changes in configuration
Dobrica Pavlinusic [Sun, 22 Feb 2004 23:31:00 +0000 (23:31 +0000)]
Beginning of documentation for debugging of changes in configuration
file. In short: what to do when WebPAC isn't behaving as you expected.

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@227 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoadded SQLite parametar sqlite_handle_binary_nulls
Dobrica Pavlinusic [Wed, 11 Feb 2004 08:33:51 +0000 (08:33 +0000)]
added SQLite parametar sqlite_handle_binary_nulls

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@226 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agodon't die if old table cannot be dropped
Dobrica Pavlinusic [Tue, 10 Feb 2004 10:20:50 +0000 (10:20 +0000)]
don't die if old table cannot be dropped

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@225 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoimportant bug fix for bug introduced in 1.57: it might eat your data
Dobrica Pavlinusic [Sun, 8 Feb 2004 20:16:54 +0000 (20:16 +0000)]
important bug fix for bug introduced in 1.57: it might eat your data
if you are not using filter. This one was hard do find...

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@224 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agofix
Dobrica Pavlinusic [Sun, 8 Feb 2004 15:49:44 +0000 (15:49 +0000)]
fix

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@223 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoDocumentation describing usage of lookups
Dobrica Pavlinusic [Sun, 8 Feb 2004 15:44:28 +0000 (15:44 +0000)]
Documentation describing usage of lookups

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@222 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agolinks using format
Dobrica Pavlinusic [Sun, 8 Feb 2004 15:15:54 +0000 (15:15 +0000)]
links using format

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@221 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoImportant note about SQLite and dbi_user settings (in nutshell: leave them
Dobrica Pavlinusic [Thu, 5 Feb 2004 11:04:03 +0000 (11:04 +0000)]
Important note about SQLite and dbi_user settings (in nutshell: leave them
blank)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@220 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoDisplay total and unique count when dumping index data to tables
Dobrica Pavlinusic [Thu, 5 Feb 2004 10:56:55 +0000 (10:56 +0000)]
Display total and unique count when dumping index data to tables

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@219 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoChanged never userd format configuration option for import_xml to
Dobrica Pavlinusic [Thu, 5 Feb 2004 10:55:58 +0000 (10:55 +0000)]
Changed never userd format configuration option for import_xml to
marc_format to prevent clash with format for output. If you don't
specify it (as I never do) it will default to 'usmarc' which is probably
the right thing (tm).

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@218 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agobugfix and improvements:
Dobrica Pavlinusic [Sun, 1 Feb 2004 23:28:27 +0000 (23:28 +0000)]
bugfix and improvements:
- debug and quiet switches
- skip fields which are too short (just subfield without data)
- calculate directory address
- calculate base address in leader

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@217 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoinsert empty indicators -- that required to rebuild directory, so
Dobrica Pavlinusic [Sun, 1 Feb 2004 22:18:05 +0000 (22:18 +0000)]
insert empty indicators -- that required to rebuild directory, so
I'm also doing some sanity checks (on which programs that import
MARC files might fail later)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@216 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agobrown-bag bug: I was using MARC.pm wrong: now whole file will be loaded
Dobrica Pavlinusic [Sun, 1 Feb 2004 22:06:00 +0000 (22:06 +0000)]
brown-bag bug: I was using MARC.pm wrong: now whole file will be loaded
at start of indexing, changing memory usage to much more step-like, but
that enables real progress indicator and few seconds gain in indexing
speed.

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@215 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agomore verbose output
Dobrica Pavlinusic [Sun, 1 Feb 2004 20:37:33 +0000 (20:37 +0000)]
more verbose output

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@210 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoI was using MARC.pm wrong. It duplicated records in output
Dobrica Pavlinusic [Sun, 1 Feb 2004 20:35:59 +0000 (20:35 +0000)]
I was using MARC.pm wrong. It duplicated records in output

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@209 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoScript which will read PhpMyLibrary (http://phpmylibrary.sourceforge.net/)
Dobrica Pavlinusic [Sun, 1 Feb 2004 15:57:17 +0000 (15:57 +0000)]
Script which will read PhpMyLibrary (phpmylibrary.sourceforge.net/)
database and dump MARC file for import in webpac

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@208 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agothesaurus is finally working... It contains recursive entries to parnet
Dobrica Pavlinusic [Sat, 31 Jan 2004 21:03:06 +0000 (21:03 +0000)]
thesaurus is finally working... It contains recursive entries to parnet
term, and we actually needed to display narrower terms, so mem_lookup was
created. Important changes:
- you can write eval{"901a" eq "Mikrotezaurus"} within <isis>
  tag and if expression evaluates to false, no content will be outputed
  (It's used to hide microtesarus terms from lover level descriptors)
- mem_lookup.pm now supports formats: you can write something like
  [a:5614];;[d:[a:5614]] and it will correctly embed values

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@207 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoat close vacuum database if using PostgreSQL or SQLite
Dobrica Pavlinusic [Sat, 31 Jan 2004 20:57:48 +0000 (20:57 +0000)]
at close vacuum database if using PostgreSQL or SQLite

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@206 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agosupport for unrolling thesaurus entries which have data only about parent
Dobrica Pavlinusic [Sun, 18 Jan 2004 21:11:39 +0000 (21:11 +0000)]
support for unrolling thesaurus entries which have data only about parent
term, so that we can display child terms for each entry

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@205 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoupdated according to specification
Dobrica Pavlinusic [Sun, 18 Jan 2004 16:24:41 +0000 (16:24 +0000)]
updated according to specification

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@204 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agogrammar fix
Dobrica Pavlinusic [Sun, 18 Jan 2004 16:23:56 +0000 (16:23 +0000)]
grammar fix

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@203 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoimplemented sort=1 variable to sort results by headline
Dobrica Pavlinusic [Sun, 18 Jan 2004 16:23:03 +0000 (16:23 +0000)]
implemented sort=1 variable to sort results by headline

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@202 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agochanged behaviour when searching index and no entry beginning with string is
Dobrica Pavlinusic [Sat, 17 Jan 2004 14:00:26 +0000 (14:00 +0000)]
changed behaviour when searching index and no entry beginning with string is
found: until now, it found first substring, and now it find substring from
beginning of word (it has to have space before it)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@201 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoAdded missing changes to template for index results
Dobrica Pavlinusic [Sun, 11 Jan 2004 21:06:42 +0000 (21:06 +0000)]
Added missing changes to template for index results

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@200 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agofixed filter delimiter bug
Dobrica Pavlinusic [Wed, 7 Jan 2004 12:29:11 +0000 (12:29 +0000)]
fixed filter delimiter bug

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@199 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoImplement different interfaces to webpac (for books, articles etc, or in
Dobrica Pavlinusic [Sun, 21 Dec 2003 06:35:43 +0000 (06:35 +0000)]
Implement different interfaces to webpac (for books, articles etc, or in
different languages) easily: just add base_path with relative or
absolute URL to root of your webpac and you can then create multiple
aliases (using Alias directive in httpd.conf) which have same beginning
as base_path. Everything added after base_path will be added after filename
for templates, but before extension. Easy, eh?

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@198 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoChanged behaviour of creating data for swish_exact when using type="index".
Dobrica Pavlinusic [Sun, 21 Dec 2003 03:27:02 +0000 (03:27 +0000)]
Changed behaviour of creating data for swish_exact when using type="index".
Now every line is separate entry in swish_exact. That will create additional
clutter in index (fields which wouldn't be used because we are not insering
them in index), but you will have to bare with this for now.

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@197 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agocorrect support for swish_exact when there are repeatable fields
Dobrica Pavlinusic [Mon, 15 Dec 2003 00:12:16 +0000 (00:12 +0000)]
correct support for swish_exact when there are repeatable fields

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@196 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agodon't repeat field name if same as last, support format_name and
Dobrica Pavlinusic [Sun, 14 Dec 2003 20:50:03 +0000 (20:50 +0000)]
don't repeat field name if same as last, support format_name and
format_delimiter on field level if using iterate_by_page (without this, it's
really hard to get useful formating when using iterate_by_page), don't warn
on rare occasion (which is faulty import_xml definition, but anyway...) when
using append="1"

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@195 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agocloser to specification
Dobrica Pavlinusic [Thu, 11 Dec 2003 18:42:40 +0000 (18:42 +0000)]
closer to specification

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@193 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agouse locale (important for sorting)
Dobrica Pavlinusic [Thu, 11 Dec 2003 18:00:57 +0000 (18:00 +0000)]
use locale (important for sorting)

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@192 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agodump content of gdbm file
Dobrica Pavlinusic [Sat, 29 Nov 2003 20:11:07 +0000 (20:11 +0000)]
dump content of gdbm file

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@191 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoexact matches can now specify to include (or not) wildcard at end. Added
Dobrica Pavlinusic [Sat, 29 Nov 2003 19:11:23 +0000 (19:11 +0000)]
exact matches can now specify to include (or not) wildcard at end. Added
also documentation about exact matching using swish-e

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@190 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agolocal changes specific to hida
Dobrica Pavlinusic [Sat, 29 Nov 2003 19:07:29 +0000 (19:07 +0000)]
local changes specific to hida

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@189 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoimplemented index_delimiter which enables to to format index entries in format
Dobrica Pavlinusic [Sat, 29 Nov 2003 19:07:00 +0000 (19:07 +0000)]
implemented index_delimiter which enables to to format index entries in format
(values to be inserted in index);;(values to be displayed) if there is
definition of index_delimiter=";;". This will allow you to index (and
search) through values from original database and still have ability to
display lookup fields.

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@188 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agosupport for subfields in fields 10/11
Dobrica Pavlinusic [Sat, 29 Nov 2003 18:58:34 +0000 (18:58 +0000)]
support for subfields in fields 10/11

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@187 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agotransfer swish_exact flash in form also, not only in URL
Dobrica Pavlinusic [Sat, 29 Nov 2003 18:40:19 +0000 (18:40 +0000)]
transfer swish_exact flash in form also, not only in URL

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@186 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agomoved documentation in doc directory
Dobrica Pavlinusic [Sat, 29 Nov 2003 18:38:02 +0000 (18:38 +0000)]
moved documentation in doc directory

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@185 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agofix for swish_exact
Dobrica Pavlinusic [Sat, 29 Nov 2003 17:51:12 +0000 (17:51 +0000)]
fix for swish_exact

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@183 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agomake index with lookup field working with iterate on page
Dobrica Pavlinusic [Sat, 29 Nov 2003 15:59:19 +0000 (15:59 +0000)]
make index with lookup field working with iterate on page

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@182 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agofix swish_exact fields so that they don't show up in display
Dobrica Pavlinusic [Tue, 25 Nov 2003 20:19:03 +0000 (20:19 +0000)]
fix swish_exact fields so that they don't show up in display

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@181 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoinvalidate memory cache when needed
Dobrica Pavlinusic [Tue, 25 Nov 2003 20:04:24 +0000 (20:04 +0000)]
invalidate memory cache when needed

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@180 13eb9ef6-21d5-0310-b721-a9d68796d827

20 years agoscript which will create log of webpac memory and processor usage
Dobrica Pavlinusic [Tue, 25 Nov 2003 18:28:42 +0000 (18:28 +0000)]
script which will create log of webpac memory and processor usage

git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@179 13eb9ef6-21d5-0310-b721-a9d68796d827