Commit Graph

179 Commits

Author SHA1 Message Date
kados ffa0c3a7c2 fixes a bug where if the record contained wide chars already it would
throw a 500 error.
2006-03-21 14:47:12 +00:00
kados 628c59c98d improved handling of visibility. 2006-03-21 04:38:14 +00:00
tipaul ebf980a10b * check that an item is not on loan before deleting it (proposal from Tümer)
* escape " to &
2006-03-20 15:16:08 +00:00
kados aa6f7b8940 keep subfields expanded if values exist 2006-03-18 13:20:21 +00:00
kados f46c789805 Heavy revisions to MARC Editor ... I'll send a mail to koha-devel asap. 2006-03-17 10:49:22 +00:00
kados 55d2df8cb4 remove incorrect DISABLE READONLY from input tag -- thanks paul! 2006-03-16 17:54:37 +00:00
kados dbd2f7cf91 fixing visibility flag: if ((<=-4)||(>=5)) { not in the editor unless exists
r is added}
2006-03-15 05:34:15 +00:00
kados b37461648c slight adjustment to visibility comparison 2006-03-15 05:08:07 +00:00
kados d59c19a6b1 refining addbiblio.pl to allow for greater complexity in visibility flag
(called 'Hidden'). See email to koha-devel.
2006-03-15 04:54:11 +00:00
kados 8023d38e9d adds further functionality to not load subfields marked '3' in the
Hidden in frameworks. Once this is confirmed stable I'll send an email
to koha-devel as it's quite an important feature.
2006-03-14 22:55:31 +00:00
kados 51b421b329 adds visibility status to MARC subfields. 2006-03-14 18:00:29 +00:00
kados 482ccb9d63 check for existance of $record before trying as_xml operation 2006-03-10 05:04:22 +00:00
kados f8e83c35c7 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).
2006-03-10 02:35:07 +00:00
hdl e5a82b7434 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.
2006-03-07 08:34:54 +00:00
kados aa48f53579 re-adding '' 2006-03-06 03:41:36 +00:00
kados 5724a30662 removing char_decode calls 2006-03-06 03:40:44 +00:00
kados e2787e32d0 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 !!!!!
2006-03-04 17:10:48 +00:00
kados c601446941 Add support for new MARChtml2xml routine. 2006-03-01 17:25:11 +00:00
kados 88e98c1aeb Change to use MARChtml2xml 2006-03-01 02:13:45 +00:00
kados ebd8348b04 removing unsed call to gettagslib 2006-02-25 03:56:45 +00:00
kados 0dcc307725 MAJOR BUGFIX: previously, when adding a tag, subfield order always started
with 'a' because that was hardcoded into the script. Now, order is governed
by the first defined subfield in the framework.
2006-02-25 02:05:59 +00:00
kados f636f90f04 Adds script support for IntranetNav ... see mail to koha-devel for
details
2006-02-05 21:59:20 +00:00
kados 59f64e3077 Adds support for intranetstylesheet system pref in Koha scripts 2006-02-05 21:45:25 +00:00
kados 7dfb2cc2db Adds support for intranetcolorstylesheet 2006-02-04 21:26:47 +00:00
hdl 7d3b8b566f Bug fixing : result page display was not correct. Id onlys incremented one result line and not the whole page 2006-01-31 10:59:41 +00:00
tipaul 1c70e956f5 * when adding a biblio, after searching in DB and reservoir, the page manager in the result list was buggy (isbnsearch.pl) 2006-01-05 15:11:41 +00:00
tipaul 3408704d37 some tweakings for MARC editor (better look for 1024x768 screens) 2005-12-14 15:01:36 +00:00
tipaul cf7fd53974 * adding a feature to enable reordering of subfields in MARC editor (can be considered as a bug ? at least one of my libraries think that yes !)
* as the MARC editor begins to be really heavy, i've also added a marc_hide systempref. It hides all marc features not requested by libraries that want MARC but not too much. It hides MARC tag & subfield code, reordering buttons as well as indicators. by default, hide_marc is off
2005-10-25 12:36:21 +00:00
tipaul fa43d07060 fixing a bug : when Autobarcode=ON and MARC=ON, the barcode was not calculated automatically. 2005-10-25 12:17:02 +00:00
tipaul 9e51b96217 fixing bug caused by sort{} added by hdl 2 days ago : when items were reordered, itemnum were not. Thus, sometimes, items were not pointing to the right itemnumber & modif/deletion was buggy ! 2005-10-05 12:41:41 +00:00
hdl 86b0bf2fbc Ordening items on holding branch
Modification in order to include Nonmarc structure
2005-10-04 10:13:16 +00:00
hdl 280e629836 ordening items by branch 2005-09-28 14:43:12 +00:00
hdl 09199d3bce Undoing Logs 2005-09-09 08:19:57 +00:00
hdl 35e6303729 Commiting all that allows Branch Independancy management :
* in acquisition module, an order can be modified/recieved/closed only by a librarian from the same branch than the librarian that created the basket.
* in catalogue module, an item can be modified/deleted/created only by a librarian from the same branch as item owner branch
* in members module, a member can be created/modified only by a librarian from the branch of the member.
Modifying Context.pm :
Adding userenv context variable.
Is set during checkauth or get_template_and_user
Modifying Auth.pm function checkauth : setting userenv context variable
Modifying Acquisition.pm:
    * histsearch
    * branches
    * bookfunds
    * getsupplierlistwithlateorders
    * getlateorders
    * getallorders
    * getorders
