Commit graph

759 commits

Author SHA1 Message Date
tipaul
9ac07b38be getitemtypes moved in Koha.pm 2004-05-18 11:54:07 +00:00
tipaul
ec64f1fcd8 Marc search ported to OPAC.
seems to work fine
2004-05-10 09:24:14 +00:00
tipaul
a21293a475 adding LibraryName variable in the template 2004-05-10 09:23:32 +00:00
tipaul
694ad5d6fb removing unused subs 2004-05-04 16:17:19 +00:00
tipaul
a4157fd8d2 continuing code cleaning & reordering 2004-05-04 16:15:56 +00:00
tipaul
5065cfa25c removing Renewals (all circ related subs are moved to Circ2.pm) 2004-05-04 15:46:01 +00:00
tipaul
6cc534a686 POD documenting & some improvements 2004-05-03 16:36:31 +00:00
tipaul
12d7e38cd5 copying printslip from circulation.pl 2004-05-03 09:26:12 +00:00
tipaul
12bfd66995 some fixes for mysql prepare & execute 2004-05-03 09:19:22 +00:00
tipaul
040bcdf92b CIRCULATION : the big rewrite...
This 1st commit reorders deeply the circulation module.
The goal is to :
* have something 100% templated/translatable.
* have something easy to read & modify, to say to customers/users : you can define your circulation rules as you want if you accept to look in C4/Circ/Circ2.pm

The circulation now works :
1=> ask for the borrower barcode (as previously)
2=> ask for the item barcode.
3=> check "canbookbeissued". This new sub returns 2 arrays :
- IMPOSSIBLE : if something is here, then the issue is not possible and is not done.
- TOBECONFIRMED : if something is here, then the issue can be donc if the user confirms it.
4=> if TOBECONFIRMED is set : ask for confirmation, loop. if neither  are set or confirmation flag is set (2nd pass of the loop), then issue.

The IMPOSSIBLE & TOBECONFIRMED hashs contains :
* the reason of the line. always in capitals, with words separated by _ : BARCODE_UNKNOWN, DEBTS ... as key of the hash
* more information, as value of the hash ( TOBECONFIRMED{ALREADY_ISSUED} = "previous_borrower_name", for example)

