kados [Fri, 10 Mar 2006 02:35:07 +0000 (02:35 +0000)]
IMPORTANT:
MARC::Record objects coming in from the reservoir are probably going to
be encoded as MARC-8. This enures that they will be converted into UTF-8
before being displayed to the user (if they are in fact MARC-8). It's most
easily done by turning the record into a MARC::File::XML object and then
going back to MARC::Record -- easiest to do for me that is. Of course, a
better solution is to create a routine that changes the encoding of a
MARC::Record object (I was surprised to find such did not exist). I have
tested this method for MARC21, but I'm not familiar with the issues with
encoding in UNIMARC: are UNIMARC records ever encoded in charater sets
other than MARC-8 and UTF-8? (if so, I will need to adjust this code).
oleonard [Thu, 9 Mar 2006 18:03:34 +0000 (18:03 +0000)]
renaming variable so that 'branchname' can be used as current branch setting. By matching circulation.pl's variable naming we can display branchname consistently in the header of circulation-related pages.
kados [Thu, 9 Mar 2006 01:58:51 +0000 (01:58 +0000)]
removing another 'Display for NPL' ... owen, do you have a script that
could be running amuck? I think this is the third time I've removed this
particular one.
oleonard [Wed, 8 Mar 2006 22:31:34 +0000 (22:31 +0000)]
"No Image Available" graphic to display in circulation and moremember for patrons without image on file. For use when patronimages system preference is set.
oleonard [Wed, 8 Mar 2006 21:45:29 +0000 (21:45 +0000)]
Reformating suggestions page, trying to get a handle on how to display the fitlering form along with the suggestions list. This seems better since it doesn't create a horizontally-scrolling page, but not ideal because it gives too much weight to the search.
kados [Wed, 8 Mar 2006 18:49:51 +0000 (18:49 +0000)]
Adding a new way to return branches to the template as requested by
owen. I preserved the old method so that paul can decide whether to
switch default templates or not.
kados [Wed, 8 Mar 2006 16:31:04 +0000 (16:31 +0000)]
bugfix for Biblio.pm based on feedback from production system. previous
version was dropping subfields in cases where the previous tag in the
editor contained values (but only when multiple subfields existed in
both tags). This version will be tested again in production environment
to ensure it is actually fixed.
tipaul [Wed, 8 Mar 2006 13:46:55 +0000 (13:46 +0000)]
some opac systempreferences are set by all pages.
Moving the $template->param where the template is open. This way, nothing can be forgotten, and code is more readable. Feel free to move to Auth.pm any new systempref
(note : where it has been moved, the pref is set even if the user is not logged in, that's what we want)
hdl [Tue, 7 Mar 2006 08:34:54 +0000 (08:34 +0000)]
BugFixing : the latest commit on new items made an error on the additem (inserted a diff line): corrected
When ppl donot input utf-8 data, display is strange.
kados [Mon, 6 Mar 2006 19:11:55 +0000 (19:11 +0000)]
Fixes buggy use of ISBD for summary in Authorities display. Previously,
it was not possible to properly display repeated tags/subfields in the
correct order. This code uses the MARC21 guidelines for display of the
main heading, see and see also listings.
kados [Sat, 4 Mar 2006 17:10:48 +0000 (17:10 +0000)]
VERY IMPORTANT NOTES!!! READ OR YOU MAY RUIN YOUR ENCODING
Previous commits replaced the use of the MARChtml2marc
routine with a MARChtml2xml that reads in the form data and
converts it to a MARC::File::XML object. It then passes that
to MARC::Record via the new_from_xml() method.
This works perfectly and fixes all of the bugs with the old
MARChtml2marc routine (see mail to koha-devel). However,
there is one gotcha. The MARC::File::XML new_from_xml() method
converts UTF-8 data into MARC-8 by default for historical reasons.
This means that entry of characters outside the normal ascii range
in UTF-8 will come out as gibberish in MARC-8. Never fear, there
is a solution.
This commit uses code written for MARC::File::XML version 0.82 to
add the ability to specify the encoding desired (I chose UTF-8
because I can't think of a reason to ever need MARC-8)
The bottom line is that to properly encode records YOU WILL HAVE
TO UPDATE MARC::File::XML to at least CPAN verion 0.82 !!!!!
kados [Sat, 4 Mar 2006 06:33:54 +0000 (06:33 +0000)]
Fixes isbn search in opac -- it seems that '-' is stripped out in
marc_word table so if a query includes the - it failed previously.
This commit ensure that - is stripped out of the query before submitting.
kados [Sat, 4 Mar 2006 06:05:13 +0000 (06:05 +0000)]
New syspref: AnonSuggestions to allow an anonymous patron to make a
suggestion (requested by NPL). To enable, set to the borrowernumber
of the anonymous patron (must be created).
kados [Sat, 4 Mar 2006 03:24:51 +0000 (03:24 +0000)]
IMPORTANT: I had Associates tag and Dev Key confused ... now they
are named properly ... if you had it working before, now you must
swap them ... sorry :-)
kados [Wed, 1 Mar 2006 21:44:16 +0000 (21:44 +0000)]
Adds 'opacreadinghistory' syspref for turning this on/off for libraries
who are scared of their government (ie, in countries where there a
patriot act) :-)