diff --git a/admin/itemtypes.pl b/admin/itemtypes.pl index d4eb0c160f..1a9c507d99 100755 --- a/admin/itemtypes.pl +++ b/admin/itemtypes.pl @@ -96,16 +96,42 @@ if ($op eq 'add_form') { my $data; if ($itemtype) { my $dbh = C4::Context->dbh; - my $sth=$dbh->prepare("select itemtype,description,renewalsallowed,rentalcharge,notforloan from itemtypes where itemtype=?"); + my $sth=$dbh->prepare("select * from itemtypes where itemtype=?"); $sth->execute($itemtype); $data=$sth->fetchrow_hashref; $sth->finish; } + # build list of images + my $imagedir = C4::Context->opachtdocs."/".C4::Context->preference('opacthemes'); + warn "img : $imagedir"; + unless (opendir(DIR, "$imagedir/itemtypeimg/")) { +# my $cgidir = C4::Context->intranetdir; + opendir(DIR, "$imagedir/value_builder") || die "can't opendir $imagedir/value_builder: $!"; + } + my @imagelist; + while (my $line = readdir(DIR)) { + if ($line =~ /\.gif$/) { + my %x; + $x{KohaImage} = "$line"; + push @imagelist, \%x; + } + } + closedir DIR; +# my $CGIitemtypes = CGI::scrolling_list(-name=>'itemtypes', +# -id=>"itemtypes", +# -values=> \@imagelist, +# -size=>1, +# -multiple=>0, +# ); +# $template->param(itemtype => $itemtype, description => $data->{'description'}, renewalsallowed => $data->{'renewalsallowed'}, rentalcharge => sprintf("%.2f",$data->{'rentalcharge'}), - notforloan => $data->{'notforloan'} + notforloan => $data->{'notforloan'}, + imageurl => $data->{'imageurl'}, + opacthemes => C4::Context->preference('opacthemes'), + IMAGESLOOP => \@imagelist, ); ; # END $OP eq ADD_FORM @@ -113,11 +139,12 @@ if ($op eq 'add_form') { # called by add_form, used to insert/modify data in DB } elsif ($op eq 'add_validate') { my $dbh = C4::Context->dbh; - my $sth=$dbh->prepare("replace itemtypes (itemtype,description,renewalsallowed,rentalcharge,notforloan) values (?,?,?,?,?)"); + my $sth=$dbh->prepare("replace itemtypes (itemtype,description,renewalsallowed,rentalcharge,notforloan,imageurl) values (?,?,?,?,?,?)"); $sth->execute( $input->param('itemtype'),$input->param('description'), $input->param('renewalsallowed'),$input->param('rentalcharge'), - $input->param('notforloan')?1:0); + $input->param('notforloan')?1:0, + $input->param('imageurl')); $sth->finish; print "Content-Type: text/html\n\n"; exit; @@ -143,9 +170,10 @@ if ($op eq 'add_form') { $sth->finish; $template->param(itemtype => $itemtype, - description => $data->{'description'}, - renewalsallowed => $data->{'renewalsallowed'}, - rentalcharge => sprintf("%.2f",$data->{'rentalcharge'}), + description => $data->{description}, + renewalsallowed => $data->{renewalsallowed}, + rentalcharge => sprintf("%.2f",$data->{rentalcharge}), + imageurl => $data->{imageurl}, total => $total); # END $OP eq DELETE_CONFIRM ################## DELETE_CONFIRMED ################################## @@ -180,10 +208,16 @@ if ($op eq 'add_form') { $row_data{description} = $results->[$i]{description}; $row_data{renewalsallowed} = $results->[$i]{renewalsallowed}; $row_data{notforloan} = $results->[$i]{notforloan}; + if ($results->[$i]{imageurl} =~ /^http/) { + $row_data{absoluteurl} = 1; + } + $row_data{imageurl} = $results->[$i]{imageurl}; $row_data{rentalcharge} = sprintf("%.2f",$results->[$i]{rentalcharge}); push(@loop_data, \%row_data); } - $template->param(loop => \@loop_data); + $template->param(loop => \@loop_data, + opacthemes => C4::Context->preference('opacthemes') + ); if ($offset>0) { my $prevpage = $offset-$pagesize; $template->param(previous => "$script_name?offset=".$prevpage); diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/itemtypes.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/itemtypes.tmpl index e41b7ed8e8..dc8c823717 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/itemtypes.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/itemtypes.tmpl @@ -56,6 +56,10 @@ function Check(f) { alert(alertString2); } } + +function report_itemtype(value_to_report) { + Aform.imageurl.value=value_to_report; +}
@@ -76,6 +80,13 @@ function Check(f) { ">

+

+ + " size="40" maxlength="80"> + + ')">/itemtypeimg/"> + +

@@ -138,7 +149,16 @@ function Check(f) { - + + + + "> + + /itemtypeimg/"> + + + + Yes diff --git a/koha-tmpl/opac-tmpl/css/en/opac-searchresults.tmpl b/koha-tmpl/opac-tmpl/css/en/opac-searchresults.tmpl index 8e56530253..45d20f9fac 100644 --- a/koha-tmpl/opac-tmpl/css/en/opac-searchresults.tmpl +++ b/koha-tmpl/opac-tmpl/css/en/opac-searchresults.tmpl @@ -79,7 +79,11 @@

class="hilighted"> - + + /itemtypeimg/" title="" + + + class="hilighted"> diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/AF.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/AF.gif new file mode 100644 index 0000000000..718f594d7b Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/AF.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/AV.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/AV.gif new file mode 100644 index 0000000000..cb5c906f3c Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/AV.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/AVA.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/AVA.gif new file mode 100644 index 0000000000..3b0445a82c Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/AVA.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/AVJ.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/AVJ.gif new file mode 100644 index 0000000000..653053ccfd Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/AVJ.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/AVJNF.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/AVJNF.gif new file mode 100644 index 0000000000..4719a8e7c4 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/AVJNF.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/AVNF.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/AVNF.gif new file mode 100644 index 0000000000..b8e598a157 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/AVNF.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Audiobook.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Audiobook.gif new file mode 100644 index 0000000000..6e263d9fcc Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Audiobook.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Biography.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Biography.gif new file mode 100644 index 0000000000..6639fed137 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Biography.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Book on CD.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Book on CD.gif new file mode 100644 index 0000000000..9c2c8362f6 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Book on CD.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Book on Tape.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Book on Tape.gif new file mode 100644 index 0000000000..87e9efd277 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Book on Tape.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/CD-ROM software.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/CD-ROM software.gif new file mode 100644 index 0000000000..6afb0c8de5 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/CD-ROM software.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/CDM.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/CDM.gif new file mode 100644 index 0000000000..1d3b155a13 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/CDM.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/DVD.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/DVD.gif new file mode 100644 index 0000000000..12b87d6148 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/DVD.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/EASY.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/EASY.gif new file mode 100644 index 0000000000..4e5c93a62a Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/EASY.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/EDLS.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/EDLS.gif new file mode 100644 index 0000000000..951298dc39 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/EDLS.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Ed. Curriculum.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Ed. Curriculum.gif new file mode 100644 index 0000000000..f2b4c577d2 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Ed. Curriculum.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/FLAG.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/FLAG.gif new file mode 100644 index 0000000000..031fbb0cf2 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/FLAG.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Faculty Course Materials.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Faculty Course Materials.gif new file mode 100644 index 0000000000..9a10aec729 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Faculty Course Materials.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Fiction, large print.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Fiction, large print.gif new file mode 100644 index 0000000000..aa8228ce3c Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Fiction, large print.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Fiction.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Fiction.gif new file mode 100644 index 0000000000..718f594d7b Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Fiction.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/JB.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/JB.gif new file mode 100644 index 0000000000..8c21ae9398 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/JB.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/JF.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/JF.gif new file mode 100644 index 0000000000..336c5bb7c2 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/JF.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/JNF.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/JNF.gif new file mode 100644 index 0000000000..126db4f912 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/JNF.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/JREF.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/JREF.gif new file mode 100644 index 0000000000..a9c8873499 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/JREF.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile audiobook.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile audiobook.gif new file mode 100644 index 0000000000..99d392a1ac Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile audiobook.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile biography.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile biography.gif new file mode 100644 index 0000000000..8c21ae9398 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile biography.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile book-tape kit.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile book-tape kit.gif new file mode 100644 index 0000000000..1c44625209 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile book-tape kit.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile fiction.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile fiction.gif new file mode 100644 index 0000000000..336c5bb7c2 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile fiction.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile non-fiction.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile non-fiction.gif new file mode 100644 index 0000000000..126db4f912 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile non-fiction.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile picture books.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile picture books.gif new file mode 100644 index 0000000000..4e5c93a62a Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile picture books.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile reference.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile reference.gif new file mode 100644 index 0000000000..a9c8873499 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Juvenile reference.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/KIT.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/KIT.gif new file mode 100644 index 0000000000..1c44625209 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/KIT.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/LP.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/LP.gif new file mode 100644 index 0000000000..aa8228ce3c Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/LP.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/LPNF.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/LPNF.gif new file mode 100644 index 0000000000..4d220b24d1 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/LPNF.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Local history.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Local history.gif new file mode 100644 index 0000000000..cebb3cb13f Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Local history.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/MAG.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/MAG.gif new file mode 100644 index 0000000000..927386cbef Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/MAG.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/MFLM.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/MFLM.gif new file mode 100644 index 0000000000..47d12cc265 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/MFLM.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/MZ.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/MZ.gif new file mode 100644 index 0000000000..927386cbef Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/MZ.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Magazine.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Magazine.gif new file mode 100644 index 0000000000..927386cbef Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Magazine.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Microfiche.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Microfiche.gif new file mode 100644 index 0000000000..d75744a999 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Microfiche.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Microfilm.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Microfilm.gif new file mode 100644 index 0000000000..47d12cc265 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Microfilm.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Music CD.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Music CD.gif new file mode 100644 index 0000000000..1d3b155a13 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Music CD.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Mystery.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Mystery.gif new file mode 100644 index 0000000000..3a815d1fb8 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Mystery.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Non-fiction, large print.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Non-fiction, large print.gif new file mode 100644 index 0000000000..4d220b24d1 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Non-fiction, large print.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Non-fiction.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Non-fiction.gif new file mode 100644 index 0000000000..b05b25fb00 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Non-fiction.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/PB.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/PB.gif new file mode 100644 index 0000000000..c4394b1a22 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/PB.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/PF.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/PF.gif new file mode 100644 index 0000000000..89034ce0dd Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/PF.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Pamphlet.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Pamphlet.gif new file mode 100644 index 0000000000..89034ce0dd Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Pamphlet.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Paperback romance.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Paperback romance.gif new file mode 100644 index 0000000000..c4394b1a22 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Paperback romance.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Rare Book.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Rare Book.gif new file mode 100644 index 0000000000..217660ee49 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Rare Book.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Reference.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Reference.gif new file mode 100644 index 0000000000..699b534dbf Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Reference.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/SIRS.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/SIRS.gif new file mode 100644 index 0000000000..8275dae06d Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/SIRS.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/SS.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/SS.gif new file mode 100644 index 0000000000..a68185b6b7 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/SS.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Science fiction & Fantasy.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Science fiction & Fantasy.gif new file mode 100644 index 0000000000..30e4b296b6 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Science fiction & Fantasy.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Video disc.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Video disc.gif new file mode 100644 index 0000000000..12b87d6148 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Video disc.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Videocassette, juvenile non-fiction.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Videocassette, juvenile non-fiction.gif new file mode 100644 index 0000000000..4719a8e7c4 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Videocassette, juvenile non-fiction.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Videocassette, juvenile.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Videocassette, juvenile.gif new file mode 100644 index 0000000000..653053ccfd Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Videocassette, juvenile.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Videocassette, non-fiction.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Videocassette, non-fiction.gif new file mode 100644 index 0000000000..b8e598a157 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Videocassette, non-fiction.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Videocassette.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Videocassette.gif new file mode 100644 index 0000000000..cb5c906f3c Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Videocassette.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Vinyl Sound Recordings.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Vinyl Sound Recordings.gif new file mode 100644 index 0000000000..976f926d25 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Vinyl Sound Recordings.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/WEB.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/WEB.gif new file mode 100644 index 0000000000..c7082d9dc3 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/WEB.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Western.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Western.gif new file mode 100644 index 0000000000..b420179388 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Western.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/YA.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/YA.gif new file mode 100644 index 0000000000..a5911b2220 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/YA.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/YAC.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/YAC.gif new file mode 100644 index 0000000000..b8ab2d45d3 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/YAC.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Young Adult fiction.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Young Adult fiction.gif new file mode 100644 index 0000000000..a5911b2220 Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Young Adult fiction.gif differ diff --git a/koha-tmpl/opac-tmpl/css/itemtypeimg/Young Adult non fiction.gif b/koha-tmpl/opac-tmpl/css/itemtypeimg/Young Adult non fiction.gif new file mode 100644 index 0000000000..f30c0ac03f Binary files /dev/null and b/koha-tmpl/opac-tmpl/css/itemtypeimg/Young Adult non fiction.gif differ diff --git a/updater/updatedatabase b/updater/updatedatabase index 189eb2f242..3284285a6f 100755 --- a/updater/updatedatabase +++ b/updater/updatedatabase @@ -98,6 +98,7 @@ my %requiretables = ( my %requirefields = ( subscription => { 'letter' => 'char(20) NULL'}, + itemtypes => { 'imageurl' => 'char(200) NULL'}, # tablename => { 'field' => 'fieldtype' }, ); @@ -276,6 +277,7 @@ foreach $table ( keys %fielddefinitions ) { my $field = $row->{field}; my $type = $row->{type}; my $null = $row->{null}; +# $null = 'YES' if $row->{null} eq 'NULL'; my $key = $row->{key}; my $default = $row->{default}; $default="''" unless $default; @@ -619,6 +621,13 @@ sub MARCgetitem { exit; # $Log$ +# Revision 1.122 2005/09/02 14:18:38 tipaul +# new feature : image for itemtypes. +# +# * run updater/updatedatabase to create imageurl field in itemtypes. +# * go to Koha >> parameters >> itemtypes >> modify (or add) an itemtype. You will see around 20 nice images to choose between (thanks to owen). If you prefer your own image, you also can type a complete url (http://www.myserver.lib/path/to/my/image.gif) +# * go to OPAC, and search something. In the result list, you now have the picture instead of the text itemtype. +# # Revision 1.121 2005/08/24 08:49:03 hdl # Adding a note field in serial table. # This will allow librarian to mention a note on a peculiar waiting serial number.