Add a branch criterium if IndependantBranches is set.
Modifiying Suggestion.pm:
    * searchsuggestions Will look first for th Librarian Branch and restrict search to suggestion made by users from this branch
    * countsuggestions Will look first for th Librarian Branch and restrict search to suggestion made by users from this branch
File Modifiying :
    * admin/aqbudget.pl adding a branch selection for budget.
    * parameters/aqbudget.tmpl
    * admin/aqbookfund.pl adding a branch selection for bookfund
    * parameters/aqookfund.tmpl
And adding branch selection to members and items changes.
WARNING: bibid are still used in additem, unlike in HEAD... Shall be soon fixed.
2005-08-26 12:21:49 +00:00
hdl 25ec2b0bf4 Adding Log Facility for Biblio management.
Note that a javascript will soon be written for action type management and that viewlog.pl is fully functionnal (tested) only for Catalogue.
2005-08-24 10:44:53 +00:00
tipaul dd88d01cc9 fix for duplicate scrolling lists (from Ernesto) 2005-08-08 09:18:57 +00:00
tipaul bdae4668e7 some changes in field size handling :
* changing length to 80, as it fits on a 1024 screen
* going to a textarea when the field is more than 100 chars and not 200 as previously
2005-08-01 15:11:59 +00:00
tipaul 9f449a44db * removing a useless & CPU consuming call to MARCgetbiblio
* Leader management.
If you create a MARC tag "000", with a subfield '@', it will be managed as the leader.
Seems to work correctly.

Now going to create a plugin for leader()
2005-07-28 19:56:15 +00:00
hdl c87155b86a Fixing :
- Enabling Selection of Default Framework, event though it wasnot the framework of the biblio.
Adding
- Saving Framework Changes when editing a biblio.
Display improvements
2005-05-25 09:34:40 +00:00
hdl 5beaf5648f Coping With Frameworks al allong MARC Editing.
BUG to be Fixed: Framework to save when editing a biblio.
2005-05-24 20:29:39 +00:00
tipaul 974b189e70 bugfix in authority reporting & field duplicating 2005-05-19 22:17:33 +00:00
tipaul 9cc1b2872a adding title & author in additem (owen suggestion) 2005-05-06 08:26:28 +00:00
tipaul 67190e832a needs "editcatalogue" flag, not "catalogue" 2005-03-25 12:52:42 +00:00
tipaul bccb6c9648 improving isbnsearch (search before cataloguing)
We now use the official Koha API for search in the catalogue. It means the user don't have to write the title exactly as in biblio.title (empty words are now excluded)
2005-03-18 08:53:38 +00:00
tipaul ad97981e81 commenting warn 2005-03-08 14:07:47 +00:00
tipaul fd52d0b477 adding button to duplicate the biblio 2005-03-08 12:46:31 +00:00
tipaul c113655916 bugfix : the call must be done with authtypecode, not category (better/more classic API : the parameter has the name of the DB field) 2005-03-01 13:22:08 +00:00
oleonard f50eafc15d - Adding classification to list of returned variables
- Updating table row color toggle to move HTML markup out of the script (requires update to the template)
2005-02-15 20:33:08 +00:00
tipaul 891d9aa5e2 fixing bug when searching a plugin location 2005-02-14 17:26:24 +00:00
tipaul ce3273c590 Managing absolute url instead of relative ones, for plugins (for mod_perl compliance).
Note that the absolute url differs between developper & production servers.
2005-02-03 16:26:21 +00:00