Commit Graph

203 Commits

Author SHA1 Message Date
tipaul aa17999852 fixing indicator bugs for UNIMARC 2006-09-22 15:49:50 +00:00
tipaul d0b4f6d2c8 reintroducing indicators for UNIMARC libraries. 2006-09-13 14:28:56 +00:00
hdl b2ce63a6aa BUG FIXING :
Add items with IndependatBranches On was possibly get into trouble using a $0 value.
And frameworks used were those from itemtype instead of Bibliographic Record. May be considered as a feature provided that An itemtyp has only One framework attached.
2006-09-12 09:11:45 +00:00
tipaul 14e59ad8db *** empty log message *** 2006-08-31 15:51:53 +00:00
hdl 0b7bada5c9 Adding a new facility to tell how many new fields are needed when adding a field. 2006-08-31 14:07:18 +00:00
kados 8da7a813d2 remove warns 2006-08-02 12:52:46 +00:00
tipaul b68361b66b reverting kados changes 2006-07-25 16:22:13 +00:00
tipaul 480719e029 getting MARC from either xml or old html, depending on template encoding (in france, my libraries use iso8859-1 templates, and html2xml has problem with non utf-8 values) 2006-07-25 12:40:19 +00:00
kados 73f362d75b syncing with rel_2_2 before rel_2_2 was broken (meaning that
dev-week MARC editor works now)
2006-07-11 12:53:14 +00:00
oleonard e079611333 Adding "tabindex=''" to CGI:scrolling_list to prevent incorrect tabbing. See Bug 1098 2006-06-20 18:22:23 +00:00
tipaul 675f9d5b01 reverting cloneTag bugs (see joshua mail on koha-devel) :
* going back to a previous version, with server call to clone a Tag
* keeping BIG_LOOP in template (just 1 template for every tag)
I didn't check npl templates, but synch'ing them should not be too hard.

(ps : i've reverted default templates to 1.33.2.23)
2006-06-19 13:18:17 +00:00
oleonard 12b93e5b79 Changing some of the generated markup to use CSS class names instead of hard-coded color values. This moves color choices into the CSS files for each individual template. 2006-06-14 21:08:20 +00:00
tipaul 924bad56fd oups... I forgot to commit this fix for first subfield declaration 2006-06-14 15:38:26 +00:00
tipaul 33080b6905 [IMPORTANT]
when cloning a tag, there was a problem to detect the tag change when rebuilding the XML/MARC record :
the test was done on an empty field.
with the new CloneTag sub, this empty field was quite tricky to create on the fly.
so i've added on each subfield a <input name="firstsubfield"> saying wether the subfield is the 1st or not.
Thus, when a tag is cloned, it is cloned properly.

HTML2marc and well as HTML2xml have been modified, but PLEASE DOUBLE CHECK my work
2006-06-12 10:33:53 +00:00
tipaul 47432473b4 MARC editor continued.
Thanks to ToinS, the cloneTag & authority popup seems to work perfectly...
2006-06-09 15:58:09 +00:00
tipaul e0c9b337b4 [IMPORTANT]
2 things in this commit
- npl templates worked well for cloneSubfield, default one didn't. I couldn't understand why, so I ported npl template to default & just updated the stylesheet

- npl templates were awfully indented, so I indented them a little bit

- I thought for months that the idea of 10 tabs passed separately was crazy. So I fixed it : now there is just 1 (ONE) tab described in templates, that is looped by BIG_LOOP. The BIG_LOOP is filled by the build_tabs.

Works the same way as previously, except there is just 1 tab described in templates !!!

Things still to do :
- making cloneTag work correctly
- handle authorities popup, that is broken
- handle authorities reporting, that is broken too.
2006-06-09 14:29:05 +00:00
tipaul d971d59230 - moving active color to grey instead of yellow
- ******** IMPORTANT *********
if TemplateEncoding system preference is set to iso8859-1, there are a lot of encoding problems : MARC::File::XML don't like it, as MARC::Record is supposed to work in MARC8 or UNICODE.
Thus, it seems that all accents are transformed in the process html => xml => marc.
Thus, i've reintroduced the html => marc behaviour if the TemplateEncoding is set to iso8859-1
(i've fixed the html2marc as joshua proposed previously, fixing a remaining bug)

This solution is a workaround : we will have to find a correct solution for Koha 3.0, to move every Koha to UNICODE and UNICODE only. But for instance, I tried some things but failed. Thust this solution, that works correctly for french libraries and should change nothing for unicode ones.
2006-06-02 15:32:52 +00:00
tgarip1957 6c0a70e019 System preference 'itemcallnumber' can now accept 2 subfields like 050ab to accommodate for LC callnumbering. Single subfield implementation not affected. 2006-04-26 16:53:37 +00:00
hdl 798a6d4127 Adding two new sysprefs :
- z3950NormalizeAuthor of type YesNo. Set this to yes if you want author field to be filled with authorities fields when importing biblio in z3950
- z3950AuthorAuthfields, free text : type in comma-separated list of fields to search for author names for AuthorNormalization.

Adding a feature on a Z3950 import.
You can now automatically fill author with person name authority contained in the biblio if sysprefs are filled.
2006-04-21 08:54:55 +00:00
kados 28486295ad removing warns 2006-04-13 05:53:45 +00:00
kados 9ca273f2b4 partial fix for encoding probs in MARC editor 2006-04-13 05:50:25 +00:00
tipaul 9247a241ba rewritting auth_finder for addbiblio to get cloneTag working. incomplete, see mail on koha-devel 2006-04-07 11:45:58 +00:00
kados ff054b9e90 Fixes a bug that Paul noticed earlier today: UNIMARC tag/subfield labels
were getting mangled when displayed in the MARC editor for edits.
2006-04-06 02:15:35 +00:00
kados 495185c394 removing encode, cleaning up a bit. 2006-04-02 15:57:56 +00:00
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 &amp;
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