This commit :
* compiles
* works on certain situations, not on other
* does NOT issue (the line is # )
* does not check issuing rules depending of # of books allowed / already issued

The next step is :
- check issuing rule.
- extend issuing rule to have a 3D array : for each branch / itemtype / borrowertype = issuing number and issuing length.
2004-05-03 09:10:51 +00:00
tipaul
b311b890d2 added param to checkaccount API 2004-05-03 09:04:49 +00:00
tipaul
21a379acda CIRCULATION : the big rewrite...
This 1st commit reorders deeply the circulation module.
The goal is to :
* have something 100% templated/translatable.
* have something easy to read & modify, to say to customers/users : you can define your circulation rules as you want if you accept to look in C4/Circ/Circ2.pm

The circulation now works :
1=> ask for the borrower barcode (as previously)
2=> ask for the item barcode.
3=> check "canbookbeissued". This new sub returns 2 arrays :
- IMPOSSIBLE : if something is here, then the issue is not possible and is not done.
- TOBECONFIRMED : if something is here, then the issue can be donc if the user confirms it.
4=> if TOBECONFIRMED is set : ask for confirmation, loop. if neither  are set or confirmation flag is set (2nd pass of the loop), then issue.

The IMPOSSIBLE & TOBECONFIRMED hashs contains :
* the reason of the line. always in capitals, with words separated by _ : BARCODE_UNKNOWN, DEBTS ... as key of the hash
* more information, as value of the hash ( TOBECONFIRMED{ALREADY_ISSUED} = "previous_borrower_name", for example)

This commit :
* compiles
* works on certain situations, not on other
* does NOT issue (the line is # )
* does not check issuing rules depending of # of books allowed / already issued

The next step is :
- check issuing rule.
- extend issuing rule to have a 3D array : for each branch / itemtype / borrowertype = issuing number and issuing length.
2004-05-03 09:02:12 +00:00
rangi
5178337784 Fix for bug 752 2004-04-28 09:09:27 +00:00
tipaul
a2f1bf834f improving Search :
* adding "suggestion", that popup a windows. The popup windows shows, for each word entered in the search form, the 10 words that sounds like the word entered, and that are used most often.
* fixes some minor bugs

Still to do :
* good support of ' and ,
2004-04-16 07:28:22 +00:00
tipaul
287e08803a bugfix => escaping correctly values in SQL 2004-04-14 19:45:48 +00:00
tipaul
207cfeb5b3 renaming items.bulk field to items.itemcallnumber.
Will be used to store call number for libraries that don't use dewey classification.
Note it's related to ITEMS, not biblio.
2004-04-02 14:55:47 +00:00
joshferraro
01458df59c Make isbn search on existing records looser (to allow for MARC isbn data)." 2004-03-28 16:04:47 +00:00
joshferraro
e85cf7756f Fixes Bug 763 (Location will not change) replaced:
$dbh->do("UPDATE items holdingbranch = $tbr WHERE   items.itemnumbe$
        &itemseen($itm);
	with:
$dbh->do("UPDATE items set holdingbranch = $tbr WHERE   items.itemnumbe$
        &itemseen($itm);
2004-03-24 21:06:48 +00:00
joshferraro
53272f3dad Fixes bug 749 by removing the comma on line 1488. 2004-03-24 17:18:30 +00:00
tipaul
f49bd9a544 bugfixes for newsearches 2004-03-24 10:44:48 +00:00
rangi
bb69d41e7b Fix for bug 761
Ill commit this to the rel-2-0 branch as well
2004-03-24 00:36:07 +00:00
tipaul
097e2d5718 bugfix : a missing } was placed at a wrong place. The auth did not work anymore... 2004-03-19 15:07:29 +00:00
tipaul
9d263d065b replaced by Reserves2 2004-03-17 15:59:39 +00:00
tipaul
fe1f0d563f removed : already exist in Circ2.pm 2004-03-17 15:55:27 +00:00
tipaul
072205a5d7 useless : replaced by Circ2.pm it seems 2004-03-17 15:53:09 +00:00
tipaul
c45548257d removing Returns, that is useless 2004-03-17 15:48:28 +00:00
tipaul
baf896c940 removing unused package 2004-03-17 15:16:58 +00:00
joshferraro
7684b9caf5 fixed missing } at EOF 2004-03-16 20:29:04 +00:00
rangi
8b84c25809 Fixing some bogus sql 2004-03-15 20:24:13 +00:00
tipaul
f981c4c15f introducing new features :
* search on non marc fields : the marc field is found by a sub in Biblio.pm
* ordering a search

This commit shows the sql in log. Pls test it's correctly indexed (using : explain <sql_in_log>)
2004-03-15 14:34:18 +00:00
tipaul
f3ab1904dc missing my 2004-03-15 14:32:40 +00:00
tipaul
5c1ba0f7b8 adding a minor check 2004-03-15 14:31:50 +00:00
tipaul
0b468a1a96 *** empty log message *** 2004-03-11 16:06:20 +00:00
acli
29b1df6046 Various updates/fixes from rel_2_0
Fixes for bugs 721 (templating), 727, and 734
2004-03-07 05:47:31 +00:00
rangi
adc12a8cd8 Starting on C4::Query,
Currently doesnt do anything much at all.
Im building a skeleton module then ill flesh it out
2004-03-07 01:49:34 +00:00
rangi
795a46d49f Got rid of the last error message -1 bug 2004-03-06 21:26:44 +00:00
tipaul
1498ce1415 adding seealso feature in MARC searches 2004-03-06 20:26:13 +00:00
tipaul
7d08d249a0 adding LDAP auth.
Introduce a new Perl dependency Net:LDAP
2004-03-04 16:49:09 +00:00
tipaul
b5113b8e5b unsued package. beginning code cleaning 2004-03-04 15:39:41 +00:00
tipaul
45d347b60e unsued package. beginning code cleaning 2004-03-04 15:32:46 +00:00
tipaul
e2b33cc485 bugfix (wrong synch with rel_2_0) 2004-02-20 10:34:59 +00:00
tipaul
15defe58a9 deleting subs duplicated by error 2004-02-12 13:40:56 +00:00
tipaul
58951e551f new feature : stocktaking/inventory.
Look in reports menu
(no DB changes)
2004-02-12 09:16:18 +00:00
tipaul
af08d677c5 synch'ing 2.0.0 branch (RC4 tag) and head 2004-02-11 08:42:01 +00:00
tipaul
3635a596cf synch'ing 2.0.0 branch and head 2004-02-11 08:35:31 +00:00
acli
1286644ded This allows the user to type zh_TW and still get Chinese from the zh-TW
directory.
2004-02-10 00:43:21 +00:00
rangi
d9bda8b778 Fix for bug 605, committing here as well as the stable branch 2004-01-15 23:33:29 +00:00
tipaul
f8bde9b034 sync'ing with rel_2_0 (mostly prepare/execute pb, bug #662) 2003-12-22 19:16:58 +00:00
tipaul
864f90efd4 fix for #318 2003-12-19 14:44:46 +00:00
slef
8a7d5ff66c DBI call fix for bug 662 2003-12-17 01:28:31 +00:00
slef
928d76058a DBI call fix for bug 662 2003-12-15 16:18:45 +00:00
slef
2075e13bf7 DBI call fix for bug 662 2003-12-15 16:07:36 +00:00
tipaul
3d031f028b fixing bug that duplicates entries under certain circumstances 2003-12-15 14:38:59 +00:00
slef
cba24ae2fe DBI call fix for bug 662 2003-12-15 13:41:43 +00:00
slef
2c26573466 DBI call fix for bug 662 2003-12-15 10:53:47 +00:00
slef
dc8e00e1c1 DBI call fix for bug 662 2003-12-15 10:49:46 +00:00
slef
b357beb032 Fix for bug reported by Owen 2003-12-14 17:25:37 +00:00
tipaul
571906a1a4 fixing compilation bugs 2003-12-11 12:56:34 +00:00
tipaul
3e4c958855 rolling back to working char_decode sub 2003-12-09 15:57:28 +00:00
slef
626bf007eb DBI call fix for bug 662 2003-12-09 15:03:00 +00:00
slef
0ea2a70c59 DBI call fix for bug 662 2003-12-09 14:47:38 +00:00
tipaul
cf802b5ad8 new feature : recent acquisition in opac. 2003-12-08 16:27:10 +00:00
slef
8b66c677e5 DBI call fix for bug 662 2003-12-08 14:45:30 +00:00
slef
7f1072e28f DBI call fix for bug 662 2003-12-08 14:24:55 +00:00
slef
732e834edf DBI call fix for bug 662 2003-12-08 14:14:56 +00:00
slef
c3491a735e DBI call fixes for bug 662 2003-12-08 14:08:49 +00:00
tipaul
fbce422b4e prepare(?) execute($var) fixes 2003-12-04 09:33:32 +00:00
tipaul
87819d35b1 bugfixes for biblio deletion 2003-12-03 17:47:14 +00:00
slef
a1d31b88e7 DBI fixes for bug 662 2003-12-03 12:09:44 +00:00
slef
8f6f8b99a9 DBI changes fixing bug 662 2003-12-03 12:05:40 +00:00
slef
7784d816a1 DBI fixes re bug 662. Removed worrying suggestion to use dbh->do in comments. 2003-12-03 11:51:52 +00:00
slef
76dc65f2ca DBI fixes as part of bug 662 2003-12-03 11:43:12 +00:00
slef
6ef083647e DBI changes as part of bug 662 2003-12-03 11:41:04 +00:00
slef
7734f87d73 fixes for bug 662, securing prepare 2003-12-03 02:19:25 +00:00
slef
49b6f7872f conflict markers? 2003-12-03 01:43:41 +00:00
slef
7b5ebdd51b bug 662 fixes securing DBI 2003-12-03 01:42:03 +00:00
slef
571d609ccd fix for bug 600 2003-12-02 22:13:25 +00:00
tipaul
802f047806 prepare(?) & execute($var) modif 2003-11-28 14:06:57 +00:00
tipaul
496c07ede0 bugfix : misusing prepare & execute => now using prepare(?) and execute($var) 2003-11-28 09:48:33 +00:00
tipaul
ef5134635a bugfix for iso2709 file import in the "notforloan" field.
But notforloan field called "loan" somewhere, so in case "loan" is used, copied to "notforloan" to avoid a bug.
2003-11-28 09:45:25 +00:00
tipaul
e5fddea941 fix for #385 2003-11-24 17:40:14 +00:00
tipaul
e0759d0934 fixing a bug in searches with stopwords (that where not dropped).
Moving "contains" as 1st choice for the search (= default one)
2003-11-24 16:53:10 +00:00
tipaul
6eb2c6141d biblio & item deletion now works fine in MARC editor.
Stores deleted biblio/item in the marc field of the deletedbiblio/deleteditem table.
2003-11-24 16:28:49 +00:00
tipaul
4a98096d23 execute($var) with ? bugfix 2003-11-24 16:24:24 +00:00
tipaul
49d00491c8 moving $id from beginning to end of file (70 commits... huge comments...) 2003-11-24 13:29:55 +00:00
tipaul
4333350f43 fix for #380 (bibliosubject) 2003-11-24 13:27:17 +00:00
tipaul
c196693358 minor fixes in thesaurus_popup & authorities.pm
NEW plugin : the plugin that manages 60X field in UNIMARC (i think it's the same in marc21). Used to search a thesaurus entry & parse bibliothesaurus table for category NC (Common Name in french).
The user can enter a search term, and see entries corresponding. If the search is a real entry in the thesaurus, and this entry has dependencies, they are shown too.
For example, if the thesaurus contains :
Geo -- Europe -- France -- Marseille
Geo -- Europe -- France -- Paris
Hist -- Europe -- France -- Revolution

A search on "France"
shows
Geo --Europe --France and Hist -- Europe -- France on the left panel
When the user clic on Geo -- Europe -- France,
Marseille & Paris are shown on the right panel.

When the user selects a value, it's reported to the MARC editor.

NOTE : template ONLY IN FRENCH (but it's 11PM for instance, & i plan to go to bed :-) )
2003-11-14 22:00:42 +00:00
tipaul
073d2233cc bugfix for #384
1st draft for MARC biblio deletion.
Still does not work well, but at least, Biblio.pm compiles & it should'nt break too many things
(Note the trash in the MARCdetail, but don't use it, please :-) )
2003-11-06 17:18:30 +00:00
rangi
9c998cda51 Fix for bug 535, and adding the classification column to the variables
available to the template
2003-11-04 19:48:50 +00:00
tipaul
11a414089f removing warning 2003-11-03 13:29:05 +00:00
rangi
5a808e96ef Fix for bug 621,
Returns not marking reserves waiting
2003-10-28 19:34:05 +00:00
tipaul
98884012cf minor fixes for bilbio deletion (still buggy) 2003-10-25 08:46:27 +00:00
tipaul
1af44318c6 Indexing only words longer than 2 letters. Was >=2 before, & 2 letters words usually means nothing. 2003-10-17 10:02:56 +00:00
tipaul
0d96be2e29 adding rebuildnonmarc.pl script : run this script when you change a link between marc and non MARC DB. It rebuilds the non-MARC DB (long operation) 2003-10-14 09:45:29 +00:00
tipaul
31a590d4ad fix for 536 (subtitle error) 2003-10-06 15:20:51 +00:00
tipaul
6cf22bce6d fix fog bug #622 : processz3950queue fails 2003-10-01 15:08:14 +00:00
tipaul
4434389d57 seems a char encoding problem modified something in char_decode sub... changing back to something that works... 2003-10-01 13:25:49 +00:00
rangi
425d7eb54f Fix for bug 618
duplicate cardnumber checking
2003-09-25 09:23:26 +00:00
tipaul
323642f5a1 all those fixes are related to translation improvement.
A few minor bugfixes too in perl code.

NOTE TO ENGLISH "TEMPLATORS" : you should look at this commits, as some ideas are really nice.  Thanks to Carole, Wesford School, new Koha user in France :-)
2003-09-18 10:19:28 +00:00
tipaul
139775d7c7 fixing bug that makes a MARC biblio disappear when using full acquisition (order => recieve ==> MARC editor).
Before this 2 lines fix, the MARC biblio was deleted during recieve, and had to be entirely recreated :-(
2003-09-17 14:21:13 +00:00
tipaul
64d6029a7d notforloan value in itemtype was overwritting notforloan value in a given item.
I changed this behaviour :
if notforloan is set for a given item, and NOT for all items from this itemtype, the notforloan is kept.
If notforloan is set for itemtype, it's used (and impossible to loan a specific item from this itemtype)
2003-09-17 10:24:39 +00:00
tipaul
45414c767b remove trailing , in subject list 2003-09-17 10:20:12 +00:00
rangi
b1acf4e1b4 Fix for bug 603 2003-09-12 00:46:21 +00:00
rangi
8d8102cdc3 Fix for showing the current borrower on the moredetail.pl page 2003-09-11 22:03:43 +00:00
tipaul
f2c07bb529 bugfix : biblios without isbn where not added into the breeding farm 2003-09-08 08:42:40 +00:00
tipaul
b36dc7537c fix for 593 (data duplication in MARC-DB) 2003-09-04 14:11:23 +00:00
tipaul
8bc5e4ab66 fix for 583 (values in marc_word table should have quotation marks, etc, stripped) 2003-09-04 10:17:07 +00:00
rangi
d7bf28d524 Fix for bug 562 2003-09-03 19:41:22 +00:00
tipaul
1b6d041c9c removing "warn" 2003-09-03 15:01:50 +00:00
wolfpac444
97350a2d42 Added support for author searching to KeywordSearch 2003-08-10 00:38:47 +00:00
tipaul
78c8b66905 fix for 570 : If a subject search is done from the OPAC or Intranet Catalogue, duplicate
results are returned.  For instance, if a search for 'dogs' returns 25 results
that have the subject 'dogs,' there will be 25 duplicate listings in the results.
2003-08-08 15:25:27 +00:00
tipaul
83cca02a46 fix for publicationyear : extracting numeric value from MARC string, like for copyrightdate.
(note that copyrightdate still extracted to get numeric format)
2003-08-06 12:54:52 +00:00
tipaul
b42279581b adding demo mode 2003-08-06 12:38:27 +00:00
tipaul
db8f840838 fix for 556 2003-08-06 12:37:54 +00:00
rangi
e6a4f80040 Another attempted fix for issuing bug, can NPL test this please.
It seems to be working ok for me
2003-08-04 01:53:55 +00:00
rangi
e0e3784e8b Fix for bug 293 2003-07-24 09:17:42 +00:00
slef
bdd6346c90 change show columns to use biblioitems bnotes too 2003-07-15 23:09:18 +00:00
slef
c72ec1dc6a fixes from paul email 2003-07-15 11:34:52 +00:00
slef
d0f40352af Work on bug 515... can we do a single-side rename of notes to bnotes? 2003-07-15 00:02:49 +00:00
tipaul
125530b3e3 *** empty log message *** 2003-07-11 11:51:32 +00:00
tipaul
af76ab2d58 typo fix 2003-07-10 12:24:20 +00:00
tipaul
cdb9220d74 fix for copyrightdate problem, #514 2003-07-10 10:37:19 +00:00
cauchoip
4309657656 small fixes (sql query formatting problems) 2003-07-10 10:19:21 +00:00
plugz
d3ccb3148f Searches with NOT are now fully functionnal
Can create SQL request for any number of statements.
FIXED: splits entry if operator is "contains" and the value is like "foo bar boo"
2003-07-08 11:59:08 +00:00
tipaul
354b08cb47 removing warnings 2003-07-07 14:43:58 +00:00
tipaul
bf1a858645 improving checkdigit sub. 2003-07-07 14:43:42 +00:00
tipaul
62361b7308 dramatically improves search speed when searching something OR somethingelse 2003-07-03 12:48:33 +00:00
tipaul
f1f7658357 fix for #519 : items.dateaccessioned imports incorrectly 2003-07-02 14:47:17 +00:00
tipaul
f558018f3d fix for #512 (not sure it's enogh. to be checked by NPL) 2003-07-02 13:57:13 +00:00
tipaul
71817b0ab1 fixing bug in thesaurus entry modification 2003-07-02 12:49:43 +00:00
wolfpac444
2ee3977b0e *** empty log message *** 2003-07-01 17:22:17 +00:00
plugz
bee78deec1 Added &getbranchname and &getborrowercategory
getbranchname : given branchcode returns branch name
getborrowercategory : given categorycode returns description
2003-07-01 10:30:05 +00:00
plugz
878b64dadd FIX: Incorrect parameters given to function Stats::UpdateStats in
issuebook and returnbook functions
2003-06-20 12:48:09 +00:00
plugz
e1e291d69b FIX: Incorrect values inserted in database. used '$a' instead of $a 2003-06-20 12:34:48 +00:00
plugz
47d135f123 Bugfix for #499
Simple search added, searching in the first letter of surnames.
Added commentary inside Search.pm for explanations
2003-06-20 08:48:16 +00:00
plugz
94ac73b0d3 bugfix for #499
The BornameSearch function now uses the $type parameter
Single and advanced search methods implemented.
Advanced is the old version.
Single only looks for $member% in surnames.
2003-06-19 16:14:30 +00:00
tipaul
bb7fecd745 improvments/fixes for z3950 support.
* Works now even on ADD, not only on MODIFY
* able to search on ISBN, author, title
2003-06-17 11:21:12 +00:00
rangi
63fc432b9e Fixing a bug ine sql 2003-06-17 08:48:24 +00:00
rangi
5bfaef8cfb Just added an order clause to getitemtypes 2003-06-16 09:22:53 +00:00
rangi
fc78b91222 Ordering branches by branchname 2003-06-16 09:19:44 +00:00
tonnesen
66bf985d0a Added two new routines for getting a list of available themes/languages (used
by new systempreferences.pl script to present a list of available themes or
languages).
2003-06-11 18:48:07 +00:00
tonnesen
c41c02271d Changing "preference()" calls to "boolean_preference()" calls 2003-06-11 18:44:01 +00:00
tonnesen
3ba349bd4e Increased default inactivity timeout from 2 minutes to 5 minutes. 2003-06-11 18:40:53 +00:00
tipaul
a72d9621ae removing searchborrower from circ2.pm.
Already exists in Search.pm
this fixes bug #439 and improve consistency.
2003-06-05 17:03:31 +00:00
rangi
f2b1c3d3a2 Fixing a bug that was breaking adding or modifying suppliers 2003-05-30 21:22:49 +00:00
tipaul
27edbcc574 fixing typo in Biblio.pm POD 2003-05-20 16:22:44 +00:00
tipaul
d8551b19c2 * PARTIAL fix for #322 => gives strange results imho
* removing unused subs
* indenting with tabs
* adding monthly report (stats.pl?time=month)
2003-05-19 16:20:51 +00:00
tipaul
fffb89aef4 fixing strange bug when cardnumber not set and borrower does not exists : sometimes finded value anyway ! 2003-05-19 14:55:32 +00:00
wolfpac444
9f32a8adf0 Bug fixes. 2003-05-19 13:59:12 +00:00
tipaul
7a95c1d809 support for subtitles, additional authors, subject.
This supports is only for MARC <-> OLD-DB link. It worked previously, but values entered as MARC were not reported to OLD-DB, neither values entered as OLD-DB were reported to MARC.
Note that some OLD-DB subs are strange (dummy ?) see OLDmodsubject, OLDmodsubtitle, OLDmodaddiauthor in C4/Biblio.pm
For example it seems impossible to have more that 1 addi author and 1 subtitle. In MARC it's not the case. So, if you enter more than one, I'm afraid only the LAST will be stored.
2003-05-19 13:45:18 +00:00
wolfpac444
5169e23b54 Fixed theme/language templating in intranet. 2003-05-13 05:10:07 +00:00
wolfpac444
0499df0045 Fixed bug #405 2003-05-08 14:12:29 +00:00
wolfpac444
8b4a044bb5 Changed the scripts to use format_date 2003-05-08 13:19:39 +00:00
wolfpac444
00fef22485 Added "noissuescharge" parameter 2003-05-08 12:48:23 +00:00
tipaul
368d9107a2 moving loggedinuser => loggedinusername in includes and Auth.pm :
The $loggedinuser in Koha is the CODE of the logged user (result of get_user_and_template subroutine).
BTW, in get_user_and_template subroutine, the TMPL_VAR loggedinuser is replaced by the NAME of the user.
This is troubleshooting.
so, I replace the name by the "loggedinusername" template variable.
If you want to add the username somewhere, just add <TMPL_VAR name="loggedinusername"> in the template.

Fixes bug #401
2003-05-05 15:00:53 +00:00
tipaul
1a218daf74 fix : when a book is taken and marked "not returned yet", it's now marked returned and issue done. 2003-05-05 14:14:28 +00:00
wolfpac444
b65bd46a6b *** empty log message *** 2003-05-05 11:51:20 +00:00
tipaul
fa5d7968a2 missing " 2003-05-05 10:11:34 +00:00
tipaul
3c4012d4de fix for 191, code reindenting & some query improvment 2003-05-05 09:41:03 +00:00
tipaul
7608bee7cf removing warnings 2003-05-02 13:07:14 +00:00
tipaul
5a54bfc1ae *** empty log message *** 2003-05-02 13:05:08 +00:00
rangi
76b467c900 renewbook is used by renewscript.pl
Making sure characters are escaped in the database insert
2003-04-30 22:55:54 +00:00
tipaul
22567447ce *** empty log message *** 2003-04-29 16:51:15 +00:00
tipaul
26543b430e really proud of this commit :-)
z3950 search and import seems to works fine.
Let me explain how :
* a "search z3950" button is added in the addbiblio template.
* when clicked, a popup appears and z3950/search.pl is called
* z3950/search.pl calls addz3950search in the DB
* the z3950 daemon retrieve the records and stores them in z3950results AND in marc_breeding table.
* as long as there as searches pending, the popup auto refresh every 2 seconds, and says how many searches are pending.
* when the user clicks on a z3950 result => the parent popup is called with the requested biblio, and auto-filled

Note :
* character encoding support : (It's a nightmare...) In the z3950servers table, a "encoding" column has been added. You can put "UNIMARC" or "USMARC" in this column. Depending on this, the char_decode in C4::Biblio.pm replaces marc-char-encode by an iso 8859-1 encoding. Note that in the breeding import this value has been added too, for a better support.
* the marc_breeding and z3950* tables have been modified : they have an encoding column and the random z3950 number is stored too for convenience => it's the key I use to list only requested biblios in the popup.
2003-04-29 16:48:25 +00:00
tipaul
a3c119a356 z3950 support is coming...
* adding a syntax column in z3950 table = this column will say wether the z3950 must be called with PerferedRecordsyntax => USMARC or PerferedRecordsyntax => UNIMARC. I tried some french UNIMARC z3950 servers, and some only send USMARC, some only UNIMARC, some can answer with both.
Note this is a 1st draft. More to follow (today ? I hope).
2003-04-29 08:09:42 +00:00
tipaul
e5bbeace3d Those fixes solves the "internal server error" with MARC::Record 1.12.
It was due to an illegal contruction in Koha : we tried to retrive subfields from <10 tags.
That's not possible. MARC::Record accepted this in 0.93 version, but it was fixed after.
Now, the construct/retrieving is OK !
2003-04-28 13:07:14 +00:00
tipaul
4b18c35c6f fix for #410 2003-04-24 18:28:40 +00:00
tipaul
e565c001ee some fixes 2003-04-24 16:29:09 +00:00
tipaul
d215d11c3d fix for 361 2003-04-24 16:28:47 +00:00
tipaul
e57535b581 fix for #297 and some others bugs 2003-04-23 12:20:26 +00:00
tipaul
a118eeacfc 1st draft for z3950 client import.
moving Breeding farm script to a perl package C4/Breeding.pm
2003-04-22 12:22:52 +00:00
tipaul
7d34ac8ec4 *** empty log message *** 2003-04-11 08:41:06 +00:00
tipaul
88867f1426 Fix some bugs :
* worked in 1.9.0, but not in 1.9.1 :
- modif of a biblio didn't work
- empty fields where not shown when modifying a biblio. empty fields managed by the library (ie in tab 0->9 in MARC parameter table) MUST be entered, even if not presented.

* did not work before :
- repeatable subfields now works correctly. Enter 2 subfields separated by | and they will be splitted during saving.
- dropped the last subfield of the MARC form :-(

Internal changes :
- MARCmodbiblio now works by deleting and recreating the biblio. It's not perf optimized, but MARC is a "do_something_impossible_to_trace" standard, so, it's the best solution. not a problem for me, as biblio are rarely modified.
Note the MARCdelbiblio has been rewritted to enable deletion of a biblio WITHOUT deleting items.
2003-04-10 13:56:02 +00:00
tipaul
533c38dc8f fix for #229 2003-04-08 11:30:55 +00:00
tipaul
844797459f fix for #187 2003-04-07 14:05:24 +00:00
wolfpac444
e4d7a39bab Fixed the dates in aqbudget.pl 2003-04-05 03:19:33 +00:00
tipaul
e60f831e1f last commits before 1.9.1 2003-04-04 08:40:44 +00:00
wolfpac444
6b0a39e5bb Fixed bug #250 2003-04-04 08:04:16 +00:00
wolfpac444
a5587ab3a2 Added Paul's changes to the version that should be current. I have been having problems with my version reverting back to an old
one.
2003-04-03 01:28:28 +00:00
tipaul
cc35b709e1 small fix to avoid empty list when itemtypes does'nt exist in DB 2003-04-01 13:19:55 +00:00
tipaul
452e65166c fixes 2003-04-01 12:26:43 +00:00
tipaul
674c150697 small improvment 2003-04-01 12:26:02 +00:00
wolfpac444
16f422a8f7 Bug fixes 2003-03-29 00:02:24 +00:00
wolfpac444
4dd0e8d2fb Here we go again... 2003-03-28 23:08:30 +00:00
wolfpac444
ca0bf13bd0 Fixed bug #241 2003-03-28 23:03:51 +00:00
wolfpac444
333e222461 *** empty log message *** 2003-03-26 04:42:56 +00:00
wolfpac444
14809df133 *** empty log message *** 2003-03-26 04:42:56 +00:00
wolfpac444
00d780e00e Hmm.. having problems getting my changes to Date.pm saved... 2003-03-26 04:09:06 +00:00
wolfpac444
20da23088a Added format_date_in_iso function. 2003-03-26 03:57:10 +00:00
wolfpac444
28be0337c5 Fixed problems with non-US date such as 28/10/1983. 2003-03-26 03:46:20 +00:00
wolfpac444
feb424a443 Module to format dates in the correct manner. 2003-03-26 02:48:59 +00:00
tipaul
86631c1a8e fix for bug #54 2003-03-19 21:37:21 +00:00
tipaul
3205a1a3ff reindenting & code cleaning 2003-03-19 21:03:32 +00:00
tipaul
feae3136b4 adding checkdigit parameter that choose how to check the members cardnumber.
At the moment :
* none = no checking
* katipo = checked as before
2003-03-18 10:58:19 +00:00
tipaul
9658d683f6 pod updating 2003-03-11 15:14:03 +00:00
tipaul
b9fbe0083f *** empty log message *** 2003-03-10 15:19:33 +00:00
tipaul
1b0620652e * moving generic functions to Koha.pm
* improvement of SearchMarc.pm
* bugfixes
* code cleaning
2003-03-07 16:35:42 +00:00
tipaul
f953c4a169 adding "interface" parameter : /intranet-tmpl or /opac-tmpl 2003-03-04 17:49:50 +00:00
tipaul
4b2c43a9a9 bugfix for bookseller forgot and minor sql improvement 2003-03-03 17:37:34 +00:00
tipaul
867a82398e migrating to prepare (?) execute($var) structure 2003-03-03 17:36:32 +00:00
tipaul
69a3b7e8ae small bugfix 2003-02-28 16:29:11 +00:00
tipaul
fe8746a471 * moving prepare / execute to ? form.
* some # cleaning
* little bugfix.
* road to 1.9.2 => acquisition and cataloguing merging
2003-02-27 16:51:59 +00:00
wolfpac444
4e3888e2ec Fixed the subject search. 2003-02-21 02:25:03 +00:00
wolfpac444
c3c3f27ec7 *** empty log message *** 2003-02-19 01:33:52 +00:00
wolfpac444
4d88a09509 Removed the unecessary $dbh argument from being passed.
Resolved a few minor FIXMEs.
2003-02-19 01:01:06 +00:00
wolfpac444
04ce9b04f1 Cleaned up the FIXME issues. 2003-02-19 00:39:18 +00:00
tipaul
fa0f51d9c2 Support for 000 -> 010 fields.
Those fields doesn't have subfields.
In koha, we will use a specific "trick" : fields <10 will have a "virtual" subfield : "@".
Note it's only virtual : when rebuilding the MARC::Record, the koha API handle correctly "@" subfields => the resulting MARC record has a 00x field without subfield.
2003-02-12 11:01:04 +00:00
tipaul
8d75bf9568 Support for 000 -> 010 fields.
Those fields doesn't have subfields.
In koha, we will use a specific "trick" : fields <10 will have a "virtual" subfield : "@".
Note it's only virtual : when rebuilding the MARC::Record, the koha API handle correctly "@" subfields => the resulting MARC record has a 00x field without subfield.
2003-02-12 11:01:01 +00:00
tipaul
bd9239fee1 removing unused sub 2003-02-10 13:37:08 +00:00
acli
7d7deb7b36 Moved the cardnumber generation logic out of memberentry.pl; new module
C4::Members created to hold this logic

Fixed syntax error in newimember.pl
Make newimember.pl use the cardnumber generation logic (bug 206)
Updated newimember.pl to use get_template_and_user
Other minor mods to newimember.pl; new tab size noted
2003-02-10 07:14:16 +00:00
acli
ac6592a669 Fixed completely wrong logic in my boolean_preference function 2003-02-10 06:37:00 +00:00
acli
be5f5273fa Tentatively export the "internal" function CalcReserveFee ; opac-reserves
uses it

Noted correct tab size
2003-02-06 07:41:28 +00:00
acli
47aa996a11 Forgot to take out debugging code 2003-02-06 07:07:54 +00:00
acli
850a3e41f6 Use the new C4::Boolean module and the new C4::Auth::boolean_parameter
function to test for boolean values in parameters
2003-02-06 06:35:26 +00:00
acli
6157f1842b Convenience function to check for 1/0/true/false/on/off/yes/no 2003-02-06 06:15:00 +00:00
acli
8f722b5829 POD elaboration for checkauth() (esp. regarding "$flagsrequired") 2003-02-06 06:13:59 +00:00
acli
fc5d0e3961 Explicitly declare dependency on HTML::Template
If checkauth() detects a permission problem (e.g., in untemplated scripts),
this is necessary for the code (that displays the error message) to run
(otherwise Perl dies with a very cryptic, confusing error message)
2003-02-06 05:04:36 +00:00
acli
6ac450b83b Converted a few SQL statements to use ? to fix a few strange SQL errors
Noted correct tab size
2003-02-05 10:05:02 +00:00
acli
88dcb0a314 Changed the 3 "this does nothing" lines to set the flag. Is this right? 2003-02-05 07:55:42 +00:00
acli
f475af255f Implemented fixes for bug 170
1. Circ2::returnbook will throw an exception if $branch is undef
2. branch/printer-getting code is modularized into getbranch and getprinter
   with correct logic from circulation.pl (temporarily put into Circ2.pm)
3. circulation.pl and returns.pl modified to use above functions

Noted correct tab sizes for the files; returns.pl partially reformatted to
conform to the dominant correct tab size

Handle non-latin1 charsets for returns.pl
2003-02-05 06:28:56 +00:00
tonnesen
f58bb6afe0 Removing +1y expiry time from cookies so that cookies expire when the browser
exits.
2003-02-04 17:57:10 +00:00
acli
f1ae358bcd Reverted to using s/// instead of quotemeta for title/author/illustrator,
to avoid quoting spaces (which results in most titles/authors etc. becoming
unsearchable) (Bug 197)
2003-02-04 04:44:35 +00:00
acli
b5ecefd485 Minor factoring in C4/Biblio.pm, plus change to export the per-tag
'mandatory' property to a per-subfield 'tag_mandatory' template parameter,
so that addbiblio.tmpl can distinguish between mandatory subfields in a
mandatory tag and mandatory subfields in an optional tag

Not-minor factoring in acqui.simple/addbiblio.pl to make the if-else blocks
smaller, and to add some POD; need further testing for this

Added function to check if a MARC subfield name is "koha-internal" (instead
of checking it for 'lib' and 'tag' everywhere); temporarily added to Koha.pm

Use above function in acqui.simple/additem.pl and search.marc/search.pl
2003-02-03 18:46:00 +00:00
acli
8f62498205 Updated module location 2003-02-03 07:23:14 +00:00
acli
32b87866dd Minor code cleanup
(Implemented some simple FIXME's in C4/Search.pm)
2003-02-03 02:15:43 +00:00
acli
16d67236c2 Distinguish between On Loan, Item Lost, and Withdrawn, instead of saying
just "not available".  Cf. Bug 112
2003-02-02 08:47:01 +00:00
acli
e9858a2910 Moved C4/Charset.pm to C4/Interface/CGI/Output.pm 2003-02-02 07:19:29 +00:00
acli
52a5fd4bbd Moved C4/Charset.pm to C4/Interface/CGI/Output.pm
Create output_html_with_http_headers function to contain the "print $query
->header(-type => guesstype...),..." call. This is in preparation for
non-HTML output (e.g., text/xml) and charset conversion before output in
the future.

Created C4/Interface/CGI/Template.pm to hold convenience functions specific
to the CGI interface using HTML::Template

Modified moremembers.pl to make the "sex" field localizable for languages
where M and F doesn't make sense
2003-02-02 07:18:37 +00:00
tipaul
c23d07724e search on MARC datas.
first draft
2003-01-28 14:56:39 +00:00
tipaul
d8c2e556ce fixing a sql query not using prepare(?) & execute($var) method 2003-01-28 14:53:30 +00:00
tipaul
c0c8f96121 fixing MARCmodbiblio API and reindenting code 2003-01-28 14:50:04 +00:00
tipaul
4cbb08cd5e bugfix #168 + "breedingsearch" sub added+ "isbnsearch" (used only in acqui.simple, should disappear soon) now works on title and isbn 2003-01-28 14:46:50 +00:00
acli
47fcb64527 Temporary patch for bug 182 2003-01-26 04:37:17 +00:00
acli
ef50ee5217 Use ? for an SQL query to prevent SQL syntax errors 2003-01-25 20:05:20 +00:00
tipaul
8392f92ec0 adding char_decode to decode MARC21 or UNIMARC extended chars 2003-01-23 12:22:37 +00:00
acli
b242ad44ec Removed scoping-related perl warnings 2003-01-20 07:38:54 +00:00
acli
5d52c8bf49 Removed scoping-related perl warnings
Factored similar code in getborrowernumber
"i.e." in one comment should be "e.g."
2003-01-20 07:38:23 +00:00
acli
2e7bb9a106 Removed perl warning 2003-01-20 07:35:31 +00:00
acli
ea50c2acb6 Preliminary fix of the CGI.pm problem of always assuming that everything is
in ISO-8859-1.

A new C4::Charset module (tentative name) has been created to guess the
charset of a piece of HTML markup. The CGI programs will be modified to use
this module as they are encountered during translation.
2003-01-19 06:15:44 +00:00
acli
6bdd53ded8 Added < to the filenames of open() calls 2003-01-19 06:13:27 +00:00
tipaul
95791d11cf last bugfix before releasing 1.3.3. Not trully a bugfix (see release notes) 2003-01-06 13:31:01 +00:00
tipaul
40d6ddb383 checks that the config file passed in parameter exist, otherwise, uses the default one (/etc/koha.conf)
useful in upgradedb2marc.pl script.
* if this script is called during installation, uses /etc/koha.conf.tmp
* if it's called manually (after installation), uses /etc/koha.conf, as the tmp file is no more here :-)
2002-12-20 13:54:31 +00:00
tipaul
6098d9c4eb little modif in gettemplate.
auto-replaces theme and lang template variable.
This is useful if you have images in your template :
<img src="/<TMPL_VAR name="theme">/<TMPL_VAR name="lang">/images/picture.gif>
or
<img src="/<TMPL_VAR name="theme">/images/picture.gif>
in the case of a non-language dependant image.

Before this fix, gettemplate only replaced a variable called themelang, which was useful for language dependant images, but didn't work with theme-only images.
Note the previous behaviour is still activated (ie : themelang still works)
2002-12-20 08:35:19 +00:00
hdl
16c57f0a75 Templating reservereport et shelves. 2002-12-19 18:55:40 +00:00
hdl
9d8857f344 Templating reports.pl
This might be of no use... Since it is never called and seems obsolete.
2002-12-19 15:22:18 +00:00
tipaul
80a37bdd4a small but important bugfix (fixes a problem in export) 2002-12-16 15:08:50 +00:00
tipaul
4b9af7f1ff 1st draft of marc export 2002-12-13 16:22:04 +00:00
tipaul
a067d70c35 code cleaning 2002-12-13 10:36:22 +00:00
tipaul
4d315418f2 YAB ! (Yet Another Bugfix) => related to biblio modif
(some warning cleaning too)
2002-12-12 21:26:35 +00:00
tipaul
dd696c61e8 adding authentification with Auth.pm and
MAJOR BUGFIX on marc biblio modification
2002-12-12 16:34:41 +00:00