Merge remote-tracking branch 'origin/master' into new/bug_5327
|
@ -217,7 +217,7 @@ sub makepayment {
|
|||
|
||||
#check to see what accounttype
|
||||
if ( $data->{'accounttype'} eq 'Rep' || $data->{'accounttype'} eq 'L' ) {
|
||||
ReturnLostItem( $borrowernumber, $data->{'itemnumber'} );
|
||||
C4::Circulation::ReturnLostItem( $borrowernumber, $data->{'itemnumber'} );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2077,7 +2077,7 @@ sub TransformHtmlToXml {
|
|||
}
|
||||
$prevtag = @$tags[$i];
|
||||
}
|
||||
$xml .= "</datafield>\n" if @$tags > 0;
|
||||
$xml .= "</datafield>\n" if $xml =~ m/<datafield/;
|
||||
if ( C4::Context->preference('marcflavour') eq 'UNIMARC' and !$unimarc_and_100_exist ) {
|
||||
|
||||
# warn "SETTING 100 for $auth_type";
|
||||
|
|
|
@ -61,7 +61,7 @@ sub _check_params {
|
|||
return $exit_code;
|
||||
}
|
||||
|
||||
use constant PRESET_FIELDS => [qw(title author isbn issn itemtype barcode callnumber)];
|
||||
use constant PRESET_FIELDS => [qw(title author isbn issn itemtype barcode itemcallnumber)];
|
||||
sub new {
|
||||
my $invocant = shift;
|
||||
my $self = '';
|
||||
|
|
|
@ -490,7 +490,6 @@ sub parseletter_sth {
|
|||
($table eq 'biblioitems' ) ? "SELECT * FROM $table WHERE biblionumber = ?" :
|
||||
($table eq 'items' ) ? "SELECT * FROM $table WHERE itemnumber = ?" :
|
||||
($table eq 'issues' ) ? "SELECT * FROM $table WHERE itemnumber = ?" :
|
||||
($table eq 'suggestions' ) ? "SELECT * FROM $table WHERE borrowernumber = ? and biblionumber = ?" :
|
||||
($table eq 'reserves' ) ? "SELECT * FROM $table WHERE borrowernumber = ? and biblionumber = ?" :
|
||||
($table eq 'borrowers' ) ? "SELECT * FROM $table WHERE borrowernumber = ?" :
|
||||
($table eq 'branches' ) ? "SELECT * FROM $table WHERE branchcode = ?" :
|
||||
|
|
|
@ -2126,7 +2126,7 @@ sub AddMessage {
|
|||
my $query = "INSERT INTO messages ( borrowernumber, branchcode, message_type, message ) VALUES ( ?, ?, ?, ? )";
|
||||
my $sth = $dbh->prepare($query);
|
||||
$sth->execute( $borrowernumber, $branchcode, $message_type, $message );
|
||||
|
||||
logaction("MEMBERS", "ADDCIRCMESSAGE", $borrowernumber, $message) if C4::Context->preference("BorrowersLog");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -2216,11 +2216,15 @@ sub DeleteMessage {
|
|||
my ( $message_id ) = @_;
|
||||
|
||||
my $dbh = C4::Context->dbh;
|
||||
|
||||
my $query = "DELETE FROM messages WHERE message_id = ?";
|
||||
my $query = "SELECT * FROM messages WHERE message_id = ?";
|
||||
my $sth = $dbh->prepare($query);
|
||||
$sth->execute( $message_id );
|
||||
my $message = $sth->fetchrow_hashref();
|
||||
|
||||
$query = "DELETE FROM messages WHERE message_id = ?";
|
||||
$sth = $dbh->prepare($query);
|
||||
$sth->execute( $message_id );
|
||||
logaction("MEMBERS", "DELCIRCMESSAGE", $message->{'borrowernumber'}, $message->{'message'}) if C4::Context->preference("BorrowersLog");
|
||||
}
|
||||
|
||||
END { } # module clean-up code here (global destructor)
|
||||
|
|
|
@ -643,13 +643,16 @@ C<$borrowernumber> is the borrowernumber
|
|||
sub GetFine {
|
||||
my ( $itemnum, $borrowernumber ) = @_;
|
||||
my $dbh = C4::Context->dbh();
|
||||
my $query = "SELECT sum(amountoutstanding) FROM accountlines
|
||||
where accounttype like 'F%'
|
||||
AND amountoutstanding > 0 AND itemnumber = ? AND borrowernumber=?";
|
||||
my $query = q|SELECT sum(amountoutstanding) as fineamount FROM accountlines
|
||||
where accounttype like 'F%'
|
||||
AND amountoutstanding > 0 AND itemnumber = ? AND borrowernumber=?|;
|
||||
my $sth = $dbh->prepare($query);
|
||||
$sth->execute( $itemnum, $borrowernumber );
|
||||
my $data = $sth->fetchrow_hashref();
|
||||
return ( $data->{'sum(amountoutstanding)'} );
|
||||
my $fine = $sth->fetchrow_hashref();
|
||||
if ($fine->{fineamount}) {
|
||||
return $fine->{fineamount};
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -91,11 +91,13 @@ sub updatereview {
|
|||
}
|
||||
|
||||
sub numberofreviews {
|
||||
my ($param) = @_;
|
||||
my $status = (defined($param) ? $param : 1);
|
||||
my $dbh = C4::Context->dbh;
|
||||
my $query =
|
||||
"SELECT count(*) FROM reviews WHERE approved=?";
|
||||
my $sth = $dbh->prepare($query);
|
||||
$sth->execute( 1 );
|
||||
$sth->execute( $status );
|
||||
return $sth->fetchrow;
|
||||
}
|
||||
|
||||
|
|
19
C4/Tags.pm
|
@ -40,6 +40,7 @@ BEGIN {
|
|||
&whitelist
|
||||
&is_approved
|
||||
&approval_counts
|
||||
&get_count_by_tag_status
|
||||
&get_filters
|
||||
);
|
||||
# %EXPORT_TAGS = ();
|
||||
|
@ -92,6 +93,24 @@ sub approval_counts () {
|
|||
return $result;
|
||||
}
|
||||
|
||||
=head2 get_count_by_tag_status
|
||||
|
||||
get_count_by_tag_status($status);
|
||||
|
||||
Takes a status and gets a count of tags with that status
|
||||
|
||||
=cut
|
||||
|
||||
sub get_count_by_tag_status {
|
||||
my ($status) = @_;
|
||||
my $dbh = C4::Context->dbh;
|
||||
my $query =
|
||||
"SELECT count(*) FROM tags_approval WHERE approved=?";
|
||||
my $sth = $dbh->prepare($query);
|
||||
$sth->execute( $status );
|
||||
return $sth->fetchrow;
|
||||
}
|
||||
|
||||
sub remove_tag ($;$) {
|
||||
my $tag_id = shift or return undef;
|
||||
my $user_id = (@_) ? shift : undef;
|
||||
|
|
41
about.pl
|
@ -33,6 +33,8 @@ use C4::Auth;
|
|||
use C4::Context;
|
||||
use C4::Installer;
|
||||
|
||||
#use Smart::Comments '####';
|
||||
|
||||
my $query = new CGI;
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
|
@ -106,7 +108,46 @@ foreach (@components) {
|
|||
$row = [];
|
||||
}
|
||||
}
|
||||
## ## $table
|
||||
|
||||
$template->param( table => $table );
|
||||
|
||||
|
||||
## ------------------------------------------
|
||||
## Koha time line code
|
||||
|
||||
#get file location
|
||||
my $dir = C4::Context->config('intranetdir');
|
||||
open( my $file, "<", "$dir" . "/docs/history.txt" );
|
||||
my $i = 0;
|
||||
|
||||
my @rows2 = ();
|
||||
my $row2 = [];
|
||||
|
||||
my @lines = <$file>;
|
||||
close($file);
|
||||
|
||||
shift @lines; #remove header row
|
||||
|
||||
foreach (@lines) {
|
||||
my ( $date, $desc, $tag ) = split(/\t/);
|
||||
push(
|
||||
@rows2,
|
||||
{
|
||||
date => $date,
|
||||
desc => $desc,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
my $table2 = [];
|
||||
#foreach my $row2 (@rows2) {
|
||||
foreach (@rows2) {
|
||||
push (@$row2, $_);
|
||||
push( @$table2, { row2 => $row2 } );
|
||||
$row2 = [];
|
||||
}
|
||||
|
||||
$template->param( table2 => $table2 );
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
|
|
@ -68,7 +68,7 @@ my $title=$query->param('title');
|
|||
my $bi=$query->param('bi');
|
||||
$bi = $biblionumber unless $bi;
|
||||
my $itemnumber = $query->param('itemnumber');
|
||||
my $data=GetBiblioData($biblionumber);
|
||||
my $data = &GetBiblioData($biblionumber);
|
||||
my $dewey = $data->{'dewey'};
|
||||
my $showallitems = $query->param('showallitems');
|
||||
|
||||
|
@ -86,7 +86,6 @@ my $subscriptionsnumber = CountSubscriptionFromBiblionumber($biblionumber);
|
|||
# $dewey=~ s/\.$//;
|
||||
# $data->{'dewey'}=$dewey;
|
||||
|
||||
my @results;
|
||||
my $fw = GetFrameworkCode($biblionumber);
|
||||
my @all_items= GetItemsInfo($biblionumber);
|
||||
my @items;
|
||||
|
@ -107,7 +106,7 @@ if (@hostitems){
|
|||
push (@items,@hostitems);
|
||||
}
|
||||
|
||||
|
||||
my $subtitle = GetRecordValue('subtitle', $record, $fw);
|
||||
|
||||
my $totalcount=@all_items;
|
||||
my $showncount=@items;
|
||||
|
@ -120,7 +119,11 @@ my $ccodes= GetKohaAuthorisedValues('items.ccode',$fw);
|
|||
my $itemtypes = GetItemTypes;
|
||||
|
||||
$data->{'itemtypename'} = $itemtypes->{$data->{'itemtype'}}->{'description'};
|
||||
$results[0]=$data;
|
||||
|
||||
foreach ( keys %{$data} ) {
|
||||
$template->param( "$_" => defined $data->{$_} ? $data->{$_} : '' );
|
||||
}
|
||||
|
||||
($itemnumber) and @items = (grep {$_->{'itemnumber'} == $itemnumber} @items);
|
||||
foreach my $item (@items){
|
||||
$item->{itemlostloop}= GetAuthorisedValues(GetAuthValCode('items.itemlost',$fw),$item->{itemlost}) if GetAuthValCode('items.itemlost',$fw);
|
||||
|
@ -171,15 +174,18 @@ $template->param(count => $data->{'count'},
|
|||
subscriptiontitle => $data->{title},
|
||||
C4::Search::enabled_staff_search_views,
|
||||
);
|
||||
$template->param(BIBITEM_DATA => \@results);
|
||||
$template->param(ITEM_DATA => \@items);
|
||||
$template->param(moredetailview => 1);
|
||||
$template->param(loggedinuser => $loggedinuser);
|
||||
$template->param(biblionumber => $biblionumber);
|
||||
$template->param(biblioitemnumber => $bi);
|
||||
$template->param(itemnumber => $itemnumber);
|
||||
|
||||
$template->param(
|
||||
ITEM_DATA => \@items,
|
||||
moredetailview => 1,
|
||||
loggedinuser => $loggedinuser,
|
||||
biblionumber => $biblionumber,
|
||||
biblioitemnumber => $bi,
|
||||
itemnumber => $itemnumber,
|
||||
z3950_search_params => C4::Search::z3950_search_args(GetBiblioData($biblionumber)),
|
||||
subtitle => $subtitle,
|
||||
);
|
||||
$template->param(ONLY_ONE => 1) if ( $itemnumber && $showncount != @items );
|
||||
$template->param(z3950_search_params => C4::Search::z3950_search_args(GetBiblioData($biblionumber)));
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
use strict;
|
||||
#use warnings; FIXME - Bug 2505
|
||||
|
||||
use open OUT=>':utf8', ':std';
|
||||
use open OUT=>":encoding(UTF-8)", ':std';
|
||||
|
||||
# standard or CPAN modules used
|
||||
use CGI qw(:standard);
|
||||
|
|
|
@ -159,7 +159,7 @@ sub MARCfindbreeding {
|
|||
|
||||
=cut
|
||||
|
||||
sub build_authorized_values_list ($$$$$$$) {
|
||||
sub build_authorized_values_list {
|
||||
my ( $tag, $subfield, $value, $dbh, $authorised_values_sth,$index_tag,$index_subfield ) = @_;
|
||||
|
||||
my @authorised_values;
|
||||
|
@ -252,7 +252,7 @@ sub build_authorized_values_list ($$$$$$$) {
|
|||
|
||||
=cut
|
||||
|
||||
sub CreateKey(){
|
||||
sub CreateKey {
|
||||
return int(rand(1000000));
|
||||
}
|
||||
|
||||
|
@ -263,7 +263,7 @@ sub CreateKey(){
|
|||
|
||||
=cut
|
||||
|
||||
sub GetMandatoryFieldZ3950($){
|
||||
sub GetMandatoryFieldZ3950 {
|
||||
my $frameworkcode = shift;
|
||||
my @isbn = GetMarcFromKohaField('biblioitems.isbn',$frameworkcode);
|
||||
my @title = GetMarcFromKohaField('biblio.title',$frameworkcode);
|
||||
|
@ -536,7 +536,7 @@ sub format_indicator {
|
|||
return $ind_value;
|
||||
}
|
||||
|
||||
sub build_tabs ($$$$$) {
|
||||
sub build_tabs {
|
||||
my ( $template, $record, $dbh, $encoding,$input ) = @_;
|
||||
|
||||
# fill arrays
|
||||
|
|
|
@ -381,7 +381,8 @@ if ($op eq "additem") {
|
|||
my ($tagfield,$tagsubfield) = &GetMarcFromKohaField("items.barcode",$frameworkcode);
|
||||
|
||||
# If there is a barcode and we can't find him new values, we can't add multiple copies
|
||||
my $testbarcode = $barcodeobj->next_value($oldbarcode) if $barcodeobj;
|
||||
my $testbarcode;
|
||||
$testbarcode = $barcodeobj->next_value($oldbarcode) if $barcodeobj;
|
||||
if ($oldbarcode && !$testbarcode) {
|
||||
|
||||
push @errors, "no_next_barcode";
|
||||
|
@ -480,7 +481,17 @@ if ($op eq "additem") {
|
|||
$nextop="additem";
|
||||
}
|
||||
else {
|
||||
print $input->redirect("/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=$biblionumber");
|
||||
my $defaultview = C4::Context->preference('IntranetBiblioDefaultView');
|
||||
my $views = { C4::Search::enabled_staff_search_views };
|
||||
if ($defaultview eq 'isbd' && $views->{can_view_ISBD}) {
|
||||
print $input->redirect("/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=$biblionumber");
|
||||
} elsif ($defaultview eq 'marc' && $views->{can_view_MARC}) {
|
||||
print $input->redirect("/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=$biblionumber");
|
||||
} elsif ($defaultview eq 'labeled_marc' && $views->{can_view_labeledMARC}) {
|
||||
print $input->redirect("/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=$biblionumber");
|
||||
} else {
|
||||
print $input->redirect("/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber");
|
||||
}
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -250,7 +250,7 @@ Create a random value to set it into the input name
|
|||
|
||||
=cut
|
||||
|
||||
sub createKey(){
|
||||
sub createKey {
|
||||
return int(rand(1000000));
|
||||
}
|
||||
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
# with Koha; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
#use strict;
|
||||
#use warnings; FIXME - Bug 2505
|
||||
use strict;
|
||||
use warnings;
|
||||
use C4::Context;
|
||||
|
||||
=head1 plugin_parameters
|
||||
|
@ -53,12 +53,12 @@ sub plugin_javascript {
|
|||
|
||||
my $branchcode = C4::Context->userenv->{'branch'};
|
||||
|
||||
$query = "SELECT MAX(CAST(SUBSTRING_INDEX(stocknumber,'_',-1) AS SIGNED))+1 FROM items WHERE homebranch = ? AND stocknumber LIKE ?";
|
||||
my $query = "SELECT MAX(CAST(SUBSTRING_INDEX(stocknumber,'_',-1) AS SIGNED))+1 FROM items WHERE homebranch = ? AND stocknumber LIKE ?";
|
||||
my $sth=$dbh->prepare($query);
|
||||
|
||||
$sth->execute($branchcode,$branchcode."_%");
|
||||
my ($nextnum) = $sth->fetchrow;
|
||||
my $nextnum = $branchcode.'_'.$nextnum;
|
||||
$nextnum = $branchcode.'_'.$nextnum;
|
||||
|
||||
my $scr = <<END_OF_JS;
|
||||
if (\$('#' + id).val() == '' || force) {
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
# with Koha; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
#use strict;
|
||||
#use warnings; FIXME - Bug 2505
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use C4::AuthoritiesMarc;
|
||||
use C4::Auth;
|
||||
|
@ -110,7 +110,10 @@ my ($input) = @_;
|
|||
my $authtypes = getauthtypes;
|
||||
my @authtypesloop;
|
||||
foreach my $thisauthtype (keys %$authtypes) {
|
||||
my $selected = 1 if $thisauthtype eq $authtypecode;
|
||||
my $selected;
|
||||
if ($thisauthtype eq $authtypecode) {
|
||||
$selected=1;
|
||||
}
|
||||
my %row =(value => $thisauthtype,
|
||||
selected => $selected,
|
||||
authtypetext => $authtypes->{$thisauthtype}{'authtypetext'},
|
||||
|
@ -183,7 +186,7 @@ my ($input) = @_;
|
|||
} else {
|
||||
$to = (($startfrom+1)*$resultsperpage);
|
||||
}
|
||||
my $link="../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_210c.pl&authtypecode=EDITORS&and_or=$and_or&marclist=$marclist&operator=$operator&orderby=$orderby&excluding=$excluding&".join("&",map {"value=".$_} @value)."&op=do_search&type=intranet&index=$index";
|
||||
my $link="../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_210c.pl&authtypecode=EDITORS&".join("&",map {"value=".$_} @value)."&op=do_search&type=intranet&index=$index";
|
||||
|
||||
$template->param(result => $results) if $results;
|
||||
$template->param('index' => $query->param('index'));
|
||||
|
|
|
@ -269,8 +269,10 @@ sub plugin {
|
|||
$subfield_value_t = $marcrecord->field('500')->subfield("a");
|
||||
}
|
||||
|
||||
my $subfield_value_u = $marcrecord->field('856')->subfield("u")
|
||||
if ( $marcrecord->field('856') );
|
||||
my $subfield_value_u;
|
||||
if ( $marcrecord->field('856') ) {
|
||||
$subfield_value_u = $marcrecord->field('856')->subfield("u");
|
||||
}
|
||||
|
||||
my $subfield_value_v;
|
||||
if ( ( $marcrecord->field('225') )
|
||||
|
@ -283,14 +285,17 @@ sub plugin {
|
|||
{
|
||||
$subfield_value_v = $marcrecord->field('200')->subfield("h");
|
||||
}
|
||||
my $subfield_value_x = $marcrecord->field('011')->subfield("a")
|
||||
if (
|
||||
my $subfield_value_x;
|
||||
if (
|
||||
$marcrecord->field('011')
|
||||
and not( ( $marcrecord->field('011')->subfield("y") )
|
||||
or ( $marcrecord->field('011')->subfield("z") ) )
|
||||
);
|
||||
my $subfield_value_y = $marcrecord->field('013')->subfield("a")
|
||||
if ( $marcrecord->field('013') );
|
||||
or ( $marcrecord->field('011')->subfield("z") ) ) ) {
|
||||
$subfield_value_x = $marcrecord->field('011')->subfield("a");
|
||||
}
|
||||
my $subfield_value_y;
|
||||
if ( $marcrecord->field('013') ) {
|
||||
$subfield_value_y = $marcrecord->field('013')->subfield("a");
|
||||
}
|
||||
if ( $marcrecord->field('010') ) {
|
||||
$subfield_value_y = $marcrecord->field('010')->subfield("a");
|
||||
}
|
||||
|
@ -374,7 +379,10 @@ sub plugin {
|
|||
my $record = MARC::Record::new_from_usmarc( $results->[$i] );
|
||||
my $rechash = TransformMarcToKoha( $dbh, $record );
|
||||
my $pos;
|
||||
my $countitems = 1 if ( $rechash->{itemnumber} );
|
||||
my $countitems;
|
||||
if ( $rechash->{itemnumber} ) {
|
||||
$countitems=1;
|
||||
}
|
||||
while ( index( $rechash->{itemnumber}, '|', $pos ) > 0 ) {
|
||||
$countitems += 1;
|
||||
$pos = index( $rechash->{itemnumber}, '|', $pos ) + 1;
|
||||
|
|
|
@ -39,7 +39,7 @@ my $field = $input->param('field');
|
|||
# Prevent from disclosing data
|
||||
die() unless ($table eq "biblioitems");
|
||||
|
||||
binmode STDOUT, ":utf8";
|
||||
binmode STDOUT, ":encoding(UTF-8)";
|
||||
print $input->header( -type => 'text/plain', -charset => 'UTF-8' );
|
||||
|
||||
my ( $auth_status, $sessionID ) = check_cookie_auth( $input->cookie('CGISESSID'), { cataloguing => '*' } );
|
||||
|
|
|
@ -118,13 +118,16 @@ if ($barcode) {
|
|||
my %item;
|
||||
my $frbranchcd = C4::Context->userenv->{'branch'};
|
||||
# if ( not($found) ) {
|
||||
$item{'biblionumber'} = $iteminformation->{'biblionumber'};
|
||||
$item{'title'} = $iteminformation->{'title'};
|
||||
$item{'author'} = $iteminformation->{'author'};
|
||||
$item{'itemtype'} = $iteminformation->{'itemtype'};
|
||||
$item{'ccode'} = $iteminformation->{'ccode'};
|
||||
$item{'frbrname'} = $branches->{$frbranchcd}->{'branchname'};
|
||||
$item{'tobrname'} = $branches->{$tobranchcd}->{'branchname'};
|
||||
$item{'biblionumber'} = $iteminformation->{'biblionumber'};
|
||||
$item{'itemnumber'} = $iteminformation->{'itemnumber'};
|
||||
$item{'title'} = $iteminformation->{'title'};
|
||||
$item{'author'} = $iteminformation->{'author'};
|
||||
$item{'itemtype'} = $iteminformation->{'itemtype'};
|
||||
$item{'ccode'} = $iteminformation->{'ccode'};
|
||||
$item{'itemcallnumber'} = $iteminformation->{'itemcallnumber'};
|
||||
$item{'location'} = GetKohaAuthorisedValueLib("LOC",$iteminformation->{'location'});
|
||||
$item{'frbrname'} = $branches->{$frbranchcd}->{'branchname'};
|
||||
$item{'tobrname'} = $branches->{$tobranchcd}->{'branchname'};
|
||||
# }
|
||||
$item{counter} = 0;
|
||||
$item{barcode} = $barcode;
|
||||
|
@ -148,13 +151,16 @@ foreach ( $query->param ) {
|
|||
$item{frombrcd} = $frbcd;
|
||||
$item{tobrcd} = $tobcd;
|
||||
my ($iteminformation) = GetBiblioFromItemNumber( GetItemnumberFromBarcode($bc) );
|
||||
$item{'biblionumber'} = $iteminformation->{'biblionumber'};
|
||||
$item{'title'} = $iteminformation->{'title'};
|
||||
$item{'author'} = $iteminformation->{'author'};
|
||||
$item{'itemtype'} = $iteminformation->{'itemtype'};
|
||||
$item{'ccode'} = $iteminformation->{'ccode'};
|
||||
$item{'frbrname'} = $branches->{$frbcd}->{'branchname'};
|
||||
$item{'tobrname'} = $branches->{$tobcd}->{'branchname'};
|
||||
$item{'biblionumber'} = $iteminformation->{'biblionumber'};
|
||||
$item{'itemnumber'} = $iteminformation->{'itemnumber'};
|
||||
$item{'title'} = $iteminformation->{'title'};
|
||||
$item{'author'} = $iteminformation->{'author'};
|
||||
$item{'itemtype'} = $iteminformation->{'itemtype'};
|
||||
$item{'ccode'} = $iteminformation->{'ccode'};
|
||||
$item{'itemcallnumber'} = $iteminformation->{'itemcallnumber'};
|
||||
$item{'location'} = GetKohaAuthorisedValueLib("LOC",$iteminformation->{'location'});
|
||||
$item{'frbrname'} = $branches->{$frbcd}->{'branchname'};
|
||||
$item{'tobrname'} = $branches->{$tobcd}->{'branchname'};
|
||||
push( @trsfitemloop, \%item );
|
||||
}
|
||||
|
||||
|
@ -187,35 +193,37 @@ if ( $codeType eq 'itemtype' ) {
|
|||
|
||||
my @errmsgloop;
|
||||
foreach my $code ( keys %$messages ) {
|
||||
my %err;
|
||||
if ( $code eq 'BadBarcode' ) {
|
||||
$err{msg} = $messages->{'BadBarcode'};
|
||||
$err{errbadcode} = 1;
|
||||
if ( $code ne 'WasTransfered' ) {
|
||||
my %err;
|
||||
if ( $code eq 'BadBarcode' ) {
|
||||
$err{msg} = $messages->{'BadBarcode'};
|
||||
$err{errbadcode} = 1;
|
||||
}
|
||||
elsif ( $code eq "NotAllowed" ) {
|
||||
warn "NotAllowed: $messages->{'NotAllowed'} to " . $branches->{ $messages->{'NotAllowed'} }->{'branchname'};
|
||||
# Do we really want a error log message here? --atz
|
||||
$err{errnotallowed} = 1;
|
||||
my ( $tbr, $typecode ) = split( /::/, $messages->{'NotAllowed'} );
|
||||
$err{tbr} = $branches->{ $tbr }->{'branchname'};
|
||||
$err{code} = $typecode;
|
||||
$err{codeType} = $codeTypeDescription;
|
||||
}
|
||||
elsif ( $code eq 'IsPermanent' ) {
|
||||
$err{errispermanent} = 1;
|
||||
$err{msg} = $branches->{ $messages->{'IsPermanent'} }->{'branchname'};
|
||||
}
|
||||
elsif ( $code eq 'WasReturned' ) {
|
||||
$err{errwasreturned} = 1;
|
||||
$err{borrowernumber} = $messages->{'WasReturned'};
|
||||
my $borrower = GetMember('borrowernumber'=>$messages->{'WasReturned'});
|
||||
$err{title} = $borrower->{'title'};
|
||||
$err{firstname} = $borrower->{'firstname'};
|
||||
$err{surname} = $borrower->{'surname'};
|
||||
$err{cardnumber} = $borrower->{'cardnumber'};
|
||||
}
|
||||
$err{errdesteqholding} = ( $code eq 'DestinationEqualsHolding' );
|
||||
push( @errmsgloop, \%err );
|
||||
}
|
||||
elsif ( $code eq "NotAllowed" ) {
|
||||
warn "NotAllowed: $messages->{'NotAllowed'} to " . $branches->{ $messages->{'NotAllowed'} }->{'branchname'};
|
||||
# Do we really want a error log message here? --atz
|
||||
$err{errnotallowed} = 1;
|
||||
my ( $tbr, $typecode ) = split( /::/, $messages->{'NotAllowed'} );
|
||||
$err{tbr} = $branches->{ $tbr }->{'branchname'};
|
||||
$err{code} = $typecode;
|
||||
$err{codeType} = $codeTypeDescription;
|
||||
}
|
||||
elsif ( $code eq 'IsPermanent' ) {
|
||||
$err{errispermanent} = 1;
|
||||
$err{msg} = $branches->{ $messages->{'IsPermanent'} }->{'branchname'};
|
||||
}
|
||||
elsif ( $code eq 'WasReturned' ) {
|
||||
$err{errwasreturned} = 1;
|
||||
$err{borrowernumber} = $messages->{'WasReturned'};
|
||||
my $borrower = GetMember('borrowernumber'=>$messages->{'WasReturned'});
|
||||
$err{title} = $borrower->{'title'};
|
||||
$err{firstname} = $borrower->{'firstname'};
|
||||
$err{surname} = $borrower->{'surname'};
|
||||
$err{cardnumber} = $borrower->{'cardnumber'};
|
||||
}
|
||||
$err{errdesteqholding} = ( $code eq 'DestinationEqualsHolding' );
|
||||
push( @errmsgloop, \%err );
|
||||
}
|
||||
|
||||
# use Data::Dumper;
|
||||
|
|
|
@ -510,7 +510,7 @@ if ($borrowerslist) {
|
|||
{
|
||||
push @values, $_->{'borrowernumber'};
|
||||
$labels{ $_->{'borrowernumber'} } =
|
||||
"$_->{'surname'}, $_->{'firstname'} ... ($_->{'cardnumber'} - $_->{'categorycode'}) ... $_->{'address'} ";
|
||||
"$_->{'surname'}, $_->{'firstname'} ... ($_->{'cardnumber'} - $_->{'categorycode'} - $_->{'branchcode'}) ... $_->{'address'} ";
|
||||
}
|
||||
$CGIselectborrower = CGI::scrolling_list(
|
||||
-name => 'borrowernumber',
|
||||
|
|
|
@ -236,7 +236,8 @@ if ($noreport) {
|
|||
|
||||
my $strsth="SELECT date_due,
|
||||
borrowers.title as borrowertitle,
|
||||
concat(surname,' ', firstname) as borrower,
|
||||
borrowers.surname,
|
||||
borrowers.firstname,
|
||||
borrowers.streetnumber,
|
||||
borrowers.streettype,
|
||||
borrowers.address,
|
||||
|
@ -282,11 +283,12 @@ if ($noreport) {
|
|||
$strsth =~ s/WHERE 1=1/WHERE 1=1 AND borrowers.borrowernumber IN ($bnlist)/ if $bnlist;
|
||||
$strsth =~ s/WHERE 1=1/WHERE 0=1/ if $have_pattr_filter_data && !$bnlist; # no match if no borrowers matched patron attrs
|
||||
$strsth.=" ORDER BY " . (
|
||||
($order eq "borrower" or $order eq "borrower desc") ? "$order, date_due" :
|
||||
($order eq "title" or $order eq "title desc") ? "$order, date_due, borrower" :
|
||||
($order eq "barcode" or $order eq "barcode desc") ? "items.$order, date_due, borrower" :
|
||||
($order eq "date_due desc") ? "date_due DESC, borrower" :
|
||||
"date_due, borrower" # default sort order
|
||||
($order eq "borrower") ? "surname, firstname, date_due" :
|
||||
($order eq "borrower desc") ? "surname desc, firstname desc, date_due" :
|
||||
($order eq "title" or $order eq "title desc") ? "$order, date_due, surname, firstname" :
|
||||
($order eq "barcode" or $order eq "barcode desc") ? "items.$order, date_due, surname, firstname" :
|
||||
($order eq "date_due desc") ? "date_due DESC, surname, firstname" :
|
||||
"date_due, surname, firstname" # default sort order
|
||||
);
|
||||
$template->param(sql=>$strsth);
|
||||
my $sth=$dbh->prepare($strsth);
|
||||
|
@ -315,7 +317,8 @@ if ($noreport) {
|
|||
itemnum => $data->{itemnumber},
|
||||
issuedate => format_date($data->{issuedate}),
|
||||
borrowertitle => $data->{borrowertitle},
|
||||
name => $data->{borrower},
|
||||
surname => $data->{surname},
|
||||
firstname => $data->{firstname},
|
||||
streetnumber => $data->{streetnumber},
|
||||
streettype => $data->{streettype},
|
||||
address => $data->{address},
|
||||
|
|
60
debian/docs/LEEME.Debian
vendored
Normal file
|
@ -0,0 +1,60 @@
|
|||
Configuracion de Post Instalacion
|
||||
==================================
|
||||
|
||||
Usted deberia considerar hacer lo siguiente despues de instalar este paquete:
|
||||
|
||||
* Instalar mysql-server, para una base de datos local.
|
||||
|
||||
* Alternativamente, puede configurar una conexion remota a un servidor MySQL:
|
||||
- rm /etc/mysql/koha-common.cnf
|
||||
- $SUEDITOR /etc/mysql/koha-common.cnf
|
||||
|
||||
[client]
|
||||
host = algun.otro.host
|
||||
user = mysqlusername
|
||||
password = mysqlpassword
|
||||
|
||||
* Habilitar la re-escritura del modulo: a2enmod rewrite
|
||||
|
||||
* Escuchar en el puerto 8080: $SUEDITOR /etc/apache2/ports.conf
|
||||
|
||||
* Alternativamente, puede configurar koha-create, usando /etc/koha/koha-sites.conf
|
||||
(ver /usr/sbin/koha-create para establecer las variables ).
|
||||
|
||||
* Despues de esto, usted puede crear una nueva instancia de Koha:
|
||||
- koha-create --create-db name
|
||||
|
||||
|
||||
Diseño del sistema de archivo de Koha en Debian
|
||||
================================================
|
||||
|
||||
El paquete Debian de Koha pone archivos en los siguientes lugares:
|
||||
|
||||
* /etc/koha -- archivos de configuración del sistema
|
||||
* /etc/cron.hourly/koha-common -- cron job
|
||||
* /etc/cron.daily/koha-common -- cron job
|
||||
* /etc/cron.d/koha-common -- cron job
|
||||
* /usr/share/koha -- archivos compartidos (plantillas HTML, codigo Perl, etc)
|
||||
|
||||
Cada instancia de Koha tiene archivos en los siguientes lugares:
|
||||
|
||||
* /etc/koha/sites/$name -- archivos de configuración
|
||||
* /etc/apache2/sites-available/$name -- Archivo configuración Apache
|
||||
* /var/lib/koha/$name -- Bases de datos Zebra
|
||||
* /var/log/koha/$name -- archivos log (Apache, Zebra)
|
||||
* /var/lock/koha/$name -- run-time lock files
|
||||
* /var/run/koha/$name -- run-time sockets etc
|
||||
* /var/spool/koha/$name -- dumps bases de datos
|
||||
|
||||
|
||||
Koha y MySQL
|
||||
==============
|
||||
|
||||
El script de post instalacion de Koha-common crea el archivo /etc/mysql/koha-common.cnf,
|
||||
y todos los scripts usan esté para acceder a las bases de datos MySQL. Por defecto,
|
||||
es un enlace simbólico que apunta a debian.cnf, y sólo trabaja en el servidor local.
|
||||
Si usted lo desea, puede crear un archivo /etc/mysql/koha-common.cnf en lugar
|
||||
del enlace simbólico, y que apunte a un servidor remoto. En la actualidad no existe
|
||||
ninguna herramienta para ayudarle a hacer eso, pero debería ser bastante sencillo.
|
||||
|
||||
|
1
debian/koha-common.docs
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
debian/docs/LEEME.Debian
|
132
debian/templates/koha-conf-site.xml.in
vendored
|
@ -3,8 +3,28 @@
|
|||
<listen id="biblioserver" >unix:/var/run/koha/__KOHASITE__/bibliosocket</listen>
|
||||
<listen id="authorityserver" >unix:/var/run/koha/__KOHASITE__/authoritysocket</listen>
|
||||
|
||||
<!-- Uncomment the following entry if you want to run the public Z39.50 server.
|
||||
Also uncomment the <server> and <serverinfo> sections for id 'publicserver'
|
||||
under PUBLICSERVER'S BIBLIOGRAPHIC RECORDS title-->
|
||||
<!--
|
||||
<listen id="publicserver" >tcp:@:__ZEBRA_SRU_BIBLIOS_PORT__</listen>
|
||||
-->
|
||||
|
||||
<!-- Settings for special biblio server instance for PazPar2.
|
||||
Because PazPar2 only connects to a Z39.50 server using TCP/IP,
|
||||
it cannot use the Unix-domain socket that biblioserver uses.
|
||||
Therefore, a custom server is defined. -->
|
||||
<!--
|
||||
<listen id="mergeserver">tcp:@:__MERGE_SERVER_PORT__</listen>
|
||||
<server id="mergeserver" listenref="mergeserver">
|
||||
<directory>/var/lib/koha/__KOHASITE__/biblios</directory>
|
||||
<config>/var/lib/koha/__KOHASITE__/zebra-biblios.cfg</config>
|
||||
<cql2rpn>/var/lib/koha/__KOHASITE__/pqf.properties</cql2rpn>
|
||||
</server>
|
||||
-->
|
||||
|
||||
<!-- BIBLIOGRAPHIC RECORDS -->
|
||||
<server id="biblioserver" listenref="biblioserver">
|
||||
<server id="biblioserver" listenref="biblioserver">
|
||||
<directory>/var/lib/koha/__KOHASITE__/biblios</directory>
|
||||
<config>/etc/koha/sites/__KOHASITE__/zebra-biblios.cfg</config>
|
||||
<cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn>
|
||||
|
@ -56,10 +76,26 @@
|
|||
</backend>
|
||||
</retrieval>
|
||||
</retrievalinfo>
|
||||
<!-- The stuff below is used to enable SRU. It's currently disabled
|
||||
until we come up with a good way to make it get magically set up by
|
||||
the packaging system. If you need it, uncomment and set it up
|
||||
manually.
|
||||
<xi:include href="__KOHA_CONF_DIR__/zebradb/explain-biblios.xml"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<xi:fallback>
|
||||
<explain xmlns="http://explain.z3950.org/dtd/2.0/">
|
||||
<serverInfo>
|
||||
<host>__ZEBRA_SRU_HOST__</host>
|
||||
<port>__ZEBRA_SRU_BIBLIOS_PORT__</port>
|
||||
<database>biblios</database>
|
||||
</serverInfo>
|
||||
</explain>
|
||||
</xi:fallback>
|
||||
</xi:include> -->
|
||||
</server>
|
||||
<serverinfo id="biblioserver">
|
||||
<ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn>
|
||||
<user>kohauser</user>
|
||||
<user>kohauser</user>
|
||||
<password>__ZEBRA_PASS__</password>
|
||||
</serverinfo>
|
||||
|
||||
|
@ -112,6 +148,22 @@
|
|||
</retrievalinfo>
|
||||
</xi:fallback>
|
||||
</xi:include>
|
||||
<!-- The stuff below is used to enable SRU. It's currently disabled
|
||||
until we come up with a good way to make it get magically set up by
|
||||
the packaging system. If you need it, uncomment and set it up
|
||||
manually.
|
||||
<xi:include href="__KOHA_CONF_DIR__/zebradb/explain-authorities.xml"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<xi:fallback>
|
||||
<explain xmlns="http://explain.z3950.org/dtd/2.0/">
|
||||
<serverInfo>
|
||||
<host>__ZEBRA_SRU_HOST__</host>
|
||||
<port>__ZEBRA_SRU_AUTHORITIES_PORT__</port>
|
||||
<database>authorities</database>
|
||||
</serverInfo>
|
||||
</explain>
|
||||
</xi:fallback>
|
||||
</xi:include> -->
|
||||
</server>
|
||||
<serverinfo id="authorityserver">
|
||||
<ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn>
|
||||
|
@ -119,6 +171,81 @@
|
|||
<password>__ZEBRA_PASS__</password>
|
||||
</serverinfo>
|
||||
|
||||
<!-- PUBLICSERVER'S BIBLIOGRAPHIC RECORDS -->
|
||||
<!-- This can be used to set up a public Z39.50/SRU server.
|
||||
|
||||
<server id="publicserver" listenref="publicserver">
|
||||
<directory>/var/lib/koha/__KOHASITE__/biblios</directory>
|
||||
<config>/etc/koha/sites/__KOHASITE__/zebra-biblios.cfg</config>
|
||||
<cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn>
|
||||
<retrievalinfo>
|
||||
<retrieval syntax="usmarc" name="F"/>
|
||||
<retrieval syntax="usmarc" name="B"/>
|
||||
<retrieval syntax="xml" name="F"/>
|
||||
<retrieval syntax="xml" name="B"/>
|
||||
<retrieval syntax="xml" name="marcxml"
|
||||
identifier="info:srw/schema/1/marcxml-v1.1">
|
||||
<backend syntax="usmarc" name="F">
|
||||
<marc inputformat="marc" outputformat="marcxml"
|
||||
inputcharset="utf-8"/>
|
||||
</backend>
|
||||
</retrieval>
|
||||
<retrieval syntax="xml" name="dc">
|
||||
<backend syntax="usmarc" name="F">
|
||||
<marc inputformat="marc" outputformat="marcxml"
|
||||
inputcharset="utf-8"/>
|
||||
<xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2DC.xsl"/>
|
||||
</backend>
|
||||
</retrieval>
|
||||
<retrieval syntax="xml" name="mods">
|
||||
<backend syntax="usmarc" name="F">
|
||||
<marc inputformat="marc" outputformat="marcxml"
|
||||
inputcharset="utf-8"/>
|
||||
<xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl"/>
|
||||
</backend>
|
||||
</retrieval>
|
||||
<retrieval syntax="xml" name="rdfdc">
|
||||
<backend syntax="usmarc" name="F">
|
||||
<marc inputformat="marc" outputformat="marcxml"
|
||||
inputcharset="utf-8"/>
|
||||
<xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RDFDC.xsl"/>
|
||||
</backend>
|
||||
</retrieval>
|
||||
<retrieval syntax="xml" name="rss2">
|
||||
<backend syntax="usmarc" name="F">
|
||||
<marc inputformat="marc" outputformat="marcxml"
|
||||
inputcharset="utf-8"/>
|
||||
<xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2RSS2.xsl"/>
|
||||
</backend>
|
||||
</retrieval>
|
||||
<retrieval syntax="xml" name="utils">
|
||||
<backend syntax="usmarc" name="F">
|
||||
<marc inputformat="marc" outputformat="marcxml"
|
||||
inputcharset="utf-8"/>
|
||||
<xslt stylesheet="/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl"/>
|
||||
</backend>
|
||||
</retrieval>
|
||||
</retrievalinfo>
|
||||
<xi:include href="__KOHA_CONF_DIR__/zebradb/explain-biblios.xml"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<xi:fallback>
|
||||
<explain xmlns="http://explain.z3950.org/dtd/2.0/">
|
||||
<serverInfo>
|
||||
<host>__ZEBRA_SRU_HOST__</host>
|
||||
<port>__ZEBRA_SRU_BIBLIOS_PORT__</port>
|
||||
<database>biblios</database>
|
||||
</serverInfo>
|
||||
</explain>
|
||||
</xi:fallback>
|
||||
</xi:include>
|
||||
</server>
|
||||
<serverinfo id="publicserver">
|
||||
<ccl2rpn>/etc/koha/zebradb/ccl.properties</ccl2rpn>
|
||||
<user>kohauser</user>
|
||||
<password>__ZEBRA_PASS__</password>
|
||||
</serverinfo>
|
||||
-->
|
||||
|
||||
<config>
|
||||
<db_scheme>mysql</db_scheme>
|
||||
<database>__DB_NAME__</database>
|
||||
|
@ -136,6 +263,7 @@
|
|||
<intrahtdocs>/usr/share/koha/intranet/htdocs/intranet-tmpl</intrahtdocs>
|
||||
<includes>/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/</includes>
|
||||
<logdir>/var/log/koha/__KOHASITE__</logdir>
|
||||
<!-- <pazpar2url>http://__PAZPAR2_HOST__:__PAZPAR2_PORT__/search.pz2</pazpar2url> -->
|
||||
<install_log>/usr/share/koha/misc/koha-install-log</install_log>
|
||||
<useldapserver>0</useldapserver><!-- see C4::Auth_with_ldap for extra configs you must add if you want to turn this on -->
|
||||
<memcached_servers></memcached_servers>
|
||||
|
|
|
@ -499,9 +499,9 @@ July 7 2010 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_
|
|||
June 25 2010 Koha 3.2 Beta released http://koha-community.org/koha-3-2-beta-released/
|
||||
July 13 2010 License meeting http://wiki.koha-community.org/wiki/License_Upgrade_Vote_IRC_Meeting,_13_July_2010
|
||||
August 11 2010 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_11_August_2010
|
||||
August 31 2010 Stéphane Delaune becomes the 117th committer to have a patch accepted
|
||||
August 31 2010 Stéphane Delaune becomes the 116th committer to have a patch accepted
|
||||
September 1 2010 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_1_September_2010
|
||||
September 29 2010 Eric Olsen becomes the 116th committer to have a patch accepted
|
||||
September 29 2010 Eric Olsen becomes the 117th committer to have a patch accepted
|
||||
October 6 2010 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_6_October_2010
|
||||
October 22 2010 Koha 3.2.0 released
|
||||
October 25-31 2010 Kohacon10 in Wellington
|
||||
|
@ -567,7 +567,7 @@ August 2 2011 General IRC meeting http://wiki.koha-community.org/wiki/General_IR
|
|||
August 3 2011 Spanish speaking community meeting http://wiki.koha-community.org/wiki/Spanish_speaking_community_Mail_List_IRC_Meeting,_3_August_2011
|
||||
August 11 2011 Juan Romay Sieira becomes the 149th developer to have a patch pushed
|
||||
August 11 2011 Nuño López Ansótegui becomes the 150th developer to have a patch pushed
|
||||
August 22 2011 Koha 3.4.4 released
|
||||
August 22 2011 Koha 3.4.4 released releases
|
||||
August 26 2011 Ward van Wanrooij becomes the 151th developer to have a patch pushed
|
||||
August 27 2011 Ulrich Kleiber becomes the 152st developer to have a patch pushed
|
||||
September 1 2011 Maxime Pelletier becomes the 153nd developer to have a patch pushed
|
||||
|
@ -576,16 +576,18 @@ September 6 2011 Brett Wilkins becomes the 155th developer to have a patch pushe
|
|||
September 11 2011 Meenakshi.R becomes the 156th developer to have a patch pushed
|
||||
September 23 2011 Joy Nelson becomes the 157th developer to have a patch pushed
|
||||
September 24 2011 Larry Baerveldt becomes the 158th developer to have a patch pushed
|
||||
September 27 2011 Koha 3.4.5 released
|
||||
September 27 2011 Koha 3.4.5 released releases
|
||||
September 28 2011 Thatcher Rea becomes the 159th developer to have a patch pushed
|
||||
October 5 2011 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_5_October_2011
|
||||
October 15 2011 Greg Barniskis becomes the 160th developer to have a patch pushed
|
||||
October 22 2011 Koha 3.6.0 released
|
||||
October 31 2011 4th KohaCon in Mumbaï, India
|
||||
November 9 2011 Koha 3.4.6 released
|
||||
November 21 2011 Plea for help from Horowhenua Library Trust (Koha TM in NZ)
|
||||
November 29 2011 Koha 3.6.1 released
|
||||
December 6 2011 Martin Renvoize becomes the 161th developer to have a patch pushed
|
||||
December 6 2011 Adrien Saurat becomes the 162th developer to have a patch pushed
|
||||
December 6 2011 Albert Oller becomes the 163th developer to have a patch pushed
|
||||
October 22 2011 Koha 3.6.0 released releases
|
||||
October 31 2011 4th KohaCon in Mumbaï, India
|
||||
November 9 2011 Koha 3.4.6 released releases
|
||||
November 21 2011 Plea for help from Horowhenua Library Trust (Koha TM in NZ)
|
||||
November 29 2011 Koha 3.6.1 released releases
|
||||
December 6 2011 Martin Renvoize becomes the 161th developer to have a patch pushed
|
||||
December 6 2011 Adrien Saurat becomes the 162th developer to have a patch pushed
|
||||
December 6 2011 Albert Oller becomes the 163th developer to have a patch pushed
|
||||
December 7 2011 Jon Aker becomes the 164th developer to have a patch pushed
|
||||
December 13 2011 Fabio Tiana becomes the 165th developer to have a patch pushed
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ insert into `biblio_framework`(`frameworkcode`,`frameworktext`) values ('PR','R
|
|||
/*Fields and subfield of standard Unimarc */
|
||||
|
||||
/*Data for the table `marc_tag_structure` [Fields] */
|
||||
--Inizia il framework Default
|
||||
-- Inizia il framework Default
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('000','Guida (Record label)','',0,1,'','');
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('001','Identificatore del record','Identificatore del record',0,0,'','');
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('005','Identificatore di versione','',0,0,'','');
|
||||
|
@ -181,8 +181,8 @@ insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatabl
|
|||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('802','Centro ISSN','',1,0,'','');
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('830','Nota generale del catalogatore','',1,0,'','');
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('856','Localizzazione e accessi elettronici','',1,0,'','');
|
||||
---
|
||||
--- Inizia il framework 'MN'
|
||||
--
|
||||
-- Inizia il framework 'MN'
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('000','Guida (Record label)','',0,1,'','MN');
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('001','Identificatore del record','',0,1,'','MN');
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('005','Identificatore di versione','',0,0,'','MN');
|
||||
|
@ -230,8 +230,8 @@ insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatabl
|
|||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('802','Centro ISSN','',1,0,'','MN');
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('830','Nota generale del catalogatore','',1,0,'','MN');
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('856','Localizzazione e accessi elettronici','',1,0,'','MN');
|
||||
---
|
||||
--- Inizia il framework 'PR'
|
||||
--
|
||||
-- Inizia il framework 'PR'
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('000','Guida (Record label)','',0,1,'','PR');
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('001','Identificatore del record','',0,1,'','PR');
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values ('005','Identificatore di versione','',0,0,'','PR');
|
||||
|
@ -1389,8 +1389,8 @@ insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`
|
|||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('856','x','Nota non pubblica','',1,0,'',8,'','','',0,-5,'','','',NULL);
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('856','y','Metodo di accesso','',0,0,'',8,'','','',0,-5,'','','',NULL);
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('856','z','Nota pubblica','',1,0,'',8,'','','',0,-5,'','','',NULL);
|
||||
---
|
||||
--- Iizia la struttura di 'MN'
|
||||
--
|
||||
-- Iizia la struttura di 'MN'
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('000','@','Guida (Record label)','',0,1,'',0,'','','unimarc_leader.pl',NULL,0,'MN','',NULL,NULL);
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('001','@','Identificatore del record','',0,0,'biblio.biblionumber',-1,'','','',0,0,'MN',NULL,'','');
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('005','@','Identificatore di versione','',0,0,'',0,'','','marc21_field_005.pl',NULL,0,'MN','',NULL,NULL);
|
||||
|
@ -1720,7 +1720,7 @@ insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`
|
|||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('856','x','Nota non pubblica','',1,0,'',8,'','','',NULL,-5,'MN','',NULL,NULL);
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('856','y','Metodo di accesso','',0,0,'',8,'','','',NULL,-5,'MN','',NULL,NULL);
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('856','z','Nota pubblica','',1,0,'',8,'','','',NULL,-5,'MN','',NULL,NULL);
|
||||
---
|
||||
--
|
||||
-- Inizia il framework 'PR'
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('000','@','Guida (Record label)','',0,1,'',0,'','','unimarc_leader.pl',NULL,0,'PR','',NULL,NULL);
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('001','@','Identificatore del record','',0,0,'biblio.biblionumber',-1,'','','',0,0,'PR',NULL,'','');
|
||||
|
@ -2480,7 +2480,7 @@ insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatabl
|
|||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values
|
||||
('995','Collocazione e informazioni sulla copia (Koha)','',1,0,'','');
|
||||
|
||||
--- MN
|
||||
-- MN
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values
|
||||
('090','id koha','',0,0,'','MN');
|
||||
insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`authorised_value`,`frameworkcode`) values
|
||||
|
@ -2499,7 +2499,7 @@ insert into `marc_tag_structure`(`tagfield`,`liblibrarian`,`libopac`,`repeatabl
|
|||
('995','Collocazione e informazioni sulla copia (Koha)','',1,0,'','PR');
|
||||
|
||||
|
||||
--- Sottcampi di Default
|
||||
-- Sottcampi di Default
|
||||
-- 090
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('090','a','valore id','valore id',0,0,'biblioitems.biblioitemnumber',9,'','','',0,-5,'',NULL,'','');
|
||||
-- 099
|
||||
|
@ -2519,7 +2519,7 @@ insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`
|
|||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('942','n','Suppress in OPAC','Suppress in OPAC',0,0,'',9,'','','',0,-5,'',NULL,'','');
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('942','s','Serial record flag','Serial record',0,0,'biblio.serial',9,'','','',0,0,'',NULL,'','');
|
||||
|
||||
--995
|
||||
-- 995
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('995','0','Ritiro della copia','Ritiro della copia',0,0,'items.wthdrawn',10,'WITHDRAWN','','',0,0,'',NULL,'','0');
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('995','1','Codice di sistema (classificazione specifica o altro schema e edizione)','Codice di sistema (classificazione specifica o altro schema e edizione)',0,0,'',10,'','','',0,-5,'',NULL,'','');
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('995','2','Copia smarrita','Copia smarrita',0,0,'items.itemlost',10,'LOST','','',0,0,'',NULL,'','0');
|
||||
|
@ -2557,7 +2557,7 @@ insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`
|
|||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('995','y','Codice dell\'ente destinatario superiore','',0,0,'',10,'','','',0,-5,'',NULL,'','');
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('995','z','Ente destinatario superiore, testo libero','',0,0,'',10,'','','',0,-5,'',NULL,'','');
|
||||
|
||||
--- Sottocampi di MN
|
||||
-- Sottocampi di MN
|
||||
-- 090
|
||||
insert into `marc_subfield_structure`(`tagfield`,`tagsubfield`,`liblibrarian`,`libopac`,`repeatable`,`mandatory`,`kohafield`,`tab`,`authorised_value`,`authtypecode`,`value_builder`,`isurl`,`hidden`,`frameworkcode`,`seealso`,`link`,`defaultvalue`) values ('090','a','valore id','valore id',0,0,'biblioitems.biblioitemnumber',9,'','','',0,-5,'MN',NULL,'','');
|
||||
-- 099
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
SET FOREIGN_KEY_CHECKS=0;
|
||||
|
||||
INSERT INTO `itemtypes` VALUES ('BK', 'Libro',5,0,0,'bridge/book.gif','');
|
||||
INSERT INTO `itemtypes` VALUES ('MX', 'Materiale misto',5,0,0,'bridge/kit.gif','');
|
||||
INSERT INTO `itemtypes` VALUES ('CF', 'Computer Files',5,0,0,'bridge/computer_file.gif','');
|
||||
INSERT INTO `itemtypes` VALUES ('MP', 'Mappe',5,0,0,'bridge/map.gif','');
|
||||
INSERT INTO `itemtypes` VALUES ('VM', 'Audiovisivi',5,0,1,'bridge/dvd.gif','');
|
||||
INSERT INTO `itemtypes` VALUES ('MU', 'Musica',5,0,0,'bridge/sound.gif','');
|
||||
INSERT INTO `itemtypes` VALUES ('CR', 'Periodici',5,0,0,'bridge/periodical.gif','');
|
||||
INSERT INTO `itemtypes` VALUES ('REF', 'Reference',0,0,1,'','');
|
||||
INSERT INTO `itemtypes` (`itemtype`,`description`,`rentalcharge`,`notforloan`,`imageurl`,`summary`) VALUES ('BK', 'Libro',5,0,'bridge/book.gif','');
|
||||
INSERT INTO `itemtypes` (`itemtype`,`description`,`rentalcharge`,`notforloan`,`imageurl`,`summary`) VALUES ('MX', 'Materiale misto',5,0,'bridge/kit.gif','');
|
||||
INSERT INTO `itemtypes` (`itemtype`,`description`,`rentalcharge`,`notforloan`,`imageurl`,`summary`) VALUES ('CF', 'Computer Files',5,0,'bridge/computer_file.gif','');
|
||||
INSERT INTO `itemtypes` (`itemtype`,`description`,`rentalcharge`,`notforloan`,`imageurl`,`summary`) VALUES ('MP', 'Mappe',5,0,'bridge/map.gif','');
|
||||
INSERT INTO `itemtypes` (`itemtype`,`description`,`rentalcharge`,`notforloan`,`imageurl`,`summary`) VALUES ('VM', 'Audiovisivi',5,1,'bridge/dvd.gif','');
|
||||
INSERT INTO `itemtypes` (`itemtype`,`description`,`rentalcharge`,`notforloan`,`imageurl`,`summary`) VALUES ('MU', 'Musica',5,0,'bridge/sound.gif','');
|
||||
INSERT INTO `itemtypes` (`itemtype`,`description`,`rentalcharge`,`notforloan`,`imageurl`,`summary`) VALUES ('CR', 'Periodici',5,0,'bridge/periodical.gif','');
|
||||
INSERT INTO `itemtypes` (`itemtype`,`description`,`rentalcharge`,`notforloan`,`imageurl`,`summary`) VALUES ('REF', 'Reference',0,1,'','');
|
||||
|
||||
SET FOREIGN_KEY_CHECKS=1;
|
||||
SET FOREIGN_KEY_CHECKS=1;
|
||||
|
|
|
@ -116,16 +116,16 @@ DROP TABLE IF EXISTS `biblio`;
|
|||
CREATE TABLE `biblio` ( -- table that stores bibliographic information
|
||||
`biblionumber` int(11) NOT NULL auto_increment, -- unique identifier assigned to each bibliographic record
|
||||
`frameworkcode` varchar(4) NOT NULL default '', -- foriegn key from the biblio_framework table to identify which framework was used in cataloging this record
|
||||
`author` mediumtext, -- statement of responsibility from MARC record (100 in MARC21)
|
||||
`title` mediumtext, -- title (without the subtitle) from the MARC record (245 in MARC21)
|
||||
`unititle` mediumtext, -- uniform title (without the subtitle) from the MARC record (240 in MARC21)
|
||||
`notes` mediumtext, -- values from the general notes field in the MARC record (500 in MARC21) split by bar (|)
|
||||
`author` mediumtext, -- statement of responsibility from MARC record (100$a in MARC21)
|
||||
`title` mediumtext, -- title (without the subtitle) from the MARC record (245$a in MARC21)
|
||||
`unititle` mediumtext, -- uniform title (without the subtitle) from the MARC record (240$a in MARC21)
|
||||
`notes` mediumtext, -- values from the general notes field in the MARC record (500$a in MARC21) split by bar (|)
|
||||
`serial` tinyint(1) default NULL, -- foreign key, linking to the subscriptionid in the serial table
|
||||
`seriestitle` mediumtext,
|
||||
`copyrightdate` smallint(6) default NULL, -- publication or copyright date from the MARC record
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- date and time this record was last touched
|
||||
`datecreated` DATE NOT NULL, -- the date this record was added to Koha
|
||||
`abstract` mediumtext, -- summary from the MARC record (520 in MARC21)
|
||||
`abstract` mediumtext, -- summary from the MARC record (520$a in MARC21)
|
||||
PRIMARY KEY (`biblionumber`),
|
||||
KEY `blbnoidx` (`biblionumber`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -146,39 +146,39 @@ CREATE TABLE `biblio_framework` (
|
|||
--
|
||||
|
||||
DROP TABLE IF EXISTS `biblioitems`;
|
||||
CREATE TABLE `biblioitems` (
|
||||
`biblioitemnumber` int(11) NOT NULL auto_increment,
|
||||
`biblionumber` int(11) NOT NULL default 0,
|
||||
CREATE TABLE `biblioitems` ( -- information related to bibliographic records in Koha
|
||||
`biblioitemnumber` int(11) NOT NULL auto_increment, -- primary key, unique identifier assigned by Koha
|
||||
`biblionumber` int(11) NOT NULL default 0, -- foreign key linking this table to the biblio table
|
||||
`volume` mediumtext,
|
||||
`number` mediumtext,
|
||||
`itemtype` varchar(10) default NULL,
|
||||
`isbn` varchar(30) default NULL,
|
||||
`issn` varchar(9) default NULL,
|
||||
`itemtype` varchar(10) default NULL, -- biblio level item type (MARC21 942$c)
|
||||
`isbn` varchar(30) default NULL, -- ISBN (MARC21 020$a)
|
||||
`issn` varchar(9) default NULL, -- ISSN (MARC21 022$a)
|
||||
`publicationyear` text,
|
||||
`publishercode` varchar(255) default NULL,
|
||||
`publishercode` varchar(255) default NULL, -- publisher (MARC21 260$b)
|
||||
`volumedate` date default NULL,
|
||||
`volumedesc` text,
|
||||
`volumedesc` text, -- volume information (MARC21 362$a)
|
||||
`collectiontitle` mediumtext default NULL,
|
||||
`collectionissn` text default NULL,
|
||||
`collectionvolume` mediumtext default NULL,
|
||||
`editionstatement` text default NULL,
|
||||
`editionresponsibility` text default NULL,
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
`illus` varchar(255) default NULL,
|
||||
`pages` varchar(255) default NULL,
|
||||
`illus` varchar(255) default NULL, -- illustrations (MARC21 300$b)
|
||||
`pages` varchar(255) default NULL, -- number of pages (MARC21 300$c)
|
||||
`notes` mediumtext,
|
||||
`size` varchar(255) default NULL,
|
||||
`place` varchar(255) default NULL,
|
||||
`lccn` varchar(25) default NULL,
|
||||
`marc` longblob,
|
||||
`url` varchar(255) default NULL,
|
||||
`cn_source` varchar(10) default NULL,
|
||||
`size` varchar(255) default NULL, -- material size (MARC21 300$c)
|
||||
`place` varchar(255) default NULL, -- publication place (MARC21 260$a)
|
||||
`lccn` varchar(25) default NULL, -- library of congress control number (MARC21 010$a)
|
||||
`marc` longblob, -- full bibliographic MARC record
|
||||
`url` varchar(255) default NULL, -- url (MARC21 856$u)
|
||||
`cn_source` varchar(10) default NULL, -- classification source (MARC21 942$2)
|
||||
`cn_class` varchar(30) default NULL,
|
||||
`cn_item` varchar(10) default NULL,
|
||||
`cn_suffix` varchar(10) default NULL,
|
||||
`cn_sort` varchar(30) default NULL,
|
||||
`totalissues` int(10),
|
||||
`marcxml` longtext NOT NULL,
|
||||
`marcxml` longtext NOT NULL, -- full bibliographic MARC record in MARCXML
|
||||
PRIMARY KEY (`biblioitemnumber`),
|
||||
KEY `bibinoidx` (`biblioitemnumber`),
|
||||
KEY `bibnoidx` (`biblionumber`),
|
||||
|
@ -417,21 +417,21 @@ CREATE TABLE `browser` (
|
|||
--
|
||||
|
||||
DROP TABLE IF EXISTS `categories`;
|
||||
CREATE TABLE `categories` (
|
||||
`categorycode` varchar(10) NOT NULL default '',
|
||||
`description` mediumtext,
|
||||
`enrolmentperiod` smallint(6) default NULL,
|
||||
`enrolmentperioddate` DATE NULL DEFAULT NULL,
|
||||
`upperagelimit` smallint(6) default NULL,
|
||||
CREATE TABLE `categories` ( -- this table shows information related to Koha patron categories
|
||||
`categorycode` varchar(10) NOT NULL default '', -- unique primary key used to idenfity the patron category
|
||||
`description` mediumtext, -- description of the patron category
|
||||
`enrolmentperiod` smallint(6) default NULL, -- number of months the patron is enrolled for (will be NULL if enrolmentperioddate is set)
|
||||
`enrolmentperioddate` DATE NULL DEFAULT NULL, -- date the patron is enrolled until (will be NULL if enrolmentperiod is set)
|
||||
`upperagelimit` smallint(6) default NULL, -- age limit for the patron
|
||||
`dateofbirthrequired` tinyint(1) default NULL,
|
||||
`finetype` varchar(30) default NULL,
|
||||
`finetype` varchar(30) default NULL, -- unused in Koha
|
||||
`bulk` tinyint(1) default NULL,
|
||||
`enrolmentfee` decimal(28,6) default NULL,
|
||||
`overduenoticerequired` tinyint(1) default NULL,
|
||||
`issuelimit` smallint(6) default NULL,
|
||||
`reservefee` decimal(28,6) default NULL,
|
||||
`hidelostitems` tinyint(1) NOT NULL default '0',
|
||||
`category_type` varchar(1) NOT NULL default 'A',
|
||||
`enrolmentfee` decimal(28,6) default NULL, -- enrollment fee for the patron
|
||||
`overduenoticerequired` tinyint(1) default NULL, -- are overdue notices sent to this patron category (1 for yes, 0 for no)
|
||||
`issuelimit` smallint(6) default NULL, -- unused in Koha
|
||||
`reservefee` decimal(28,6) default NULL, -- cost to place holds
|
||||
`hidelostitems` tinyint(1) NOT NULL default '0', -- are lost items shown to this category (1 for yes, 0 for no)
|
||||
`category_type` varchar(1) NOT NULL default 'A', -- type of Koha patron (Adult, Child, Professional, Organizational, Statistical, Staff)
|
||||
PRIMARY KEY (`categorycode`),
|
||||
UNIQUE KEY `categorycode` (`categorycode`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -591,16 +591,16 @@ DROP TABLE IF EXISTS `deletedbiblio`;
|
|||
CREATE TABLE `deletedbiblio` ( -- stores information about bibliographic records that have been deleted
|
||||
`biblionumber` int(11) NOT NULL auto_increment, -- unique identifier assigned to each bibliographic record
|
||||
`frameworkcode` varchar(4) NOT NULL default '', -- foriegn key from the biblio_framework table to identify which framework was used in cataloging this record
|
||||
`author` mediumtext, -- statement of responsibility from MARC record (100 in MARC21)
|
||||
`title` mediumtext, -- title (without the subtitle) from the MARC record (245 in MARC21)
|
||||
`unititle` mediumtext, -- uniform title (without the subtitle) from the MARC record (240 in MARC21)
|
||||
`notes` mediumtext, -- values from the general notes field in the MARC record (500 in MARC21) split by bar (|)
|
||||
`author` mediumtext, -- statement of responsibility from MARC record (100$a in MARC21)
|
||||
`title` mediumtext, -- title (without the subtitle) from the MARC record (245$a in MARC21)
|
||||
`unititle` mediumtext, -- uniform title (without the subtitle) from the MARC record (240$a in MARC21)
|
||||
`notes` mediumtext, -- values from the general notes field in the MARC record (500$a in MARC21) split by bar (|)
|
||||
`serial` tinyint(1) default NULL, -- foreign key, linking to the subscriptionid in the serial table
|
||||
`seriestitle` mediumtext,
|
||||
`copyrightdate` smallint(6) default NULL, -- publication or copyright date from the MARC record
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- date and time this record was last touched
|
||||
`datecreated` DATE NOT NULL, -- the date this record was added to Koha
|
||||
`abstract` mediumtext, -- summary from the MARC record (520 in MARC21)
|
||||
`abstract` mediumtext, -- summary from the MARC record (520$a in MARC21)
|
||||
PRIMARY KEY (`biblionumber`),
|
||||
KEY `blbnoidx` (`biblionumber`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
@ -610,39 +610,39 @@ CREATE TABLE `deletedbiblio` ( -- stores information about bibliographic records
|
|||
--
|
||||
|
||||
DROP TABLE IF EXISTS `deletedbiblioitems`;
|
||||
CREATE TABLE `deletedbiblioitems` (
|
||||
`biblioitemnumber` int(11) NOT NULL default 0,
|
||||
`biblionumber` int(11) NOT NULL default 0,
|
||||
CREATE TABLE `deletedbiblioitems` ( -- information about bibliographic records that have been deleted
|
||||
`biblioitemnumber` int(11) NOT NULL default 0, -- primary key, unique identifier assigned by Koha
|
||||
`biblionumber` int(11) NOT NULL default 0, -- foreign key linking this table to the biblio table
|
||||
`volume` mediumtext,
|
||||
`number` mediumtext,
|
||||
`itemtype` varchar(10) default NULL,
|
||||
`isbn` varchar(30) default NULL,
|
||||
`issn` varchar(9) default NULL,
|
||||
`itemtype` varchar(10) default NULL, -- biblio level item type (MARC21 942$c)
|
||||
`isbn` varchar(30) default NULL, -- ISBN (MARC21 020$a)
|
||||
`issn` varchar(9) default NULL, -- ISSN (MARC21 022$a)
|
||||
`publicationyear` text,
|
||||
`publishercode` varchar(255) default NULL,
|
||||
`publishercode` varchar(255) default NULL, -- publisher (MARC21 260$b)
|
||||
`volumedate` date default NULL,
|
||||
`volumedesc` text,
|
||||
`volumedesc` text, -- volume information (MARC21 362$a)
|
||||
`collectiontitle` mediumtext default NULL,
|
||||
`collectionissn` text default NULL,
|
||||
`collectionvolume` mediumtext default NULL,
|
||||
`editionstatement` text default NULL,
|
||||
`editionresponsibility` text default NULL,
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
`illus` varchar(255) default NULL,
|
||||
`pages` varchar(255) default NULL,
|
||||
`illus` varchar(255) default NULL, -- illustrations (MARC21 300$b)
|
||||
`pages` varchar(255) default NULL, -- number of pages (MARC21 300$c)
|
||||
`notes` mediumtext,
|
||||
`size` varchar(255) default NULL,
|
||||
`place` varchar(255) default NULL,
|
||||
`lccn` varchar(25) default NULL,
|
||||
`marc` longblob,
|
||||
`url` varchar(255) default NULL,
|
||||
`cn_source` varchar(10) default NULL,
|
||||
`size` varchar(255) default NULL, -- material size (MARC21 300$c)
|
||||
`place` varchar(255) default NULL, -- publication place (MARC21 260$a)
|
||||
`lccn` varchar(25) default NULL, -- library of congress control number (MARC21 010$a)
|
||||
`marc` longblob, -- full bibliographic MARC record
|
||||
`url` varchar(255) default NULL, -- url (MARC21 856$u)
|
||||
`cn_source` varchar(10) default NULL, -- classification source (MARC21 942$2)
|
||||
`cn_class` varchar(30) default NULL,
|
||||
`cn_item` varchar(10) default NULL,
|
||||
`cn_suffix` varchar(10) default NULL,
|
||||
`cn_sort` varchar(30) default NULL,
|
||||
`totalissues` int(10),
|
||||
`marcxml` longtext NOT NULL,
|
||||
`marcxml` longtext NOT NULL, -- full bibliographic MARC record in MARCXML
|
||||
PRIMARY KEY (`biblioitemnumber`),
|
||||
KEY `bibinoidx` (`biblioitemnumber`),
|
||||
KEY `bibnoidx` (`biblionumber`),
|
||||
|
@ -733,46 +733,46 @@ CREATE TABLE `deletedborrowers` ( -- stores data related to the patrons/borrower
|
|||
|
||||
DROP TABLE IF EXISTS `deleteditems`;
|
||||
CREATE TABLE `deleteditems` (
|
||||
`itemnumber` int(11) NOT NULL default 0,
|
||||
`biblionumber` int(11) NOT NULL default 0,
|
||||
`biblioitemnumber` int(11) NOT NULL default 0,
|
||||
`barcode` varchar(20) default NULL,
|
||||
`dateaccessioned` date default NULL,
|
||||
`booksellerid` mediumtext default NULL,
|
||||
`homebranch` varchar(10) default NULL,
|
||||
`price` decimal(8,2) default NULL,
|
||||
`replacementprice` decimal(8,2) default NULL,
|
||||
`replacementpricedate` date default NULL,
|
||||
`datelastborrowed` date default NULL,
|
||||
`datelastseen` date default NULL,
|
||||
`itemnumber` int(11) NOT NULL default 0, -- primary key and unique identifier added by Koha
|
||||
`biblionumber` int(11) NOT NULL default 0, -- foreign key from biblio table used to link this item to the right bib record
|
||||
`biblioitemnumber` int(11) NOT NULL default 0, -- foreign key from the biblioitems table to link to item to additional information
|
||||
`barcode` varchar(20) default NULL, -- item barcode (MARC21 952$p)
|
||||
`dateaccessioned` date default NULL, -- date the item was acquired or added to Koha (MARC21 952$d)
|
||||
`booksellerid` mediumtext default NULL, -- where the item was purchased (MARC21 952$e)
|
||||
`homebranch` varchar(10) default NULL, -- foreign key from the branches table for the library that owns this item (MARC21 952$a)
|
||||
`price` decimal(8,2) default NULL, -- purchase price (MARC21 952$g)
|
||||
`replacementprice` decimal(8,2) default NULL, -- cost the library charges to replace the item if it has been marked lost (MARC21 952$v)
|
||||
`replacementpricedate` date default NULL, -- the date the price is effective from (MARC21 952$w)
|
||||
`datelastborrowed` date default NULL, -- the date the item was last checked out
|
||||
`datelastseen` date default NULL, -- the date the item was last see (usually the last time the barcode was scanned or inventory was done)
|
||||
`stack` tinyint(1) default NULL,
|
||||
`notforloan` tinyint(1) NOT NULL default 0,
|
||||
`damaged` tinyint(1) NOT NULL default 0,
|
||||
`itemlost` tinyint(1) NOT NULL default 0,
|
||||
`wthdrawn` tinyint(1) NOT NULL default 0,
|
||||
`itemcallnumber` varchar(255) default NULL,
|
||||
`issues` smallint(6) default NULL,
|
||||
`renewals` smallint(6) default NULL,
|
||||
`reserves` smallint(6) default NULL,
|
||||
`restricted` tinyint(1) default NULL,
|
||||
`itemnotes` mediumtext,
|
||||
`holdingbranch` varchar(10) default NULL,
|
||||
`notforloan` tinyint(1) NOT NULL default 0, -- authorized value defining why this item is not for loan (MARC21 952$7)
|
||||
`damaged` tinyint(1) NOT NULL default 0, -- authorized value defining this item as damaged (MARC21 952$4)
|
||||
`itemlost` tinyint(1) NOT NULL default 0, -- authorized value defining this item as lost (MARC21 952$1)
|
||||
`wthdrawn` tinyint(1) NOT NULL default 0, -- authorized value defining this item as withdrawn (MARC21 952$0)
|
||||
`itemcallnumber` varchar(255) default NULL, -- call number for this item (MARC21 952$o)
|
||||
`issues` smallint(6) default NULL, -- number of times this item has been checked out
|
||||
`renewals` smallint(6) default NULL, -- number of times this item has been renewed
|
||||
`reserves` smallint(6) default NULL, -- number of times this item has been placed on hold/reserved
|
||||
`restricted` tinyint(1) default NULL, -- authorized value defining use restrictions for this item (MARC21 952$5)
|
||||
`itemnotes` mediumtext, -- public notes on this item (MARC21 952$x)
|
||||
`holdingbranch` varchar(10) default NULL, -- foreign key from the branches table for the library that is currently in possession item (MARC21 952$b)
|
||||
`paidfor` mediumtext,
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
`location` varchar(80) default NULL,
|
||||
`permanent_location` varchar(80) default NULL,
|
||||
`onloan` date default NULL,
|
||||
`cn_source` varchar(10) default NULL,
|
||||
`cn_sort` varchar(30) default NULL,
|
||||
`ccode` varchar(10) default NULL,
|
||||
`materials` varchar(10) default NULL,
|
||||
`uri` varchar(255) default NULL,
|
||||
`itype` varchar(10) default NULL,
|
||||
`more_subfields_xml` longtext default NULL,
|
||||
`enumchron` text default NULL,
|
||||
`copynumber` varchar(32) default NULL,
|
||||
`stocknumber` varchar(32) default NULL,
|
||||
`marc` longblob,
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- date and time this item was last altered
|
||||
`location` varchar(80) default NULL, -- authorized value for the shelving location for this item (MARC21 952$c)
|
||||
`permanent_location` varchar(80) default NULL, -- linked to the CART and PROC temporary locations feature, stores the permanent shelving location
|
||||
`onloan` date default NULL, -- defines if this item is currently checked out (1 for yes, 0 for no)
|
||||
`cn_source` varchar(10) default NULL, -- classification source used on this item (MARC21 952$2)
|
||||
`cn_sort` varchar(30) default NULL, -- normalized form of the call number (MARC21 952$o) used for sorting
|
||||
`ccode` varchar(10) default NULL, -- authorized value for the collection code associated with this item (MARC21 952$8)
|
||||
`materials` varchar(10) default NULL, -- materials specified (MARC21 952$3)
|
||||
`uri` varchar(255) default NULL, -- URL for the item (MARC21 952$u)
|
||||
`itype` varchar(10) default NULL, -- foreign key from the itemtypes table defining the type for this item (MARC21 952$y)
|
||||
`more_subfields_xml` longtext default NULL, -- additional 952 subfields in XML format
|
||||
`enumchron` text default NULL, -- serial enumeration/chronology for the item (MARC21 952$h)
|
||||
`copynumber` varchar(32) default NULL, -- copy number (MARC21 952$t)
|
||||
`stocknumber` varchar(32) default NULL, -- inventory number (MARC21 952$i)
|
||||
`marc` longblob, -- unused in Koha
|
||||
PRIMARY KEY (`itemnumber`),
|
||||
KEY `delitembarcodeidx` (`barcode`),
|
||||
KEY `delitemstocknumberidx` (`stocknumber`),
|
||||
|
@ -998,46 +998,46 @@ CREATE TABLE `issuingrules` (
|
|||
--
|
||||
|
||||
DROP TABLE IF EXISTS `items`;
|
||||
CREATE TABLE `items` (
|
||||
`itemnumber` int(11) NOT NULL auto_increment,
|
||||
`biblionumber` int(11) NOT NULL default 0,
|
||||
`biblioitemnumber` int(11) NOT NULL default 0,
|
||||
`barcode` varchar(20) default NULL,
|
||||
`dateaccessioned` date default NULL,
|
||||
`booksellerid` mediumtext default NULL,
|
||||
`homebranch` varchar(10) default NULL,
|
||||
`price` decimal(8,2) default NULL,
|
||||
`replacementprice` decimal(8,2) default NULL,
|
||||
`replacementpricedate` date default NULL,
|
||||
`datelastborrowed` date default NULL,
|
||||
`datelastseen` date default NULL,
|
||||
CREATE TABLE `items` ( -- holdings/item information
|
||||
`itemnumber` int(11) NOT NULL auto_increment, -- primary key and unique identifier added by Koha
|
||||
`biblionumber` int(11) NOT NULL default 0, -- foreign key from biblio table used to link this item to the right bib record
|
||||
`biblioitemnumber` int(11) NOT NULL default 0, -- foreign key from the biblioitems table to link to item to additional information
|
||||
`barcode` varchar(20) default NULL, -- item barcode (MARC21 952$p)
|
||||
`dateaccessioned` date default NULL, -- date the item was acquired or added to Koha (MARC21 952$d)
|
||||
`booksellerid` mediumtext default NULL, -- where the item was purchased (MARC21 952$e)
|
||||
`homebranch` varchar(10) default NULL, -- foreign key from the branches table for the library that owns this item (MARC21 952$a)
|
||||
`price` decimal(8,2) default NULL, -- purchase price (MARC21 952$g)
|
||||
`replacementprice` decimal(8,2) default NULL, -- cost the library charges to replace the item if it has been marked lost (MARC21 952$v)
|
||||
`replacementpricedate` date default NULL, -- the date the price is effective from (MARC21 952$w)
|
||||
`datelastborrowed` date default NULL, -- the date the item was last checked out/issued
|
||||
`datelastseen` date default NULL, -- the date the item was last see (usually the last time the barcode was scanned or inventory was done)
|
||||
`stack` tinyint(1) default NULL,
|
||||
`notforloan` tinyint(1) NOT NULL default 0,
|
||||
`damaged` tinyint(1) NOT NULL default 0,
|
||||
`itemlost` tinyint(1) NOT NULL default 0,
|
||||
`wthdrawn` tinyint(1) NOT NULL default 0,
|
||||
`itemcallnumber` varchar(255) default NULL,
|
||||
`issues` smallint(6) default NULL,
|
||||
`renewals` smallint(6) default NULL,
|
||||
`reserves` smallint(6) default NULL,
|
||||
`restricted` tinyint(1) default NULL,
|
||||
`itemnotes` mediumtext,
|
||||
`holdingbranch` varchar(10) default NULL,
|
||||
`notforloan` tinyint(1) NOT NULL default 0, -- authorized value defining why this item is not for loan (MARC21 952$7)
|
||||
`damaged` tinyint(1) NOT NULL default 0, -- authorized value defining this item as damaged (MARC21 952$4)
|
||||
`itemlost` tinyint(1) NOT NULL default 0, -- authorized value defining this item as lost (MARC21 952$1)
|
||||
`wthdrawn` tinyint(1) NOT NULL default 0, -- authorized value defining this item as withdrawn (MARC21 952$0)
|
||||
`itemcallnumber` varchar(255) default NULL, -- call number for this item (MARC21 952$o)
|
||||
`issues` smallint(6) default NULL, -- number of times this item has been checked out/issued
|
||||
`renewals` smallint(6) default NULL, -- number of times this item has been renewed
|
||||
`reserves` smallint(6) default NULL, -- number of times this item has been placed on hold/reserved
|
||||
`restricted` tinyint(1) default NULL, -- authorized value defining use restrictions for this item (MARC21 952$5)
|
||||
`itemnotes` mediumtext, -- public notes on this item (MARC21 952$x)
|
||||
`holdingbranch` varchar(10) default NULL, -- foreign key from the branches table for the library that is currently in possession item (MARC21 952$b)
|
||||
`paidfor` mediumtext,
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
`location` varchar(80) default NULL,
|
||||
`permanent_location` varchar(80) default NULL,
|
||||
`onloan` date default NULL,
|
||||
`cn_source` varchar(10) default NULL,
|
||||
`cn_sort` varchar(30) default NULL,
|
||||
`ccode` varchar(10) default NULL,
|
||||
`materials` varchar(10) default NULL,
|
||||
`uri` varchar(255) default NULL,
|
||||
`itype` varchar(10) default NULL,
|
||||
`more_subfields_xml` longtext default NULL,
|
||||
`enumchron` text default NULL,
|
||||
`copynumber` varchar(32) default NULL,
|
||||
`stocknumber` varchar(32) default NULL,
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- date and time this item was last altered
|
||||
`location` varchar(80) default NULL, -- authorized value for the shelving location for this item (MARC21 952$c)
|
||||
`permanent_location` varchar(80) default NULL, -- linked to the CART and PROC temporary locations feature, stores the permanent shelving location
|
||||
`onloan` date default NULL, -- defines if this item is currently checked out (1 for yes, 0 for no)
|
||||
`cn_source` varchar(10) default NULL, -- classification source used on this item (MARC21 952$2)
|
||||
`cn_sort` varchar(30) default NULL, -- normalized form of the call number (MARC21 952$o) used for sorting
|
||||
`ccode` varchar(10) default NULL, -- authorized value for the collection code associated with this item (MARC21 952$8)
|
||||
`materials` varchar(10) default NULL, -- materials specified (MARC21 952$3)
|
||||
`uri` varchar(255) default NULL, -- URL for the item (MARC21 952$u)
|
||||
`itype` varchar(10) default NULL, -- foreign key from the itemtypes table defining the type for this item (MARC21 952$y)
|
||||
`more_subfields_xml` longtext default NULL, -- additional 952 subfields in XML format
|
||||
`enumchron` text default NULL, -- serial enumeration/chronology for the item (MARC21 952$h)
|
||||
`copynumber` varchar(32) default NULL, -- copy number (MARC21 952$t)
|
||||
`stocknumber` varchar(32) default NULL, -- inventory number (MARC21 952$i)
|
||||
PRIMARY KEY (`itemnumber`),
|
||||
UNIQUE KEY `itembarcodeidx` (`barcode`),
|
||||
KEY `itemstocknumberidx` (`stocknumber`),
|
||||
|
@ -1382,22 +1382,22 @@ CREATE TABLE `old_issues` ( -- lists items that were checked out and have been r
|
|||
-- Table structure for table `old_reserves`
|
||||
--
|
||||
DROP TABLE IF EXISTS `old_reserves`;
|
||||
CREATE TABLE `old_reserves` (
|
||||
`borrowernumber` int(11) default NULL,
|
||||
`reservedate` date default NULL,
|
||||
`biblionumber` int(11) default NULL,
|
||||
CREATE TABLE `old_reserves` ( -- this table holds all holds/reserves that have been completed (either filled or cancelled)
|
||||
`borrowernumber` int(11) default NULL, -- foreign key from the borrowers table defining which patron this hold is for
|
||||
`reservedate` date default NULL, -- the date the hold was places
|
||||
`biblionumber` int(11) default NULL, -- foreign key from the biblio table defining which bib record this hold is on
|
||||
`constrainttype` varchar(1) default NULL,
|
||||
`branchcode` varchar(10) default NULL,
|
||||
`notificationdate` date default NULL,
|
||||
`reminderdate` date default NULL,
|
||||
`cancellationdate` date default NULL,
|
||||
`reservenotes` mediumtext,
|
||||
`priority` smallint(6) default NULL,
|
||||
`found` varchar(1) default NULL,
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
`itemnumber` int(11) default NULL,
|
||||
`waitingdate` date default NULL,
|
||||
`expirationdate` DATE DEFAULT NULL,
|
||||
`branchcode` varchar(10) default NULL, -- foreign key from the branches table defining which branch the patron wishes to pick this hold up at
|
||||
`notificationdate` date default NULL, -- currently unused
|
||||
`reminderdate` date default NULL, -- currently unused
|
||||
`cancellationdate` date default NULL, -- the date this hold was cancelled
|
||||
`reservenotes` mediumtext, -- notes related to this hold
|
||||
`priority` smallint(6) default NULL, -- where in the queue the patron sits
|
||||
`found` varchar(1) default NULL, -- a one letter code defining what the the status is of the hold is after it has been confirmed
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this hold was last updated
|
||||
`itemnumber` int(11) default NULL, -- foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with
|
||||
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library
|
||||
`expirationdate` DATE DEFAULT NULL, -- the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date)
|
||||
`lowestPriority` tinyint(1) NOT NULL,
|
||||
KEY `old_reserves_borrowernumber` (`borrowernumber`),
|
||||
KEY `old_reserves_biblionumber` (`biblionumber`),
|
||||
|
@ -1557,22 +1557,22 @@ CREATE TABLE `reserveconstraints` (
|
|||
--
|
||||
|
||||
DROP TABLE IF EXISTS `reserves`;
|
||||
CREATE TABLE `reserves` (
|
||||
`borrowernumber` int(11) NOT NULL default 0,
|
||||
`reservedate` date default NULL,
|
||||
`biblionumber` int(11) NOT NULL default 0,
|
||||
CREATE TABLE `reserves` ( -- information related to holds/reserves in Koha
|
||||
`borrowernumber` int(11) NOT NULL default 0, -- foreign key from the borrowers table defining which patron this hold is for
|
||||
`reservedate` date default NULL, -- the date the hold was places
|
||||
`biblionumber` int(11) NOT NULL default 0, -- foreign key from the biblio table defining which bib record this hold is on
|
||||
`constrainttype` varchar(1) default NULL,
|
||||
`branchcode` varchar(10) default NULL,
|
||||
`notificationdate` date default NULL,
|
||||
`reminderdate` date default NULL,
|
||||
`cancellationdate` date default NULL,
|
||||
`reservenotes` mediumtext,
|
||||
`priority` smallint(6) default NULL,
|
||||
`found` varchar(1) default NULL,
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
||||
`itemnumber` int(11) default NULL,
|
||||
`waitingdate` date default NULL,
|
||||
`expirationdate` DATE DEFAULT NULL,
|
||||
`branchcode` varchar(10) default NULL, -- foreign key from the branches table defining which branch the patron wishes to pick this hold up at
|
||||
`notificationdate` date default NULL, -- currently unused
|
||||
`reminderdate` date default NULL, -- currently unused
|
||||
`cancellationdate` date default NULL, -- the date this hold was cancelled
|
||||
`reservenotes` mediumtext, -- notes related to this hold
|
||||
`priority` smallint(6) default NULL, -- where in the queue the patron sits
|
||||
`found` varchar(1) default NULL, -- a one letter code defining what the the status is of the hold is after it has been confirmed
|
||||
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this hold was last updated
|
||||
`itemnumber` int(11) default NULL, -- foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with
|
||||
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library
|
||||
`expirationdate` DATE DEFAULT NULL, -- the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date)
|
||||
`lowestPriority` tinyint(1) NOT NULL,
|
||||
KEY priorityfoundidx (priority,found),
|
||||
KEY `borrowernumber` (`borrowernumber`),
|
||||
|
|
|
@ -135,7 +135,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OPACFRBRizeEditions',0,'If ON, the OPAC will query one or more ISBN web services for associated ISBNs and display an Editions tab on the details pages','','YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('XISBN',0,'Use with FRBRizeEditions. If ON, Koha will use the OCLC xISBN web service in the Editions tab on the detail pages. See: http://www.worldcat.org/affiliate/webservices/xisbn/app.jsp','','YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OCLCAffiliateID','','Use with FRBRizeEditions and XISBN. You can sign up for an AffiliateID here: http://www.worldcat.org/wcpa/do/AffiliateUserServices?method=initSelfRegister','','free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('XISBNDailyLimit',499,'The xISBN Web service is free for non-commercial use when usage does not exceed 500 requests per day','','Integer');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('XISBNDailyLimit',999,'The xISBN Web service is free for non-commercial use when usage does not exceed 1000 requests per day','','Integer');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('ThingISBN',0,'Use with FRBRizeEditions. If ON, Koha will use the ThingISBN web service in the Editions tab on the detail pages.','','YesNo');
|
||||
|
||||
-- I18N/L10N
|
||||
|
|
|
@ -4567,14 +4567,14 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
|
|||
$DBversion = "3.06.00.002";
|
||||
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
|
||||
$dbh->do("UPDATE borrowers SET debarred=NULL WHERE debarred='0000-00-00';");
|
||||
print "Setting NULL to debarred where 0000-00-00 is stored (bug 7272)";
|
||||
print "Setting NULL to debarred where 0000-00-00 is stored (bug 7272)\n";
|
||||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = "3.06.02.001";
|
||||
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
|
||||
$dbh->do(" UPDATE `message_attributes` SET message_name='Item_Due' WHERE message_name='Item_DUE'");
|
||||
print "Updating message_name in message_attributes";
|
||||
print "Updating message_name in message_attributes\n";
|
||||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
|
|
|
@ -144,4 +144,9 @@ a.tagnum {
|
|||
|
||||
.yui-gf .yui-u {
|
||||
width: 79.2%;
|
||||
}
|
||||
/* Class to be added to toolbar when it starts being fixed at the top of the screen*/
|
||||
.floating {
|
||||
-webkit-box-shadow: 0px 3px 2px 0px rgba(0, 0, 0, .5);
|
||||
box-shadow: 0px 3px 2px 0px rgba(0, 0, 0, .5);
|
||||
}
|
|
@ -554,6 +554,8 @@ div.yui-b fieldset.brief li.radio {
|
|||
padding : .7em 0;
|
||||
}
|
||||
div.yui-b fieldset.brief li.radio label,
|
||||
div.yui-b fieldset.brief li.dateinsert label,
|
||||
div.yui-b fieldset.brief li.dateinsert span.label,
|
||||
div.yui-b fieldset.brief li.radio span.label {
|
||||
display : inline;
|
||||
}
|
||||
|
@ -1113,12 +1115,14 @@ div.first fieldset {
|
|||
}
|
||||
|
||||
.dialog {
|
||||
border: 1px solid #bcbcbc;
|
||||
-moz-border-radius : 2px;
|
||||
border-radius : 2px;
|
||||
padding : .5em;
|
||||
margin : 1em auto;
|
||||
width: 65%;
|
||||
}
|
||||
|
||||
text-align : center;
|
||||
width: 65%;
|
||||
}
|
||||
|
||||
.dialog table {
|
||||
margin : .5em auto;
|
||||
}
|
||||
|
@ -1192,20 +1196,27 @@ td input.approve {
|
|||
background-color : #ffc;
|
||||
}
|
||||
|
||||
div.dialog {
|
||||
border: 1px solid #bcbcbc;
|
||||
}
|
||||
|
||||
div.alert {
|
||||
background : #FFC url(../../img/alert-bg.gif) repeat-x left 0;
|
||||
text-align : center;
|
||||
background: #fef8d3; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #fef8d3 0%, #ffec91 9%, #ffed87 89%, #f9dc00 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fef8d3), color-stop(9%,#ffec91), color-stop(89%,#ffed87), color-stop(100%,#f9dc00)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #fef8d3 0%,#ffec91 9%,#ffed87 89%,#f9dc00 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #fef8d3 0%,#ffec91 9%,#ffed87 89%,#f9dc00 100%); /* Opera11.10+ */
|
||||
background: -ms-linear-gradient(top, #fef8d3 0%,#ffec91 9%,#ffed87 89%,#f9dc00 100%); /* IE10+ */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fef8d3', endColorstr='#f9dc00',GradientType=0 ); /* IE6-9 */
|
||||
background: linear-gradient(top, #fef8d3 0%,#ffec91 9%,#ffed87 89%,#f9dc00 100%); /* W3C */
|
||||
text-align : center;
|
||||
border: 1px solid #E0C726;
|
||||
}
|
||||
|
||||
div.alert strong {
|
||||
color : #900;
|
||||
}
|
||||
|
||||
div.dialog {
|
||||
background : #FFC url(../../img/dialog-bg.gif) repeat-x left 0;
|
||||
text-align : center;
|
||||
}
|
||||
|
||||
a.document {
|
||||
background-position : left middle;
|
||||
background-repeat : no-repeat;
|
||||
|
@ -1225,7 +1236,14 @@ a.xml {
|
|||
}
|
||||
|
||||
div.message {
|
||||
background : white url("../../img/message-bg.gif") repeat-x left 0;
|
||||
background: #ffffff; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #ffffff 0%, #f4f6fa 2%, #eaeef5 23%, #e8edf6 94%, #cddbf2 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(2%,#f4f6fa), color-stop(23%,#eaeef5), color-stop(94%,#e8edf6), color-stop(100%,#cddbf2)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #ffffff 0%,#f4f6fa 2%,#eaeef5 23%,#e8edf6 94%,#cddbf2 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #ffffff 0%,#f4f6fa 2%,#eaeef5 23%,#e8edf6 94%,#cddbf2 100%); /* Opera11.10+ */
|
||||
background: -ms-linear-gradient(top, #ffffff 0%,#f4f6fa 2%,#eaeef5 23%,#e8edf6 94%,#cddbf2 100%); /* IE10+ */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#cddbf2',GradientType=0 ); /* IE6-9 */
|
||||
background: linear-gradient(top, #ffffff 0%,#f4f6fa 2%,#eaeef5 23%,#e8edf6 94%,#cddbf2 100%); /* W3C */
|
||||
border : 1px solid #bcbcbc;
|
||||
text-align: center;
|
||||
width : 55%;
|
||||
|
@ -1307,7 +1325,14 @@ div#menu {
|
|||
div#menu li a {
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
background : #EEE url(../../img/side-tab-gradient.gif) repeat-y top right;
|
||||
background: #eeeeee; /* Old browsers */
|
||||
background: -moz-linear-gradient(left, #eeeeee 0%, #eeeeee 96%, #e6e6e6 97%, #cccccc 99%, #c1c1c1 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#eeeeee), color-stop(96%,#eeeeee), color-stop(97%,#e6e6e6), color-stop(99%,#cccccc), color-stop(100%,#c1c1c1)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(left, #eeeeee 0%,#eeeeee 96%,#e6e6e6 97%,#cccccc 99%,#c1c1c1 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(left, #eeeeee 0%,#eeeeee 96%,#e6e6e6 97%,#cccccc 99%,#c1c1c1 100%); /* Opera11.10+ */
|
||||
background: -ms-linear-gradient(left, #eeeeee 0%,#eeeeee 96%,#e6e6e6 97%,#cccccc 99%,#c1c1c1 100%); /* IE10+ */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#c1c1c1',GradientType=1 ); /* IE6-9 */
|
||||
background: linear-gradient(left, #eeeeee 0%,#eeeeee 96%,#e6e6e6 97%,#cccccc 99%,#c1c1c1 100%); /* W3C */
|
||||
border: 1px solid #000;
|
||||
font-size: 111%;
|
||||
margin: .5em 0;
|
||||
|
@ -1316,7 +1341,14 @@ div#menu li a {
|
|||
}
|
||||
|
||||
div#menu li a:hover {
|
||||
background : #E8F0F6 url(../../img/side-tab-gradient-hover.gif) repeat-y top right;
|
||||
background: #e8f0f6; /* Old browsers */
|
||||
background: -moz-linear-gradient(left, #e8f0f6 0%, #e8f0f6 96%, #c1c1c1 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#e8f0f6), color-stop(96%,#e8f0f6), color-stop(100%,#c1c1c1)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(left, #e8f0f6 0%,#e8f0f6 96%,#c1c1c1 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(left, #e8f0f6 0%,#e8f0f6 96%,#c1c1c1 100%); /* Opera11.10+ */
|
||||
background: -ms-linear-gradient(left, #e8f0f6 0%,#e8f0f6 96%,#c1c1c1 100%); /* IE10+ */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e8f0f6', endColorstr='#c1c1c1',GradientType=1 ); /* IE6-9 */
|
||||
background: linear-gradient(left, #e8f0f6 0%,#e8f0f6 96%,#c1c1c1 100%); /* W3C */
|
||||
}
|
||||
|
||||
div#menu li.active a:hover {
|
||||
|
@ -1605,8 +1637,16 @@ input[type=submit], input[type=reset], input[type=button], input.submit, button.
|
|||
border: 1px outset #999999;
|
||||
border-top-color: #666;
|
||||
border-left-color: #666;
|
||||
-moz-border-radius : 2px;
|
||||
padding: 0.25em;
|
||||
background : #E8E8E8 url(../../img/button-bg.gif) top left repeat-x;
|
||||
background: #ffffff; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #ffffff 0%, #f7f7f7 35%, #e0e0e0 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(35%,#f7f7f7), color-stop(100%,#e0e0e0)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #ffffff 0%,#f7f7f7 35%,#e0e0e0 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #ffffff 0%,#f7f7f7 35%,#e0e0e0 100%); /* Opera11.10+ */
|
||||
background: -ms-linear-gradient(top, #ffffff 0%,#f7f7f7 35%,#e0e0e0 100%); /* IE10+ */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e0e0e0',GradientType=0 ); /* IE6-9 */
|
||||
background: linear-gradient(top, #ffffff 0%,#f7f7f7 35%,#e0e0e0 100%); /* W3C */
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
|
@ -1929,7 +1969,15 @@ ul.budget_hierarchy li:first-child:after {
|
|||
content: "";
|
||||
}
|
||||
.holdcount { font-size : 105%; line-height : 200%; }
|
||||
.holdcount a { border : 1px solid #a4bedd; background-color : #e4ecf5; font-weight : bold; -moz-border-radius: 4px; padding : .1em .4em; text-decoration : none; }
|
||||
.holdcount a {
|
||||
border : 1px solid #a4bedd;
|
||||
background-color : #e4ecf5;
|
||||
font-weight : bold;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
padding : .1em .4em;
|
||||
text-decoration : none;
|
||||
}
|
||||
.holdcount a:hover { background-color : #ebeff7; }
|
||||
.container {
|
||||
border : 1px solid #EEE;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
[% IF ( facets_loo.type_label_Libraries ) %]Libraries[% END %]
|
||||
<ul>
|
||||
[% FOREACH facet IN facets_loo.facets %]<li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %][% IF ( sort_by ) %]&sort_by=[% sort_by %][% END %]&limit=[% facet.type_link_value %]:[% facet.facet_link_value %]" title="[% facet.facet_title_value %]">[% facet.facet_label_value %]</a> [% IF ( displayFacetCount ) %]([% facet.facet_count %])[% END %]</li>[% END %][% IF ( facets_loo.expandable ) %]
|
||||
<li class="showmore"><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %][% IF ( sort_by ) %]&sort_by=[% sort_by %][% END %]&expand=[% facets_loo.expand %]#[% facets_loo.type_id %]">Show More</a></li>
|
||||
<li class="showmore"><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %][% IF ( sort_by ) %]&sort_by=[% sort_by %][% END %][% IF ( offset ) %]&offset=[% offset %][% END %]&expand=[% facets_loo.expand %]#[% facets_loo.type_id %]">Show More</a></li>
|
||||
[% END %]
|
||||
</ul></li>
|
||||
[% END %]
|
||||
|
|
|
@ -0,0 +1,68 @@
|
|||
/* Source: http://www.webspeaks.in/2011/07/new-gmail-like-floating-toolbar-jquery.html
|
||||
Revision: http://jsfiddle.net/pasmalin/AyjeZ/
|
||||
*/
|
||||
(function($){
|
||||
$.fn.fixFloat = function(options){
|
||||
|
||||
var defaults = {
|
||||
enabled: true
|
||||
};
|
||||
var options = $.extend(defaults, options);
|
||||
|
||||
var offsetTop; /**Distance of the element from the top of window**/
|
||||
var s; /**Scrolled distance from the top of window through which we have moved**/
|
||||
var fixMe = true;
|
||||
var repositionMe = true;
|
||||
|
||||
var tbh = $(this);
|
||||
var originalOffset = tbh.position().top; /**Get the actual distance of the element from the top mychange:change to position better work**/
|
||||
|
||||
if (tbh.css('position')!='absolute') {
|
||||
var tbhBis = $("<div></div>");
|
||||
tbhBis.css({"display":tbh.css("display"),"visibility":"hidden"});
|
||||
tbhBis.width(tbh.outerWidth(true));
|
||||
tbhBis.height(tbh.outerHeight(true));
|
||||
tbh.after(tbhBis);
|
||||
tbh.width(tbh.width());
|
||||
tbh.css({'position':'absolute'});
|
||||
}
|
||||
|
||||
if(options.enabled){
|
||||
$(window).scroll(function(){
|
||||
var offsetTop = tbh.offset().top; /**Get the current distance of the element from the top **/
|
||||
var s = parseInt($(window).scrollTop(), 10); /**Get the from the top of wondow through which we have scrolled**/
|
||||
var fixMe = true;
|
||||
if(s > offsetTop){
|
||||
fixMe = true;
|
||||
}else{
|
||||
fixMe = false;
|
||||
}
|
||||
|
||||
if(s < originalOffset){
|
||||
repositionMe = true;
|
||||
}else{
|
||||
repositionMe = false;
|
||||
}
|
||||
|
||||
if(fixMe){
|
||||
var cssObj = {
|
||||
'position' : 'fixed',
|
||||
'top' : '0px',
|
||||
'z-index' : '1000'
|
||||
}
|
||||
tbh.css(cssObj);
|
||||
tbh.addClass("floating");
|
||||
}
|
||||
if(repositionMe){
|
||||
var cssObj = {
|
||||
'position' : 'absolute',
|
||||
'top' : originalOffset,
|
||||
'z-index' : '1'
|
||||
}
|
||||
tbh.css(cssObj);
|
||||
tbh.removeClass("floating");
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
|
@ -16,12 +16,12 @@
|
|||
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › About Koha</div>
|
||||
|
||||
<div id="doc3" class="yui-t7">
|
||||
|
||||
|
||||
<div id="bd">
|
||||
<div id="yui-main">
|
||||
<div class="yui-g">
|
||||
<h1>About Koha</h1>
|
||||
|
||||
|
||||
<div id="abouttabs" class="toptabs numbered">
|
||||
<ul>
|
||||
<li><a href="about.pl#about">Server Information</a></li>
|
||||
|
@ -29,10 +29,11 @@
|
|||
<li><a href="about.pl#team">Koha Team</a></li>
|
||||
<li><a href="about.pl#licenses">Licenses</a></li>
|
||||
<li><a href="about.pl#translations">Translations</a></li>
|
||||
<li><a href="about.pl#history">Koha Timeline</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<div id="about">
|
||||
|
||||
|
||||
<table>
|
||||
<caption>Server information</caption>
|
||||
<tr><th scope="row">Koha version: </th><td>[% kohaVersion |html %]</td></tr>
|
||||
|
@ -95,11 +96,11 @@
|
|||
<li>The <strong><a href="http://library.neu.edu.tr">Near East University</a></strong>, Cyprus</li>
|
||||
<li><strong>OPUS International Consultants</strong>, Wellington, New Zealand (Corporate Serials sponsorship)</li>
|
||||
<li><strong><a href="http://www.famfamfam.com/">famfamfam.com</a></strong> Birmingham (UK) based developer Mark James for the famfamfam Silk iconset.</li>
|
||||
</ul>
|
||||
|
||||
</ul>
|
||||
|
||||
<h2>Koha Release Team</h2>
|
||||
<ul>
|
||||
<li><strong>Colin Campbell</strong>(Koha 3.4 QA Manager)</li>
|
||||
<li><strong>Colin Campbell</strong> (Koha 3.4 QA Manager)</li>
|
||||
<li><strong><a href="https://www.ohloh.net/p/koha/contributors/6618544614260">Galen Charlton</a></strong> (Koha 3.2 Release Manager)</li>
|
||||
<li><strong><a href="https://www.ohloh.net/p/koha/contributors/6618544609030">Chris Cormack</a></strong> (Koha 1.x, 3.4, 3.6 Release Manager, Koha 3.2 Translation Manager)</li>
|
||||
<li><strong><a href="https://www.ohloh.net/p/koha/contributors/6620692210484">Frédéric Demians</a></strong>(Koha 3.4, 3.6 Translation Manager)</li>
|
||||
|
@ -108,10 +109,10 @@
|
|||
<li><strong>Rachel Hamilton-Williams</strong> (Kaitiaki from 2004 to present)</li>
|
||||
<li><strong><a href="https://www.ohloh.net/p/koha/contributors/6618544614275">Henri-Damien Laurent</a></strong> (Koha 3.0 Release Maintainer)</li>
|
||||
<li><strong><a href="https://www.ohloh.net/p/koha/contributors/6618544609147">Owen Leonard</a></strong> (Koha 3.x Interface Design)</li>
|
||||
<li><strong><a href="https://www.ohloh.net/p/koha/contributors/6618544615991">Chris Nighswonger</a></strong> (Koha 3.2, 3.4 Release Maintainer)</li>
|
||||
<li><strong><a href="https://www.ohloh.net/p/koha/contributors/6618544612249">Paul Poulain</a></strong> (Koha 2.0 Release Manager, Koha 2.2 Release Manager/Maintainer)</li>
|
||||
<li><strong><a href="https://www.ohloh.net/p/koha/contributors/6618544615991">Chris Nighswonger</a></strong> (Koha 3.2, 3.4 Release Maintainer, Koha 3.6 Release Maintainer)</li>
|
||||
<li><strong><a href="https://www.ohloh.net/p/koha/contributors/6618544612249">Paul Poulain</a></strong> (Koha 2.0 Release Manager, Koha 2.2 Release Manager/Maintainer, Koha 3.8 Release Manager)</li>
|
||||
<li><strong><a href="http://www.ohloh.net/p/koha/contributors/6620692116417">MJ Ray</a></strong> (Koha 2.0 Release Maintainer)</li>
|
||||
<li><strong>Ian Walls</strong> Koha 3.6 QA Manager</li>
|
||||
<li><strong>Ian Walls</strong> Koha 3.6 QA Manager, Koha 3.8 QA Manager</li>
|
||||
</ul>
|
||||
<h2>Koha Development Team</h2>
|
||||
<ul>
|
||||
|
@ -286,7 +287,7 @@
|
|||
<li><strong>Katipo Communications</strong>, New Zealand</li>
|
||||
<li><strong>KohaAloha</strong>, New Zealand</li>
|
||||
<li><strong>LibLime</strong>, USA</li>
|
||||
<li><strong>Libriotech</strong>, Norway</li>
|
||||
<li><strong>Libriotech</strong>, Norway</li>
|
||||
<li><strong>Nelsonville Public Library</strong>, Ohio, USA</li>
|
||||
<li><strong>PTFS</strong>, Maryland, USA</li>
|
||||
<li><strong>PTFS Europe Ltd</strong>, United Kingdom</li>
|
||||
|
@ -296,7 +297,7 @@
|
|||
<li><strong>Tamil</strong>, France</li>
|
||||
<li><strong>Xercode</strong>, Spain</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h2>Additional Thanks To...</h2>
|
||||
<ul>
|
||||
<li>Jo Ransom</li>
|
||||
|
@ -307,6 +308,7 @@
|
|||
<li>Nicolas Morin (French Translation in 2.0)</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="licenses">
|
||||
<h2>Koha</h2>
|
||||
<p>
|
||||
|
@ -315,7 +317,7 @@
|
|||
<h2>YUI</h2>
|
||||
<p>
|
||||
<a href="http://developer.yahoo.com/auth/license.txt">BSD License</a>
|
||||
</p>
|
||||
</p>
|
||||
<h2>Famfamfam iconset</h2>
|
||||
<ul>
|
||||
<li><a href="http://www.famfamfam.com/lab/icons/silk/">FamFamFam Site</a></li>
|
||||
|
@ -329,6 +331,7 @@
|
|||
by the Bridge Consortium of Carleton College and St. Olaf College.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="translations">
|
||||
<h2>Translation</h2>
|
||||
<ul>
|
||||
|
@ -380,8 +383,30 @@
|
|||
<li><strong>اردو(Urdu)</strong> Ata ur Rehman</li>
|
||||
<li><strong>Українська (Ukrainian)</strong> Victor Titarchuk and Serhij Dubyk</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="history">
|
||||
<h2>Koha history timeline</h2>
|
||||
<table style="cursor:pointer">
|
||||
<thead>
|
||||
<tr>
|
||||
<td style="font-weight:bold;" >Date</td>
|
||||
<td style="font-weight:bold;" >Description</td>
|
||||
</tr>
|
||||
</thead>
|
||||
[% FOREACH tabl IN table2 %]
|
||||
<tr class="[% loop.parity %]">
|
||||
[% FOREACH ro IN tabl.row2 %]
|
||||
<td>[% ro.date %]</td>
|
||||
<td>[% ro.desc|html %]</td>
|
||||
[% END %]
|
||||
</tr>
|
||||
[% END %]
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div></div></div>
|
||||
[% INCLUDE 'intranet-bottom.inc' %]
|
||||
|
|
|
@ -125,8 +125,8 @@
|
|||
[% FOREACH item IN items %]
|
||||
<div id="outeritemblock">
|
||||
<div id="itemblock">
|
||||
<ol>[% FOREACH iteminformatio IN item.iteminformation %]<li>
|
||||
<div class="subfield_line" style="[% iteminformatio.hidden %];" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]">
|
||||
<ol>[% FOREACH iteminformatio IN item.iteminformation %]<li style="[% iteminformatio.hidden %];">
|
||||
<div class="subfield_line" id="subfield[% iteminformatio.serialid %][% iteminformatio.countitems %][% iteminformatio.subfield %][% iteminformatio.random %]">
|
||||
|
||||
<label>[% iteminformatio.subfield %] - [% IF ( iteminformatio.mandatory ) %]<b>[% END %][% iteminformatio.marc_lib %][% IF ( iteminformatio.mandatory ) %] *</b>[% END %]</label>
|
||||
[% iteminformatio.marc_value %]
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
[% UNLESS ( closedate ) %]
|
||||
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/JavaScript">
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
$(document).ready(function() {
|
||||
$("#orders").tablesorter({
|
||||
|
@ -19,7 +19,6 @@
|
|||
window.location = "[% script_name %]?op=close&basketno=[% basketno %]";
|
||||
}
|
||||
}
|
||||
|
||||
function confirm_deletion() {
|
||||
var is_confirmed = confirm(_('Are you sure you want to delete this basket?'));
|
||||
if (is_confirmed) {
|
||||
|
@ -43,6 +42,17 @@
|
|||
//]]>
|
||||
</script>
|
||||
[% ELSE %]
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
$(document).ready(function(){
|
||||
$("#basketgroupid").change(function(){
|
||||
if($(this).val() == "new"){
|
||||
location.href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]";
|
||||
}
|
||||
});
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
[% UNLESS ( grouped ) %]
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
@ -157,43 +167,51 @@
|
|||
</h2>
|
||||
[% END %]
|
||||
[% IF ( basketno ) %]
|
||||
<div id="acqui_basket_summary" class="yui-g">
|
||||
<h2>Basket details</h2>
|
||||
[% IF ( basketnote ) %]<p>Internal note: [% basketnote %]</p>[% END %]
|
||||
[% IF ( basketbooksellernote ) %]<p>Vendor note: [% basketbooksellernote %]</p>[% END %]
|
||||
<div id="acqui_basket_summary" class="yui-g">
|
||||
<div class="rows">
|
||||
<div class="yui-u first">
|
||||
<ol>
|
||||
[% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
|
||||
[% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
|
||||
[% IF ( basketcontractno ) %]
|
||||
<p>Contract name: <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></p>
|
||||
<li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></li>
|
||||
[% END %]
|
||||
[% IF ( authorisedbyname ) %]<p>Managed by: [% authorisedbyname %]</p>[% END %]
|
||||
[% IF ( creationdate ) %]<p>Opened on: [% creationdate %]</p>[% END %]
|
||||
[% IF ( authorisedbyname ) %]<li><span class="label">Managed by:</span> [% authorisedbyname %]</li>[% END %]
|
||||
[% IF ( creationdate ) %]<li><span class="label">Opened on:</span> [% creationdate %]</li>[% END %]
|
||||
[% IF ( closedate ) %]<li><span class="label">Closed on:</span> [% closedate %]</li>[% END %]
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
[% IF ( closedate ) %]
|
||||
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
|
||||
<p>Closed on: [% closedate %]</p>
|
||||
[% IF ( basketgroups ) %]
|
||||
<p> Basket group: <select id="basketgroupid" name="basketgroupid">
|
||||
[% FOREACH basketgroup IN basketgroups %]
|
||||
[% IF ( basketgroup.default ) %]
|
||||
<div class="yui-u">
|
||||
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
|
||||
|
||||
<p><label for="basketgroupid"><strong>Basket group:</strong></label></p>
|
||||
<p><select id="basketgroupid" name="basketgroupid">
|
||||
<option value="new">Add new group</option>
|
||||
[% FOREACH basketgroup IN basketgroups %]
|
||||
[% IF ( basketgroup.default ) %]
|
||||
<option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
|
||||
[% ELSE %]
|
||||
[% ELSE %]
|
||||
<option value="[% basketgroup.id %]">[% basketgroup.name %]</option>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</select>
|
||||
<input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
|
||||
[% END %]
|
||||
[% END %]
|
||||
</select></p>
|
||||
|
||||
<p><input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
|
||||
<input type="hidden" value="mod_basket" name="op" />
|
||||
<input type="hidden" name="booksellerid" value="[% booksellerid %]" />
|
||||
<input type="submit" value="Change basket group" />
|
||||
</p>
|
||||
</form>
|
||||
[% ELSE %]
|
||||
<a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% basketgroups %]&basketgroupid=[% id %]">[% name %]</a>
|
||||
[% END %]
|
||||
<input type="submit" value="Change basket group" /></p>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
[% END %]
|
||||
</div>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
[% UNLESS ( delete_confirm ) %]
|
||||
<div id="acqui_basket_content">
|
||||
<div id="acqui_basket_content" class="yui-g">
|
||||
<h2>Order Details</h2>
|
||||
[% IF ( books_loop ) %]
|
||||
<table id="orders">
|
||||
|
@ -216,11 +234,11 @@
|
|||
<tfoot>
|
||||
[% IF ( GST ) %]
|
||||
<tr>
|
||||
<th>Total Tax Exc.</th>
|
||||
<th>[% total_rrp_gste %]</th>
|
||||
<th> </th>
|
||||
<th>[% qty_total %]</th>
|
||||
<th>[% total_est_gste %]</th>
|
||||
<th scope="row">Total Tax Exc.</th>
|
||||
<td>[% total_rrp_gste %]</td>
|
||||
<td> </td>
|
||||
<td>[% qty_total %]</td>
|
||||
<td>[% total_est_gste %]</td>
|
||||
[% IF ( active ) %]
|
||||
[% IF ( closedate ) %]
|
||||
<td colspan="1" rowspan="3"> </td>
|
||||
|
@ -230,26 +248,26 @@
|
|||
[% END %]
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Tax ([% gist_rate %])</th>
|
||||
<th>[% gist_rrp %]</th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th>[% gist_est %]</th>
|
||||
<th scope="row">Tax ([% gist_rate %])</th>
|
||||
<td>[% gist_rrp %]</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>[% gist_est %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Total Tax Inc. ([% currency %])</th>
|
||||
<th>[% total_rrp_gsti %]</th>
|
||||
<th> </th>
|
||||
<th>[% qty_total %]</th>
|
||||
<th>[% total_est_gsti %]</th>
|
||||
<th scope="row">Total Tax Inc. ([% currency %])</th>
|
||||
<td>[% total_rrp_gsti %]</td>
|
||||
<td> </td>
|
||||
<td>[% qty_total %]</td>
|
||||
<td>[% total_est_gsti %]</td>
|
||||
</tr>
|
||||
[% ELSE %]
|
||||
<tr>
|
||||
<th>Total ([% currency %])</th>
|
||||
<th>[% total_rrp_gsti %]</th>
|
||||
<th> </th>
|
||||
<th>[% qty_total %]</th>
|
||||
<th>[% total_est_gsti %]</th>
|
||||
<th scope="row">Total ([% currency %])</th>
|
||||
<td>[% total_rrp_gsti %]</td>
|
||||
<td> </td>
|
||||
<td>[% qty_total %]</td>
|
||||
<td>[% total_est_gsti %]</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tfoot>
|
||||
|
|
|
@ -1,16 +1,12 @@
|
|||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Basket Grouping for [% booksellername %]</title>
|
||||
<title>Koha › Basket Grouping for [% booksellername |html %]</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="[% yuipath %]/fonts/fonts-min.css" />
|
||||
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
|
||||
[% IF ( grouping ) %]
|
||||
<script type="text/javascript" src="[% yuipath %]/yahoo-dom-event/yahoo-dom-event.js"></script>
|
||||
<script type="text/javascript" src="[% yuipath %]/animation/animation-min.js"></script>
|
||||
<script type="text/javascript" src="[% yuipath %]/dragdrop/dragdrop-min.js"></script>
|
||||
<script type="text/javascript" src="[% yuipath %]/element/element-min.js"></script>
|
||||
<script type="text/javascript" src="[% yuipath %]/tabview/tabview-min.js"></script>
|
||||
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="[% yuipath %]/tabview/assets/skins/sam/tabview.css" />
|
||||
|
||||
<style type="text/css">
|
||||
/*margin and padding on body element
|
||||
can introduce errors in determining
|
||||
|
@ -34,23 +30,13 @@ body {
|
|||
}
|
||||
|
||||
div.workarea_alt { padding: 5px; float:left; width: 95%;}
|
||||
div.closed { background-color="pink"; padding:10px; float:left; width: 45%;}
|
||||
|
||||
ul.closed {
|
||||
position: relative;
|
||||
background: grey;
|
||||
padding-bottom:10;
|
||||
border: 1px solid gray;
|
||||
list-style: none;
|
||||
margin:0;
|
||||
padding: 5px;
|
||||
}
|
||||
div.closed { background-color: pink; padding:10px; float:left; width: 45%;}
|
||||
|
||||
ul.draglist {
|
||||
position: relative;
|
||||
background: #f7f7f7;
|
||||
background: #EEE;
|
||||
padding-bottom:10;
|
||||
border: 1px solid gray;
|
||||
border: 1px inset gray;
|
||||
list-style: none;
|
||||
margin:0;
|
||||
padding: 5px;
|
||||
|
@ -93,28 +79,11 @@ fieldset.various li {
|
|||
clear: none;
|
||||
}
|
||||
|
||||
.basketgroup {
|
||||
margin-top: 10px;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
list-style: none;
|
||||
background-color: #D8D4E2;
|
||||
display: block;
|
||||
}
|
||||
.basketgroup li{
|
||||
font-size: 0.5em;
|
||||
list-style: none;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
[% END %]
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
YAHOO.util.Event.onDOMReady(DDApp.init, DDApp, true);
|
||||
var tabView = new YAHOO.widget.TabView('bgtabs');
|
||||
//]]>
|
||||
|
||||
|
||||
function submitForm(form) {
|
||||
if (form.close.checked == true) {
|
||||
|
@ -125,70 +94,67 @@ function submitForm(form) {
|
|||
form.appendChild(input);
|
||||
}
|
||||
}
|
||||
// prepare DOM for YUI Toolbar
|
||||
|
||||
$(document).ready(function() {
|
||||
// $("#toolbar").empty();
|
||||
yuiToolbar();
|
||||
$("#basket_groups > ul").tabs();
|
||||
});
|
||||
|
||||
// YUI Toolbar Functions
|
||||
|
||||
function yuiToolbar() {
|
||||
var booksellermenu = [
|
||||
{ text: _("Vendor"), url: "/cgi-bin/koha/acqui/supplier.pl?supplierid=[% booksellerid %]" },
|
||||
{ text: _("Edit vendor"), url: "/cgi-bin/koha/acqui/booksellers.pl?booksellerid=[% booksellerid %]"},
|
||||
]
|
||||
var ordersbutton = [
|
||||
{ text: _("Manage orders"), url: "/cgi-bin/koha/acqui/booksellers.pl?supplierid=[% booksellerid %]" },
|
||||
{ text: _("Edit uncertain prices"), url: "/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1" },
|
||||
]
|
||||
new YAHOO.widget.Button("newbasketgroup");
|
||||
new YAHOO.widget.Button({
|
||||
type: "menu",
|
||||
label: _("Vendor"),
|
||||
name: "booksellerbutton",
|
||||
menu: booksellermenu,
|
||||
container: "toolbar"
|
||||
});
|
||||
|
||||
new YAHOO.widget.Button({
|
||||
type: "menu",
|
||||
label: _("Orders"),
|
||||
name: "ordersbutton",
|
||||
menu: ordersbutton,
|
||||
container: "toolbar"
|
||||
});
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
[% INCLUDE 'header.inc' %]
|
||||
[% INCLUDE 'acquisitions-search.inc' %]
|
||||
|
||||
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% booksellerid %]">[% booksellername %]</a> › Basket Grouping</div>
|
||||
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% booksellerid %]">[% booksellername |html %]</a> › Basket Grouping</div>
|
||||
|
||||
<div id="doc" class="yui-t7">
|
||||
|
||||
<div class="yui-b">
|
||||
<div id="toolbar">
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
// prepare DOM for YUI Toolbar
|
||||
|
||||
$(document).ready(function() {
|
||||
// $("#toolbar").empty();
|
||||
yuiToolbar();
|
||||
});
|
||||
|
||||
// YUI Toolbar Functions
|
||||
|
||||
function yuiToolbar() {
|
||||
var booksellermenu = [
|
||||
{ text: _("Vendor"), url: "/cgi-bin/koha/acqui/supplier.pl?supplierid=[% booksellerid %]" },
|
||||
{ text: _("Edit vendor"), url: "/cgi-bin/koha/acqui/booksellers.pl?booksellerid=[% booksellerid %]"},
|
||||
]
|
||||
var ordersbutton = [
|
||||
{ text: _("Manage orders"), url: "/cgi-bin/koha/acqui/booksellers.pl?supplierid=[% booksellerid %]" },
|
||||
{ text: _("Edit uncertain prices"), url: "/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1" },
|
||||
]
|
||||
new YAHOO.widget.Button("newbasketgroup");
|
||||
new YAHOO.widget.Button({
|
||||
type: "menu",
|
||||
label: _("Vendor"),
|
||||
name: "booksellerbutton",
|
||||
menu: booksellermenu,
|
||||
container: "toolbar"
|
||||
});
|
||||
|
||||
new YAHOO.widget.Button({
|
||||
type: "menu",
|
||||
label: _("Orders"),
|
||||
name: "ordersbutton",
|
||||
menu: ordersbutton,
|
||||
container: "toolbar"
|
||||
});
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
<a href="?op=add&booksellerid=[% booksellerid %]" name="newbasketgroup" id="newbasketgroup">New Basket Group</a>
|
||||
</div>
|
||||
<h1>Basket Grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% booksellerid %]">[% booksellername %]</a></h1>
|
||||
<h1>Basket Grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% booksellerid %]">[% booksellername |html %]</a></h1>
|
||||
</div>
|
||||
[% IF ( grouping ) %]
|
||||
<div id="bd">
|
||||
<div class="yui-g">
|
||||
<div class="yui-u grouping">
|
||||
<div class="yui-u">
|
||||
|
||||
<form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups">
|
||||
<div id="groups">
|
||||
<fieldset class="brief">
|
||||
<div class="workarea_alt" >
|
||||
<h3>Ungrouped Baskets</h3>
|
||||
<ul id="ungrouped" class="draglist_alt">
|
||||
|
@ -209,6 +175,7 @@ function submitForm(form) {
|
|||
[% END %]
|
||||
</ul>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
@ -216,31 +183,32 @@ function submitForm(form) {
|
|||
|
||||
<div class="yui-u first">
|
||||
<form action="" method="post" id="groupingform" onsubmit="return submitForm(this)">
|
||||
<fieldset id="various" class='various' >
|
||||
<h3><label for="basketgroupname">Basket Group Name:</label></h3>
|
||||
<input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" />
|
||||
<h3><label for="billingplace">Billing Place:</label></h3>
|
||||
<select name="billingplace" id="billingplace">
|
||||
[% FOREACH billingplaceloo IN billingplaceloop %]
|
||||
[% IF ( billingplaceloo.selected ) %]<option value="[% billingplaceloo.value %]" selected="selected">[% billingplaceloo.branchname %]</option>
|
||||
[% ELSE %]<option value="[% billingplaceloo.value %]">[% billingplaceloo.branchname %]</option>[% END%]
|
||||
[% END %]
|
||||
</select>
|
||||
<h3><label for="deliveryplace">Delivery Place:</label></h3>
|
||||
<select name="deliveryplace" id="deliveryplace">
|
||||
<option value="">--</option>
|
||||
[% FOREACH deliveryplaceloo IN deliveryplaceloop %]
|
||||
[% IF ( deliveryplaceloo.selected ) %]<option value="[% deliveryplaceloo.value %]" selected="selected">[% deliveryplaceloo.branchname %]</option>
|
||||
[% ELSE %]<option value="[% deliveryplaceloo.value %]">[% deliveryplaceloo.branchname %]</option>[% END %]
|
||||
[% END %]
|
||||
</select>
|
||||
<p>or</p>
|
||||
<h3><label for="freedeliveryplace">Delivery Place:</label></h3>
|
||||
<textarea cols="26" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea>
|
||||
<h3><label for="deliverycomment">Delivery comment:</label></h3>
|
||||
<textarea cols="26" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea>
|
||||
<div class="workarea">
|
||||
<h3>Grouping:</h3>
|
||||
<fieldset id="various" class="brief">
|
||||
<ol>
|
||||
<li><label for="basketgroupname">Basket Group Name:</label>
|
||||
<input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" /></li>
|
||||
<li><label for="billingplace">Billing Place:</label>
|
||||
<select name="billingplace" id="billingplace" style="width:13em;">
|
||||
[% FOREACH billingplaceloo IN billingplaceloop %]
|
||||
[% IF ( billingplaceloo.selected ) %]<option value="[% billingplaceloo.value %]" selected="selected">[% billingplaceloo.branchname %]</option>
|
||||
[% ELSE %]<option value="[% billingplaceloo.value %]">[% billingplaceloo.branchname %]</option>[% END%]
|
||||
[% END %]
|
||||
</select></li>
|
||||
<li><label for="deliveryplace">Delivery Place:</label>
|
||||
<select name="deliveryplace" id="deliveryplace" style="width:13em;">
|
||||
<option value="">--</option>
|
||||
[% FOREACH deliveryplaceloo IN deliveryplaceloop %]
|
||||
[% IF ( deliveryplaceloo.selected ) %]<option value="[% deliveryplaceloo.value %]" selected="selected">[% deliveryplaceloo.branchname %]</option>
|
||||
[% ELSE %]<option value="[% deliveryplaceloo.value %]">[% deliveryplaceloo.branchname %]</option>[% END %]
|
||||
[% END %]
|
||||
</select></li>
|
||||
<li><p>or</p></li>
|
||||
<li><label for="freedeliveryplace">Delivery Place:</label>
|
||||
<textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea></li>
|
||||
<li><label for="deliverycomment">Delivery comment:</label>
|
||||
<textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea>
|
||||
</li>
|
||||
<li><span class="label">Baskets in this group:</span>
|
||||
<ul class="draglist" id="bg">
|
||||
[% FOREACH selectedbasket IN selectedbaskets %]
|
||||
<li class="grouped" id="b-[% selectedbasket.basketno %]" >
|
||||
|
@ -255,105 +223,96 @@ function submitForm(form) {
|
|||
<input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" />
|
||||
</li>
|
||||
[% END %]
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div><input type="checkbox" name="close"> Close</input></div>
|
||||
<input type="hidden" name="booksellerid" value="[% booksellerid %]" />
|
||||
</li>
|
||||
<li><label><input type="checkbox" id="close" name="close" /> Close basket group</label></li>
|
||||
</ol>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" />
|
||||
[% IF ( basketgroupid ) %]
|
||||
<input type="hidden" name="basketgroupid" value="[% basketgroupid %]" />
|
||||
[% END %]
|
||||
<input type="hidden" name="op" value="attachbasket" />
|
||||
<input type="submit" value="Save" />
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
[% ELSE %]
|
||||
<div class="yui-g">
|
||||
<div id="bgtabs" class="yui-navset">
|
||||
<ul class="yui-nav">
|
||||
[% UNLESS ( closed ) %]<li class="selected"><a href="#opened"><em>Opened</em></a></li>
|
||||
[% ELSE%]<li><a href="#opened"><em>Opened</em></a></li>[% END %]
|
||||
[% IF ( closed ) %]<li class="selected"><a href="#closed"><em>Closed</em></a></li>
|
||||
[% ELSE %]<li><a href="#closed"><em>Closed</em></a></li>[% END %]
|
||||
</ul>
|
||||
<div class="yui-content">
|
||||
<div id="opened">
|
||||
<ul>
|
||||
[% FOREACH basketgroup IN basketgroups %]
|
||||
[% UNLESS ( basketgroup.closed ) %]
|
||||
<li class="basketgroup">
|
||||
[% IF ( basketgroup.name ) %]
|
||||
[% basketgroup.name %]
|
||||
[% ELSE %]
|
||||
Basket Group n°[% basketgroup.id %]
|
||||
[% END %]
|
||||
<ul>
|
||||
<li>
|
||||
<span class="yui-button yui-link-button">
|
||||
<span class="first-child">
|
||||
<a href="javascript:closeandprint([% basketgroup.id %])" class="yui-button yui-link-button">Close & Print</a>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="yui-button yui-link-button">
|
||||
<span class="first-child">
|
||||
<a href="?op=add&booksellerid=[% basketgroup.booksellerid %]&basketgroupid=[% basketgroup.id %]" class="yui-button yui-link-button" >Edit</a>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="yui-button yui-link-button">
|
||||
<span class="first-child">
|
||||
<a href="?op=delete&booksellerid=[% basketgroup.booksellerid %]&basketgroupid=[% basketgroup.id %]" class="yui-button yui-link-button" >Delete</a>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</ul>
|
||||
</div>
|
||||
<div id="closed">
|
||||
<ul>
|
||||
[% FOREACH basketgroup IN basketgroups %]
|
||||
[% IF ( basketgroup.closed ) %]
|
||||
<li class="basketgroup">
|
||||
[% IF ( basketgroup.name ) %]
|
||||
[% basketgroup.name %]
|
||||
[% ELSE %]
|
||||
Basket Group n°[% basketgroup.id %]
|
||||
[% END %]
|
||||
<ul>
|
||||
<li>
|
||||
<span class="yui-button yui-link-button">
|
||||
<span class="first-child">
|
||||
<a href="/cgi-bin/koha/acqui/basketgroup.pl?op=reopen&booksellerid=[% basketgroup.booksellerid %]&basketgroupid=[% basketgroup.id %]" class="yui-button yui-link-button">Reopen</a>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="yui-button yui-link-button">
|
||||
<span class="first-child">
|
||||
<a href="/cgi-bin/koha/acqui/basketgroup.pl?op=print&basketgroupid=[% basketgroup.id %]" class="yui-button yui-link-button">Print</a>
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</ul>
|
||||
<div class="yui-g">
|
||||
<div id="basket_groups" class="toptabs">
|
||||
<ul class="ui-tabs-nav">
|
||||
[% UNLESS ( closed ) %]<li class="ui-tabs-selected"><a href="#opened">Open</a></li>
|
||||
[% ELSE%]<li><a href="#opened">Open</a></li>[% END %]
|
||||
[% IF ( closed ) %]<li class="ui-tabs-selected"><a href="#closed">Closed</a></li>
|
||||
[% ELSE %]<li><a href="#closed">Closed</a></li>[% END %]
|
||||
</ul>
|
||||
<div id="opened">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Basket Group</th><th colspan="3">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
[% FOREACH basketgroup IN basketgroups %]
|
||||
[% UNLESS ( basketgroup.closed ) %]
|
||||
<tr>
|
||||
<td><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% basketgroup.booksellerid %]&basketgroupid=[% basketgroup.id %]">[% IF ( basketgroup.name ) %]
|
||||
[% basketgroup.name %]
|
||||
[% ELSE %]
|
||||
Basket group no. [% basketgroup.id %]
|
||||
[% END %]</a>
|
||||
</td>
|
||||
<td>
|
||||
<input type="button" onclick="closeandprint([% basketgroup.id %])" value="Close and Print" />
|
||||
</td>
|
||||
<td>
|
||||
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Edit" /></form>
|
||||
</td>
|
||||
<td>
|
||||
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="delete" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Delete" /></form>
|
||||
</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="closed">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Basket Group</th><th colspan="3">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
[% FOREACH basketgroup IN basketgroups %]
|
||||
[% IF ( basketgroup.closed ) %]
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/cgi-bin/koha/acqui/basketgroup.pl?op=reopen&booksellerid=[% basketgroup.booksellerid %]&basketgroupid[% basketgroup.id %]">[% IF ( basketgroup.name ) %]
|
||||
[% basketgroup.name %]
|
||||
[% ELSE %]
|
||||
Basket group no. [% basketgroup.id %]
|
||||
[% END %]</a>
|
||||
</td>
|
||||
<td>
|
||||
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="reopen" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Reopen" /></form>
|
||||
</td>
|
||||
<td>
|
||||
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="print" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Print" /></form>
|
||||
</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
[% INCLUDE 'intranet-bottom.inc' %]
|
||||
|
|
|
@ -420,7 +420,7 @@
|
|||
</li>
|
||||
<li class="radio">
|
||||
|
||||
<label for="show_mine">Show my<br /> funds only</label>
|
||||
<label for="show_mine">Show my funds only</label>
|
||||
[% IF ( show_mine ) %]
|
||||
<input type="checkbox" id="show_mine" name="show_mine" value="1" checked="checked" />
|
||||
[% ELSE %]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Catalog › Item details for [% FOREACH BIBITEM_DAT IN BIBITEM_DATA %][% BIBITEM_DAT.title %][% END %]</title>
|
||||
<title>Koha › Catalog › Item details for [% title %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield %][% END %]</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
<style type="text/css">h3{padding-top: 1em; border-top: 2px solid #CCCCCC;}</style>
|
||||
</head>
|
||||
|
@ -8,7 +8,7 @@
|
|||
[% INCLUDE 'header.inc' %]
|
||||
[% INCLUDE 'cat-search.inc' %]
|
||||
|
||||
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> › Item Details for <i>[% FOREACH BIBITEM_DAT IN BIBITEM_DATA %][% BIBITEM_DAT.title |html %][% END %]</i></div>
|
||||
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> › Item Details for <i>[% title |html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield|html %][% END %]</i></div>
|
||||
|
||||
<div id="doc3" class="yui-t2">
|
||||
|
||||
|
@ -18,24 +18,25 @@
|
|||
[% INCLUDE 'cat-toolbar.inc' %]
|
||||
|
||||
<div id="catalogue_detail_biblio">
|
||||
[% FOREACH BIBITEM_DAT IN BIBITEM_DATA %]
|
||||
<h2>[% BIBITEM_DAT.title |html %] [% IF ( BIBITEM_DAT.author ) %], by [% BIBITEM_DAT.author %][% END %]</h2>
|
||||
|
||||
<h2>[% title |html %]</h2>
|
||||
[% IF ( subtitle ) %]<h4>[% FOREACH subtitl IN subtitle %] [% subtitl.subfield|html %][% END %]</h4>[% END %]
|
||||
[% IF ( author ) %]<h4>by [% author %]</h4>[% END %]
|
||||
<ol class="bibliodetails">
|
||||
<li><span class="label">Biblionumber:</span> [% BIBITEM_DAT.biblionumber %] </li>
|
||||
<li><span class="label">Biblionumber:</span> [% biblionumber %] </li>
|
||||
[% UNLESS ( item_level_itypes ) %]
|
||||
<li><span class="label">Item type:</span> [% BIBITEM_DAT.itemtypename %] </li>
|
||||
<li><span class="label">Item type:</span> [% itemtypename %] </li>
|
||||
[% END %]
|
||||
<!-- deprecated? <li><span class="label">Loan length:</span> [% BIBITEM_DAT.loanlength %] </li> -->
|
||||
<li><span class="label">Rental charge:</span>[% BIBITEM_DAT.rentalcharge %] </li>
|
||||
<li><span class="label">ISBN:</span> [% BIBITEM_DAT.isbn %] </li>
|
||||
<li><span class="label">Publisher:</span>[% BIBITEM_DAT.place %] [% BIBITEM_DAT.publishercode |html %] [% BIBITEM_DAT.publicationyear %] </li>
|
||||
[% IF ( BIBITEM_DAT.volumeddesc ) %]<li><span class="label">Volume:</span> [% BIBITEM_DAT.volumeddesc %]</li>[% END %]
|
||||
<li><span class="label">Physical Details:</span> [% BIBITEM_DAT.pages %] [% BIBITEM_DAT.illus %] [% BIBITEM_DAT.size %] </li>
|
||||
[% IF ( BIBITEM_DAT.bnotes ) %]<li><span class="label">Notes:</span> [% BIBITEM_DAT.bnotes %]</li>[% END %]
|
||||
<li><span class="label">No. of Items:</span> [% BIBITEM_DAT.count %] [% IF ( BIBITEM_DAT.hiddencount ) %]total ([% BIBITEM_DAT.showncount %] shown / [% BIBITEM_DAT.hiddencount %] hidden)
|
||||
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% BIBITEM_DAT.biblionumber %]&showallitems=1">Show all items</a>[% END %]</li>
|
||||
[% IF ( rentalcharge ) %]<li><span class="label">Rental charge:</span>[% rentalcharge %] </li>[% END %]
|
||||
<li><span class="label">ISBN:</span> [% isbn %] </li>
|
||||
<li><span class="label">Publisher:</span>[% place %] [% publishercode |html %] [% publicationyear %] </li>
|
||||
[% IF ( volumeddesc ) %]<li><span class="label">Volume:</span> [% volumeddesc %]</li>[% END %]
|
||||
<li><span class="label">Physical Details:</span> [% pages %] [% illus %] [% size %] </li>
|
||||
[% IF ( bnotes ) %]<li><span class="label">Notes:</span> [% bnotes %]</li>[% END %]
|
||||
<li><span class="label">No. of Items:</span> [% count %] [% IF ( hiddencount ) %]total ([% showncount %] shown / [% hiddencount %] hidden)
|
||||
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblionumber %]&showallitems=1">Show all items</a>[% END %]</li>
|
||||
</ol>
|
||||
[% END %]
|
||||
|
||||
<br clear="all" />
|
||||
[% IF ( ONLY_ONE ) %]
|
||||
<div class="dialog message">You are only viewing one item. <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblionumber %]&bi=[% biblioitemnumber %]#item[% itemnumber %]">View All</a></div>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Catalog › [% IF ( searchdesc ) %]Results of Search [% IF ( query_desc ) %]for '[% query_desc %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc %]'[% END %][% ELSE %]You did not specify any search criteria[% END %]</title>
|
||||
<title>Koha › Catalog › [% IF ( searchdesc ) %]Results of Search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %][% ELSE %]You did not specify any search criteria[% END %]</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.highlight-3.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
@ -404,7 +404,7 @@ YAHOO.util.Event.onContentReady("searchheader", function () {
|
|||
[% END %]
|
||||
[% IF ( facets_loo.expandable ) %]
|
||||
<li class="showmore">
|
||||
<a href="/cgi-bin/koha/catalogue/search.pl?q=[% facets_loo.searchdesc %]&expand=[% facets_loo.expand %]#[% facets_loo.type_id %]">
|
||||
<a href="/cgi-bin/koha/catalogue/search.pl?q=[% facets_loo.searchdesc %][% IF ( offset ) %]&offset=[% offset %][% END %]&expand=[% facets_loo.expand %]#[% facets_loo.type_id %]">
|
||||
Show More
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<title>Koha › Cataloging › [% IF ( biblionumber ) %]Editing [% title |html %] (Record Number [% biblionumber %])[% ELSE %]Add MARC Record[% END %]</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
<script type="text/javascript" src="[% themelang %]/lib/yui/plugins/bubbling-min.js"></script>
|
||||
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
|
@ -709,6 +710,7 @@ function unHideSubfield(index,labelindex) { // FIXME :: is it used ?
|
|||
// prepare DOM for YUI Toolbar
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#toolbar').fixFloat();
|
||||
$("#z3950searchc").empty();
|
||||
$("#savebutton").empty();
|
||||
yuiToolbar();
|
||||
|
|
|
@ -146,7 +146,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
|
|||
[% IF ( breeding_loo.breedingid ) %]
|
||||
|
||||
<tr id="row[% breeding_loo.breedingid %]">
|
||||
<td>[% breeding_loo.server %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" rel="gb_page_center[600,500]">Preview MARC</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" rel="gb_page_center[600,500]">Preview Card</a> <a href="#" onclick="Import([% breeding_loo.breedingid %],0); return false">Import</a><a href="#" onclick="closemenu();return false;" title="Close this menu"> X </a></div> </td>
|
||||
<td>[% breeding_loo.server %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" rel="gb_page_center[600,500]">Preview MARC</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" rel="gb_page_center[600,500]">Preview Card</a> <a href="#" onclick="Import([% breeding_loo.breedingid %],[% breeding_loo.biblionumber %]); return false">Import</a><a href="#" onclick="closemenu();return false;" title="Close this menu"> X </a></div> </td>
|
||||
<td>[% breeding_loo.title |html %]</td>
|
||||
<td>[% breeding_loo.author %]</td>
|
||||
<td>[% breeding_loo.date %]</td>
|
||||
|
|
|
@ -86,8 +86,46 @@
|
|||
</table></div>
|
||||
|
||||
[% ELSE %]
|
||||
<div class="yui-ge">
|
||||
<div class="yui-u first">
|
||||
[% IF ( reqmessage ) %]
|
||||
<div class="dialog message">
|
||||
<ul>
|
||||
[% IF ( cancelled ) %]
|
||||
<li>Reserve cancelled</li>
|
||||
[% END %]
|
||||
[% IF ( setwaiting ) %]
|
||||
<li>Item should now be waiting at library: [% reqbrchname %]</li>
|
||||
[% END %]
|
||||
</ul>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
[% IF ( errmsgloop ) %]
|
||||
<div class="dialog message">
|
||||
<ul>
|
||||
[% FOREACH errmsgloo IN errmsgloop %]
|
||||
[% IF ( errmsgloo.errbadcode ) %]
|
||||
<li>No Item with barcode: [% errmsgloo.msg %]</li>
|
||||
[% END %]
|
||||
[% IF ( errmsgloo.errispermanent ) %]
|
||||
<li>Please return item to home library: [% errmsgloo.msg %]</li>
|
||||
[% END %]
|
||||
[% IF ( errmsgloo.errnotallowed ) %]
|
||||
<li>You cannot transfer items of [% errmsgloo.codeType %] <b>[% errmsgloo.code %]</b> to <b>[% errmsgloo.tbr %]</b></li>
|
||||
[% END %]
|
||||
[% IF ( errmsgloo.errdesteqholding ) %]
|
||||
<li>Item is already at destination library.</li>
|
||||
[% END %]
|
||||
[% IF ( errmsgloo.errwasreturned ) %]
|
||||
<li>Item was on loan to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% errmsgloo.borrowernumber %]">
|
||||
[% errmsgloo.firstname %] [% errmsgloo.surname %]
|
||||
([% errmsgloo.cardnumber %])</a> and has been returned.</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</ul>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
<div id="branchtransfers">
|
||||
<form method="post" name="mainform" id="mainform" action="/cgi-bin/koha/circ/branchtransfers.pl">
|
||||
<fieldset class="brief">
|
||||
<legend>Transfer</legend>
|
||||
|
@ -119,58 +157,29 @@
|
|||
<input type="hidden" name="tb-[% trsfitemloo.counter %]" value="[% trsfitemloo.tobrcd %]" />
|
||||
[% END %]
|
||||
</form></div>
|
||||
|
||||
<div class="yui-u"><h4>Messages</h4>
|
||||
<ul>
|
||||
[% IF ( reqmessage ) %]
|
||||
[% IF ( cancelled ) %]
|
||||
<li>Reserve Cancelled</li>
|
||||
[% END %]
|
||||
[% IF ( setwaiting ) %]
|
||||
<li>Item should now be waiting at library: [% reqbrchname %]</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% FOREACH errmsgloo IN errmsgloop %]
|
||||
[% IF ( errmsgloo.errbadcode ) %]
|
||||
<li>No Item with barcode: [% errmsgloo.msg %]</li>
|
||||
[% END %]
|
||||
[% IF ( errmsgloo.errispermanent ) %]
|
||||
<li>Please return item to home library: [% errmsgloo.msg %]</li>
|
||||
[% END %]
|
||||
[% IF ( errmsgloo.errnotallowed ) %]
|
||||
<li>You cannot transfer items of [% errmsgloo.codeType %] <b>[% errmsgloo.code %]</b> to <b>[% errmsgloo.tbr %]</b></li>
|
||||
[% END %]
|
||||
[% IF ( errmsgloo.errdesteqholding ) %]
|
||||
<li>Item is already at destination library.</li>
|
||||
[% END %]
|
||||
[% IF ( errmsgloo.errwasreturned ) %]
|
||||
<li>Item was on loan to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% errmsgloo.borrowernumber %]">
|
||||
[% errmsgloo.firstname %] [% errmsgloo.surname %]
|
||||
([% errmsgloo.cardnumber %])</a> and has been returned.</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</ul>
|
||||
</div><!-- /yui-u -->
|
||||
</div><!-- /yui-ge -->
|
||||
|
||||
</div>
|
||||
|
||||
[% IF ( trsfitemloop ) %]
|
||||
<div class="yui-g">
|
||||
<table>
|
||||
<caption>Transferred Items</caption>
|
||||
<tr>
|
||||
<th>Bar Code</th>
|
||||
<th>Title</th>
|
||||
<th>Author</th>
|
||||
<th>Barcode</th>
|
||||
<th>Shelving location</th>
|
||||
<th>Call number</th>
|
||||
<th>Type</th>
|
||||
<th>To</th>
|
||||
</tr>
|
||||
[% FOREACH trsfitemloo IN trsfitemloop %]
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% trsfitemloo.biblionumber %]">[% trsfitemloo.barcode %]</a>
|
||||
</td>
|
||||
<td>
|
||||
<p>[% trsfitemloo.title |html %] ([% trsfitemloo.author %])</p>
|
||||
<p>[% trsfitemloo.ccode %]</p>
|
||||
</td>
|
||||
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% trsfitemloo.biblionumber %]">[% trsfitemloo.title |html %]</a></td>
|
||||
<td>[% trsfitemloo.author %]</td>
|
||||
<td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% trsfitemloo.biblionumber %]&itemnumber=[% trsfitemloo.itemnumber %]#item[% trsfitemloo.itemnumber %]">[% trsfitemloo.barcode %]</a></td>
|
||||
<td>[% trsfitemloo.location %]</td>
|
||||
<td>[% trsfitemloo.itemcallnumber %]</td>
|
||||
<td>[% trsfitemloo.ccode %]</td>
|
||||
<td>[% trsfitemloo.tobrname %]</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
<tbody>[% FOREACH overdueloo IN overdueloop %]
|
||||
<tr>
|
||||
<td>[% overdueloo.duedate %]</td>
|
||||
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% overdueloo.borrowernumber %]">[% overdueloo.name %]</a>
|
||||
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% overdueloo.borrowernumber %]">[% overdueloo.surname %] [% overdueloo.firstname %]</a>
|
||||
[% IF ( overdueloo.email ) %][<a href="mailto:[% overdueloo.email %]?subject=Overdue: [% overdueloo.title |html %]">email</a>][% END %]
|
||||
[% IF ( overdueloo.phone ) %]([% overdueloo.phone %])[% ELSIF ( overdueloo.mobile ) %]([% overdueloo.mobile %])[% ELSIF ( overdueloo.phonepro ) %]([% overdueloo.phonepro %])[% END %]</td>
|
||||
<td>[% overdueloo.branchcode %]</td>
|
||||
|
|
|
@ -82,6 +82,7 @@
|
|||
[% END %]
|
||||
[% IF ( CAN_user_acquisition ) %]
|
||||
<h3><a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a></h3>
|
||||
[% IF ( pendingsuggestions ) %]<ul><li><a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions pending approval</a>: <span class="holdcount"><a href="/cgi-bin/koha/suggestion/suggestion.pl">[% pendingsuggestions %]</a></span></li></ul>[% END %]
|
||||
[% END %]
|
||||
[% IF ( CAN_user_reports ) %]
|
||||
<h3><a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a></h3>
|
||||
|
@ -94,6 +95,12 @@
|
|||
[% END %]
|
||||
[% IF ( CAN_user_tools ) %]
|
||||
<h3><a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a></h3>
|
||||
[% IF ( CAN_user_tools_moderate_comments && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) %]
|
||||
<ul>
|
||||
[% IF ( CAN_user_tools_moderate_comments && pendingcomments ) %]<li><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments pending approval</a>: <span class="holdcount"><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">[% pendingcomments %]</a></span></li>[% END %]
|
||||
[% IF ( CAN_user_tools_moderate_tags && pendingtags ) %]<li><a href="/cgi-bin/koha/tags/review.pl">Tags pending approval</a>: <span class="holdcount"><a href="/cgi-bin/koha/tags/review.pl">[% pendingtags %]</a></span></li>[% END %]
|
||||
</ul>
|
||||
[% END %]
|
||||
[% END %]
|
||||
<h3><a href="/cgi-bin/koha/about.pl">About Koha</a></h3>
|
||||
</div>
|
||||
|
@ -117,6 +124,7 @@
|
|||
</div><!-- /koha-news -->
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
[% INCLUDE 'intranet-bottom.inc' %]
|
||||
|
|
|
@ -65,13 +65,20 @@
|
|||
</tr>
|
||||
[% IF ( looptable.looprow ) %]
|
||||
[% FOREACH loopro IN looptable.looprow %]
|
||||
[% UNLESS ( loop.odd ) %]<tr class="highlight">
|
||||
[% ELSE %]<tr>[% END %]
|
||||
[% DEFAULT
|
||||
loopro.itemcallnumber="No Call Number"
|
||||
loopro.barcode="No Barcode"
|
||||
loopro.title="NO TITLE"
|
||||
loopro.author=""
|
||||
%]
|
||||
[% UNLESS ( loop.odd ) %]<tr class="highlight">
|
||||
[% ELSE %]<tr>[% END %]
|
||||
|
||||
<td>[% loop.count %]</td>
|
||||
<td>[% DEFAULT loopro.itemcallnumber="No Call Number" %]</td>
|
||||
<td>[% DEFAULT loopro.barcode="No Barcode" %]</td>
|
||||
<td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber %]">[% DEFAULT loopro.title="NO TITLE" %]</a></p>
|
||||
[% DEFAULT loopro.author="" %]
|
||||
<td>[% loopro.itemcallnumber %]</td>
|
||||
<td>[% loopro.barcode %]</td>
|
||||
<td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loopro.biblionumber %]">[% loopro.title %]</a></p>
|
||||
[% loopro.author %]
|
||||
[% IF ( loopro.branch ) %]at [% loopro.branch %][% END %]
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -103,6 +103,7 @@
|
|||
$("a.helptext").click(function(){
|
||||
$(this).parent().find(".hint").toggle(); return false;
|
||||
});
|
||||
$("#dateofrange").each(function () { this.value = "" });
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
|
@ -209,7 +210,7 @@
|
|||
<input type="hidden" id="newBranchName" name="newBranchName" />
|
||||
</li>
|
||||
<li>
|
||||
<strong>Date:</strong>
|
||||
<strong>From Date:</strong>
|
||||
<span id="newDaynameOutput"></span>,
|
||||
|
||||
[% IF ( dateformat_us ) %]<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>/<span id="newYearOutput"></span>[% ELSIF ( dateformat_metric ) %]<span id="newDayOutput"></span>/<span id="newMonthOutput"></span>/<span id="newYearOutput"></span>[% ELSE %]<span id="newYearOutput"></span>/<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>[% END %]
|
||||
|
@ -220,6 +221,20 @@
|
|||
<input type="hidden" id="newMonth" name="newMonth" />
|
||||
<input type="hidden" id="newYear" name="newYear" />
|
||||
</li>
|
||||
<li class="dateinsert">
|
||||
<b>To Date : </b>
|
||||
<input type="text" id="dateofrange" name="dateofrange" size="20" value="[% dateofrange %]" />
|
||||
<img src="[% themelang %]/lib/calendar/cal.gif" id="dateofrange_button" alt="Show Calendar" />
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
Calendar.setup(
|
||||
{
|
||||
inputField : "dateofrange",
|
||||
ifFormat : "[% DHTMLcalendar_dateformat %]",
|
||||
button : "dateofrange_button"
|
||||
}
|
||||
);
|
||||
</script>
|
||||
</li>
|
||||
<li><label for="title">Title: </label><input type="text" name="newTitle" id="title" size="35" /></li>
|
||||
<li><label for="newDescription">Description:</label>
|
||||
<textarea rows="2" cols="40" id="newDescription" name="newDescription"></textarea>
|
||||
|
@ -239,6 +254,16 @@
|
|||
<a href="#" class="helptext">[?]</a>
|
||||
<div class="hint">This will take this day and month as a reference to make it a holiday. Through this option, you can repeat this rule for every year. For example, selecting August 1st will make August 1st a holiday every year.</div>
|
||||
</li>
|
||||
<li class="radio"><input type="radio" name="newOperation" id="newOperationField" value="holidayrange" />
|
||||
<label for="newOperationField">Holidays on a range</label>.
|
||||
<a href="#" class="helptext">[?]</a>
|
||||
<div class="hint">Make a single holiday on a range. For example, selecting August 1st, 2012 and August 10st, 2012 will make all days between 1st and 10st holiday, but will not affect August 1st-10st in other years.</div>
|
||||
</li>
|
||||
<li class="radio"><input type="radio" name="newOperation" id="newOperationFieldyear" value="holidayrangerepeat" />
|
||||
<label for="newOperationFieldyear">Holidays repeated yearly on a range</label>.
|
||||
<a href="#" class="helptext">[?]</a>
|
||||
<div class="hint">Make a single holiday on a range repeated yearly. For example, selecting August 1st, 2012 and August 10st, 2012 will make all days between 1st and 10st holiday, and will affect August 1st-10st in other years.</div>
|
||||
</li>
|
||||
<li class="radio">
|
||||
<input type="checkbox" name="allBranches" id="allBranches" />
|
||||
<label for="allBranches">Copy to all libraries</label>.
|
||||
|
@ -270,16 +295,16 @@
|
|||
var day_month_holidays = new Array();
|
||||
var hola= "[% code %]";
|
||||
[% FOREACH WEEK_DAYS_LOO IN WEEK_DAYS_LOOP %]
|
||||
week_days["[% WEEK_DAYS_LOO.KEY %]"] = {title:"[% WEEK_DAYS_LOO.TITLE %]", description:"[% WEEK_DAYS_LOO.DESCRIPTION %]"};
|
||||
week_days["[% WEEK_DAYS_LOO.KEY %]"] = {title:"[% WEEK_DAYS_LOO.TITLE | replace('"','\"') %]", description:"[% WEEK_DAYS_LOO.DESCRIPTION | replace('"','\"') %]"};
|
||||
[% END %]
|
||||
[% FOREACH HOLIDAYS_LOO IN HOLIDAYS_LOOP %]
|
||||
holidays["[% HOLIDAYS_LOO.KEY %]"] = {title:"[% HOLIDAYS_LOO.TITLE %]", description:"[% HOLIDAYS_LOO.DESCRIPTION %]"};
|
||||
holidays["[% HOLIDAYS_LOO.KEY %]"] = {title:"[% HOLIDAYS_LOO.TITLE | replace('"','\"') %]", description:"[% HOLIDAYS_LOO.DESCRIPTION | replace('"','\"') %]"};
|
||||
[% END %]
|
||||
[% FOREACH EXCEPTION_HOLIDAYS_LOO IN EXCEPTION_HOLIDAYS_LOOP %]
|
||||
exception_holidays["[% EXCEPTION_HOLIDAYS_LOO.KEY %]"] = {title:"[% EXCEPTION_HOLIDAYS_LOO.TITLE %]", description:"[% EXCEPTION_HOLIDAYS_LOO.DESCRIPTION %]"};
|
||||
exception_holidays["[% EXCEPTION_HOLIDAYS_LOO.KEY %]"] = {title:"[% EXCEPTION_HOLIDAYS_LOO.TITLE | replace('"','\"') %]", description:"[% EXCEPTION_HOLIDAYS_LOO.DESCRIPTION | replace('"','\"') %]"};
|
||||
[% END %]
|
||||
[% FOREACH DAY_MONTH_HOLIDAYS_LOO IN DAY_MONTH_HOLIDAYS_LOOP %]
|
||||
day_month_holidays["[% DAY_MONTH_HOLIDAYS_LOO.KEY %]"] = {title:"[% DAY_MONTH_HOLIDAYS_LOO.TITLE %]", description:"[% DAY_MONTH_HOLIDAYS_LOO.DESCRIPTION %]"};
|
||||
day_month_holidays["[% DAY_MONTH_HOLIDAYS_LOO.KEY %]"] = {title:"[% DAY_MONTH_HOLIDAYS_LOO.TITLE | replace('"','\"') %]", description:"[% DAY_MONTH_HOLIDAYS_LOO.DESCRIPTION | replace('"','\"') %]"};
|
||||
[% END %]
|
||||
|
||||
/* This function gives css clases to each kind of day */
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
<h3>Patrons and circulation</h3>
|
||||
<dl>
|
||||
[% IF ( CAN_user_tools_moderate_comments ) %]
|
||||
<dt><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments</a></dt>
|
||||
<dd>Moderate patron comments</dd>
|
||||
<dt><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments</a> [% IF ( pendingcomments ) %]<span class="holdcount"><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">[% pendingcomments %]</a></span>[% END %]</dt>
|
||||
<dd>Moderate patron comments. </dd>
|
||||
[% END %]
|
||||
|
||||
[% IF ( CAN_user_tools_import_patrons ) %]
|
||||
|
@ -46,7 +46,7 @@
|
|||
[% END %]
|
||||
|
||||
[% IF ( CAN_user_tools_moderate_tags ) %]
|
||||
<dt><a href="/cgi-bin/koha/tags/review.pl">Tags</a></dt>
|
||||
<dt><a href="/cgi-bin/koha/tags/review.pl">Tags</a> [% IF ( pendingtags ) %]<span class="holdcount"><a href="/cgi-bin/koha/tags/review.pl">[% pendingtags %]</a></span>[% END %]</dt>
|
||||
<dd>Moderate patron tags</dd>
|
||||
[% END %]
|
||||
|
||||
|
|
|
@ -194,7 +194,7 @@ function placeHold () {
|
|||
</td>
|
||||
[% END %]
|
||||
[% UNLESS ( item_level_itypes ) %]<td>
|
||||
[% UNLESS ( noItemTypeImages ) %]<img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />[% END %][% itemsloo.description %]
|
||||
[% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />[% END %][% itemsloo.description %]
|
||||
</td>[% END %]
|
||||
<td>
|
||||
[% INCLUDE 'biblio-default-view.inc' biblionumber = itemsloo.biblionumber %]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
|
||||
<xsl:stylesheet version="1.0" xmlns="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xlink marc">
|
||||
<xsl:include href="http://www.loc.gov/marcxml/xslt/MARC21slimUtils.xsl"/>
|
||||
<xsl:include href="MARC21slimUtils-MODS31.xsl"/>
|
||||
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
|
||||
<!--
|
||||
|
||||
|
|
190
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils-MODS31.xsl
Normal file
|
@ -0,0 +1,190 @@
|
|||
<?xml version='1.0'?>
|
||||
<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
|
||||
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
|
||||
<!-- 08/08/08: tmee added corrected chopPunctuation templates for 260c -->
|
||||
<!-- 08/19/04: ntra added "marc:" prefix to datafield element -->
|
||||
<!-- 12/14/07: ntra added url encoding template -->
|
||||
<!-- url encoding -->
|
||||
|
||||
<xsl:variable name="ascii">
|
||||
<xsl:text> !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~</xsl:text>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="latin1">
|
||||
<xsl:text> ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ</xsl:text>
|
||||
</xsl:variable>
|
||||
<!-- Characters that usually don't need to be escaped -->
|
||||
<xsl:variable name="safe">
|
||||
<xsl:text>!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~</xsl:text>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="hex">0123456789ABCDEF</xsl:variable>
|
||||
|
||||
|
||||
<xsl:template name="datafield">
|
||||
<xsl:param name="tag"/>
|
||||
<xsl:param name="ind1">
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:param>
|
||||
<xsl:param name="ind2">
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:param>
|
||||
<xsl:param name="subfields"/>
|
||||
<xsl:element name="marc:datafield">
|
||||
<xsl:attribute name="tag">
|
||||
<xsl:value-of select="$tag"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="ind1">
|
||||
<xsl:value-of select="$ind1"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="ind2">
|
||||
<xsl:value-of select="$ind2"/>
|
||||
</xsl:attribute>
|
||||
<xsl:copy-of select="$subfields"/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="subfieldSelect">
|
||||
<xsl:param name="codes">abcdefghijklmnopqrstuvwxyz</xsl:param>
|
||||
<xsl:param name="delimeter">
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:param>
|
||||
<xsl:variable name="str">
|
||||
<xsl:for-each select="marc:subfield">
|
||||
<xsl:if test="contains($codes, @code)">
|
||||
<xsl:value-of select="text()"/>
|
||||
<xsl:value-of select="$delimeter"/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="substring($str,1,string-length($str)-string-length($delimeter))"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="buildSpaces">
|
||||
<xsl:param name="spaces"/>
|
||||
<xsl:param name="char">
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:param>
|
||||
<xsl:if test="$spaces>0">
|
||||
<xsl:value-of select="$char"/>
|
||||
<xsl:call-template name="buildSpaces">
|
||||
<xsl:with-param name="spaces" select="$spaces - 1"/>
|
||||
<xsl:with-param name="char" select="$char"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="chopPunctuation">
|
||||
<xsl:param name="chopString"/>
|
||||
<xsl:param name="punctuation">
|
||||
<xsl:text>.:,;/ </xsl:text>
|
||||
</xsl:param>
|
||||
<xsl:variable name="length" select="string-length($chopString)"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$length=0"/>
|
||||
<xsl:when test="contains($punctuation, substring($chopString,$length,1))">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="substring($chopString,1,$length - 1)"/>
|
||||
<xsl:with-param name="punctuation" select="$punctuation"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="not($chopString)"/>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$chopString"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="chopPunctuationFront">
|
||||
<xsl:param name="chopString"/>
|
||||
<xsl:variable name="length" select="string-length($chopString)"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$length=0"/>
|
||||
<xsl:when test="contains('.:,;/[ ', substring($chopString,1,1))">
|
||||
<xsl:call-template name="chopPunctuationFront">
|
||||
<xsl:with-param name="chopString" select="substring($chopString,2,$length - 1)"
|
||||
/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="not($chopString)"/>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$chopString"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="chopPunctuationBack">
|
||||
<xsl:param name="chopString"/>
|
||||
<xsl:param name="punctuation">
|
||||
<xsl:text>.:,;/] </xsl:text>
|
||||
</xsl:param>
|
||||
<xsl:variable name="length" select="string-length($chopString)"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$length=0"/>
|
||||
<xsl:when test="contains($punctuation, substring($chopString,$length,1))">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="substring($chopString,1,$length - 1)"/>
|
||||
<xsl:with-param name="punctuation" select="$punctuation"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="not($chopString)"/>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$chopString"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<!-- nate added 12/14/2007 for lccn.loc.gov: url encode ampersand, etc. -->
|
||||
<xsl:template name="url-encode">
|
||||
|
||||
<xsl:param name="str"/>
|
||||
|
||||
<xsl:if test="$str">
|
||||
<xsl:variable name="first-char" select="substring($str,1,1)"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($safe,$first-char)">
|
||||
<xsl:value-of select="$first-char"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:variable name="codepoint">
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($ascii,$first-char)">
|
||||
<xsl:value-of
|
||||
select="string-length(substring-before($ascii,$first-char)) + 32"
|
||||
/>
|
||||
</xsl:when>
|
||||
<xsl:when test="contains($latin1,$first-char)">
|
||||
<xsl:value-of
|
||||
select="string-length(substring-before($latin1,$first-char)) + 160"/>
|
||||
<!-- was 160 -->
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:message terminate="no">Warning: string contains a character
|
||||
that is out of range! Substituting "?".</xsl:message>
|
||||
<xsl:text>63</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="hex-digit1"
|
||||
select="substring($hex,floor($codepoint div 16) + 1,1)"/>
|
||||
<xsl:variable name="hex-digit2" select="substring($hex,$codepoint mod 16 + 1,1)"/>
|
||||
<!-- <xsl:value-of select="concat('%',$hex-digit2)"/> -->
|
||||
<xsl:value-of select="concat('%',$hex-digit1,$hex-digit2)"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="string-length($str) > 1">
|
||||
<xsl:call-template name="url-encode">
|
||||
<xsl:with-param name="str" select="substring($str,2)"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp.
|
||||
<metaInformation>
|
||||
<scenarios/><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
|
||||
</metaInformation>
|
||||
-->
|
||||
|
|
@ -0,0 +1,535 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:marc="http://www.loc.gov/MARC21/slim"
|
||||
xmlns:items="http://www.koha-community.org/items"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
exclude-result-prefixes="marc items">
|
||||
<xsl:import href="NORMARCslimUtils.xsl"/>
|
||||
<xsl:output method = "xml" indent="yes" omit-xml-declaration = "yes" />
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="marc:record">
|
||||
|
||||
<!-- Sysprefs -->
|
||||
<xsl:variable name="OPACBaseURL" select="marc:sysprefs/marc:syspref[@name='OPACBaseURL']"/>
|
||||
|
||||
<xsl:variable name="leader" select="marc:leader"/>
|
||||
<xsl:variable name="leader6" select="substring($leader,7,1)"/>
|
||||
<xsl:variable name="leader7" select="substring($leader,8,1)"/>
|
||||
<xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/>
|
||||
<xsl:variable name="field019b" select="marc:datafield[@tag=019]/marc:subfield[@code='b']"/>
|
||||
<xsl:variable name="biblionumber" select="marc:datafield[@tag=999]/marc:subfield[@code='c']"/>
|
||||
<xsl:variable name="materialTypeCode">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$field019b='b' or $field019b='k' or $field019b='l' or $leader6='b'">Mon</xsl:when>
|
||||
<xsl:when test="$field019b='e' or contains($field019b,'ec') or contains($field019b,'ed') or contains($field019b,'ee') or contains($field019b,'ef') or $leader6='g'">FV</xsl:when>
|
||||
<xsl:when test="$field019b='c' or $field019b='d' or contains($field019b,'da') or contains($field019b,'db') or contains($field019b,'dc') or contains($field019b,'dd') or contains($field019b,'dg') or contains($field019b,'dh') or contains($field019b,'di') or contains($field019b,'dj') or contains($field019b,'dk') or $leader6='c' or $leader6='d' or $leader6='i' or $leader6='j'">Mus</xsl:when>
|
||||
<xsl:when test="$field019b='a' or contains($field019b,'ab') or contains($field019b,'aj') or $leader6='e' or $leader6='f'">Kar</xsl:when>
|
||||
<xsl:when test="$field019b='f' or $field019b='i' or contains($field019b,'ib') or contains($field019b,'ic') or contains($field019b,'fd') or contains($field019b,'ff') or contains($field019b,'fi') or $leader6='k'">gra</xsl:when>
|
||||
<xsl:when test="$field019b='g' or contains($field019b,'gb') or contains($field019b,'gd') or contains($field019b,'ge') or $leader6='m'">Fil</xsl:when>
|
||||
<xsl:when test="$leader6='o'">kom</xsl:when>
|
||||
<xsl:when test="$field019b='h' or $leader6='r'">trd</xsl:when>
|
||||
<xsl:when test="$field019b='j' or $leader6='a'">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$leader7='a' or $leader7='c' or $leader7='m' or $leader7='p'">Mon</xsl:when>
|
||||
<xsl:when test="$field019b='j' or $leader7='b' or $leader7='s'">Per</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="materialTypeLabel">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$field019b='b' or $field019b='k' or $field019b='l' or $leader6='b'">Bok</xsl:when>
|
||||
<xsl:when test="$field019b='e' or contains($field019b,'ec') or contains($field019b,'ed') or contains($field019b,'ee') or contains($field019b,'ef') or $leader6='g'">Film og video</xsl:when>
|
||||
<xsl:when test="$field019b='c' or $field019b='d' or contains($field019b,'da') or contains($field019b,'db') or contains($field019b,'dc') or contains($field019b,'dd') or contains($field019b,'dg') or contains($field019b,'dh') or contains($field019b,'di') or contains($field019b,'dj') or contains($field019b,'dk') or $leader6='c' or $leader6='d' or $leader6='i' or $leader6='j'">Musikalier</xsl:when>
|
||||
<xsl:when test="$field019b='a' or contains($field019b,'ab') or contains($field019b,'aj') or $leader6='e' or $leader6='f'">Kart</xsl:when>
|
||||
<xsl:when test="$field019b='f' or $field019b='i' or contains($field019b,'ib') or contains($field019b,'ic') or contains($field019b,'fd') or contains($field019b,'ff') or contains($field019b,'fi') or $leader6='k'">Grafisk materiale</xsl:when>
|
||||
<xsl:when test="$field019b='g' or contains($field019b,'gb') or contains($field019b,'gd') or contains($field019b,'ge') or $leader6='m'">Fil</xsl:when>
|
||||
<xsl:when test="$leader6='o'">Kombidokument</xsl:when>
|
||||
<xsl:when test="$field019b='h' or $leader6='r'">Tredimensjonal gjenstand</xsl:when>
|
||||
<xsl:when test="$field019b='j' or $leader6='a'">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$leader7='a' or $leader7='c' or $leader7='m' or $leader7='p'">Bok</xsl:when>
|
||||
<xsl:when test="$field019b='j' or $leader7='b' or $leader7='s'">Periodikum</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
||||
</xsl:variable>
|
||||
|
||||
<!-- Tittel og ansvarsopplysninger -->
|
||||
<xsl:if test="marc:datafield[@tag=245]">
|
||||
<h1>
|
||||
<xsl:for-each select="marc:datafield[@tag=245]">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:if test="marc:subfield[@code='b']">
|
||||
<xsl:text> : </xsl:text>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">b</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:if test="marc:subfield[@code='h']">
|
||||
<xsl:text> </xsl:text>
|
||||
(<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">h</xsl:with-param>
|
||||
</xsl:call-template>)
|
||||
</xsl:if>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">np</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
</h1>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Author Statement -->
|
||||
<!-- 245$9 is Koha authority number -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]">
|
||||
<h5 class="author">av
|
||||
<xsl:for-each select="marc:datafield[@tag=100 or @tag=700]">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code=9]">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="nameABCDQ"/></a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="marc:datafield[@tag=110 or @tag=710]">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code=9]">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="nameABCDN"/></a>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="marc:datafield[@tag=111 or @tag=711]">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code=9]">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="nameACDEQ"/></a>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
|
||||
</xsl:for-each>
|
||||
</h5>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
||||
|
||||
<xsl:if test="$materialTypeCode!=''">
|
||||
<span class="results_summary"><span class="label">Materialtype: </span>
|
||||
<xsl:element name="img"><xsl:attribute name="src">/opac-tmpl/prog/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute name="alt"></xsl:attribute></xsl:element>
|
||||
<xsl:value-of select="$materialTypeLabel"/>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!--Series -->
|
||||
<xsl:if test="marc:datafield[@tag=440 or @tag=490]">
|
||||
<span class="results_summary"><span class="label">Series: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=440]">
|
||||
<a href="/cgi-bin/koha/catalogue/search.pl?q=se:{marc:subfield[@code='a']}">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">av</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
<xsl:text> </xsl:text><xsl:call-template name="part"/>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="marc:datafield[@tag=490][@ind1=0]">
|
||||
<a href="/cgi-bin/koha/catalogue/search.pl?q=se:{marc:subfield[@code='a']}">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">av</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</a>
|
||||
<xsl:call-template name="part"/>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Publisher Statement -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=260]">
|
||||
<span class="results_summary"><span class="label">Utgiver: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=260]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">bcg</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Edition Statement -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=250]">
|
||||
<span class="results_summary"><span class="label">Utgave: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=250]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">ab</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Description -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=300]">
|
||||
<span class="results_summary"><span class="label">Beskrivelse: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=300]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abceg</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<abbr class="unapi-id" title="koha:biblionumber:{marc:datafield[@tag=999]/marc:subfield[@code='c']}" ><!-- unAPI --></abbr>
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=020]">
|
||||
<span class="results_summary"><span class="label">ISBN: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=020]">
|
||||
<xsl:variable name="isbn" select="marc:subfield[@code='a']"/>
|
||||
<xsl:value-of select="marc:subfield[@code='a']"/>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=022]">
|
||||
<span class="results_summary"><span class="label">ISSN: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=022]">
|
||||
<xsl:value-of select="marc:subfield[@code='a']"/>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Other Title Statement -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=246]">
|
||||
<span class="results_summary"><span class="label">Parallelltittel: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=246]">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abhfgnp</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Uniform Title Statement -->
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]">
|
||||
<span class="results_summary"><span class="label">Standardtittel: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]">
|
||||
<xsl:variable name="str">
|
||||
<xsl:for-each select="marc:subfield">
|
||||
<xsl:if test="(contains('adfklmor',@code) and (not(../marc:subfield[@code='n' or @code='p']) or (following-sibling::marc:subfield[@code='n' or @code='p'])))">
|
||||
<xsl:value-of select="text()"/>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:value-of select="substring($str,1,string-length($str)-1)"/>
|
||||
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="marc:datafield[substring(@tag, 1, 1) = '6']">
|
||||
<span class="results_summary"><span class="label">Emner: </span>
|
||||
<xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code=9]">
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">abcdvxyz</xsl:with-param>
|
||||
<xsl:with-param name="subdivCodes">vxyz</xsl:with-param>
|
||||
<xsl:with-param name="subdivDelimiter">-- </xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template></a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()"></xsl:when>
|
||||
<xsl:otherwise> | </xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=856]">
|
||||
<span class="results_summary"><span class="label">Nettbasert ressurs: </span>
|
||||
<xsl:for-each select="marc:datafield[@tag=856]">
|
||||
<a><xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="marc:subfield[@code='y' or @code='3' or @code='z']">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">y3z</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="not(marc:subfield[@code='y']) and not(marc:subfield[@code='3']) and not(marc:subfield[@code='z'])">
|
||||
Klikk her for tilgang
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()"></xsl:when>
|
||||
<xsl:otherwise> | </xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:if>
|
||||
|
||||
<!-- NORMARC does not define indicators for 505
|
||||
<xsl:if test="marc:datafield[@tag=505]">
|
||||
<xsl:for-each select="marc:datafield[@tag=505]">
|
||||
<span class="results_summary"><span class="label">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind1=0">
|
||||
Contents:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind1=1">
|
||||
Incomplete contents:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind1=1">
|
||||
Partial contents:
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind2=0">
|
||||
<xsl:for-each select="marc:subfield[@code='t']">
|
||||
<xsl:value-of select="marc:subfield[@code=t]"/> <xsl:value-of select="marc:subfield[@code=r]"/>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">au</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
-->
|
||||
<xsl:if test="marc:datafield[@tag=505]">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
<!-- 780 -->
|
||||
<xsl:if test="marc:datafield[@tag=780]">
|
||||
<xsl:for-each select="marc:datafield[@tag=780]">
|
||||
<span class="results_summary"><span class="label">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind2=0">
|
||||
Fortsettelse av:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=1">
|
||||
Delvis fortsettelse av:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=2">
|
||||
Avløser:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=3">
|
||||
Avløser delvis:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=4">
|
||||
Sammenslåing av: ... ; og ...
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=5">
|
||||
Har tatt opp:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=6">
|
||||
Har delvis tatt opp:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=7">
|
||||
Utskilt fra:
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:variable name="f780">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a_t</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="translate($f780, '()', '')"/></xsl:attribute>
|
||||
<xsl:value-of select="translate($f780, '()', '')"/>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind1=0">
|
||||
<span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
<!-- 785 -->
|
||||
<xsl:if test="marc:datafield[@tag=785]">
|
||||
<xsl:for-each select="marc:datafield[@tag=785]">
|
||||
<span class="results_summary"><span class="label">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@ind2=0">
|
||||
Fortsettelse i:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=1">
|
||||
Fortsettes delvis i:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=2">
|
||||
Avløst av:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=3">
|
||||
Delvis avløst av:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=4">
|
||||
Gått inn i:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=5">
|
||||
Delvis gått inn i:
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=6">
|
||||
Fortsettes av: ...; og ...
|
||||
</xsl:when>
|
||||
<xsl:when test="@ind2=7">
|
||||
Slått sammen med: .., til: ...
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
<xsl:variable name="f785">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">a_t</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="translate($f785, '()', '')"/></xsl:attribute>
|
||||
<xsl:value-of select="translate($f785, '()', '')"/>
|
||||
</a>
|
||||
|
||||
</span>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
<!-- This will only work if the OPACBaseURL syspref is set. -->
|
||||
<xsl:if test="string-length($OPACBaseURL) > 0">
|
||||
<p>OPAC View: <a>
|
||||
<xsl:attribute name="href">http://<xsl:value-of select="$OPACBaseURL"/>/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
|
||||
<xsl:attribute name="target">_blank</xsl:attribute>
|
||||
Open in new window
|
||||
</a></p>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="part">
|
||||
<xsl:variable name="partNumber">
|
||||
<xsl:call-template name="specialSubfieldSelect">
|
||||
<xsl:with-param name="axis">n</xsl:with-param>
|
||||
<xsl:with-param name="anyCodes">n</xsl:with-param>
|
||||
<xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="partName">
|
||||
<xsl:call-template name="specialSubfieldSelect">
|
||||
<xsl:with-param name="axis">p</xsl:with-param>
|
||||
<xsl:with-param name="anyCodes">p</xsl:with-param>
|
||||
<xsl:with-param name="afterCodes">fghkdlmor</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:if test="string-length(normalize-space($partNumber))">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="$partNumber"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length(normalize-space($partName))">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="$partName"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="specialSubfieldSelect">
|
||||
<xsl:param name="anyCodes"/>
|
||||
<xsl:param name="axis"/>
|
||||
<xsl:param name="beforeCodes"/>
|
||||
<xsl:param name="afterCodes"/>
|
||||
<xsl:variable name="str">
|
||||
<xsl:for-each select="marc:subfield">
|
||||
<xsl:if test="contains($anyCodes, @code) or (contains($beforeCodes,@code) and following-sibling::marc:subfield[@code=$axis]) or (contains($afterCodes,@code) and preceding-sibling::marc:subfield[@code=$axis])">
|
||||
<xsl:value-of select="text()"/>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="substring($str,1,string-length($str)-1)"/>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
205
koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslimUtils.xsl
Normal file
|
@ -0,0 +1,205 @@
|
|||
<?xml version='1.0'?>
|
||||
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:template name="datafield">
|
||||
<xsl:param name="tag"/>
|
||||
<xsl:param name="ind1"><xsl:text> </xsl:text></xsl:param>
|
||||
<xsl:param name="ind2"><xsl:text> </xsl:text></xsl:param>
|
||||
<xsl:param name="subfields"/>
|
||||
<xsl:element name="datafield">
|
||||
<xsl:attribute name="tag">
|
||||
<xsl:value-of select="$tag"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="ind1">
|
||||
<xsl:value-of select="$ind1"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="ind2">
|
||||
<xsl:value-of select="$ind2"/>
|
||||
</xsl:attribute>
|
||||
<xsl:copy-of select="$subfields"/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="subfieldSelect">
|
||||
<xsl:param name="codes"/>
|
||||
<xsl:param name="delimeter"><xsl:text> </xsl:text></xsl:param>
|
||||
<xsl:param name="subdivCodes"/>
|
||||
<xsl:param name="subdivDelimiter"/>
|
||||
<xsl:variable name="str">
|
||||
<xsl:for-each select="marc:subfield">
|
||||
<xsl:if test="contains($codes, @code)">
|
||||
<xsl:if test="contains($subdivCodes, @code)">
|
||||
<xsl:value-of select="$subdivDelimiter"/>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="text()"/><xsl:value-of select="$delimeter"/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="substring($str,1,string-length($str)-string-length($delimeter))"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="buildSpaces">
|
||||
<xsl:param name="spaces"/>
|
||||
<xsl:param name="char"><xsl:text> </xsl:text></xsl:param>
|
||||
<xsl:if test="$spaces>0">
|
||||
<xsl:value-of select="$char"/>
|
||||
<xsl:call-template name="buildSpaces">
|
||||
<xsl:with-param name="spaces" select="$spaces - 1"/>
|
||||
<xsl:with-param name="char" select="$char"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="chopPunctuation">
|
||||
<xsl:param name="chopString"/>
|
||||
<xsl:variable name="length" select="string-length($chopString)"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$length=0"/>
|
||||
<xsl:when test="contains('.:,;/ ', substring($chopString,$length,1))">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="substring($chopString,1,$length - 1)"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="not($chopString)"/>
|
||||
<xsl:otherwise><xsl:value-of select="$chopString"/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="nameABCDQ">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">aq</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
<xsl:with-param name="punctuation">
|
||||
<xsl:text>:,;/ </xsl:text>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:call-template name="termsOfAddress"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="nameABCDN">
|
||||
<xsl:for-each select="marc:subfield[@code='a']">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString" select="."/>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="marc:subfield[@code='b']">
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:if test="marc:subfield[@code='c'] or marc:subfield[@code='d'] or marc:subfield[@code='n']">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">cdn</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="nameACDEQ">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">acdeq</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="termsOfAddress">
|
||||
<xsl:if test="marc:subfield[@code='b' or @code='c']">
|
||||
<xsl:call-template name="chopPunctuation">
|
||||
<xsl:with-param name="chopString">
|
||||
<xsl:call-template name="subfieldSelect">
|
||||
<xsl:with-param name="codes">bc</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Function m880Select: Display Alternate Graphic Representation (MARC 880) for selected latin "base"tags
|
||||
- should be called immediately before the corresonding latin tags are processed
|
||||
- tags in right-to-left languages are displayed floating right
|
||||
* Parameter:
|
||||
+ basetags: display these tags if found in linkage section ( subfield 6) of tag 880
|
||||
+ codes: display these subfields codes
|
||||
* Options:
|
||||
- class: wrap output in <span class="$class">...</span>
|
||||
- label: prefix each(!) tag with label $label
|
||||
- bibno: link to biblionumber $bibno
|
||||
- index: build a search link using index $index with subfield $a as key; if subfield $9 is present use index 'an' with key $9 instead.
|
||||
* Limitations:
|
||||
- displays every field on a separate line (to switch between rtl and ltr)
|
||||
* Pitfalls:
|
||||
(!) output might be empty
|
||||
-->
|
||||
<xsl:template name="m880Select">
|
||||
<xsl:param name="basetags"/> <!-- e.g. 100,700,110,710 -->
|
||||
<xsl:param name="codes"/> <!-- e.g. abc -->
|
||||
<xsl:param name="class"/> <!-- e.g. results_summary -->
|
||||
<xsl:param name="label"/> <!-- e.g. Edition -->
|
||||
<xsl:param name="bibno"/>
|
||||
<xsl:param name="index"/> <!-- e.g. au -->
|
||||
|
||||
<xsl:for-each select="marc:datafield[@tag=880]">
|
||||
<xsl:variable name="code6" select="marc:subfield[@code=6]"/>
|
||||
<xsl:if test="contains(string($basetags), substring($code6,1,3))">
|
||||
<span>
|
||||
<xsl:if test="boolean($class)">
|
||||
<xsl:attribute name="class"><xsl:value-of select="$class"/></xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<!-- display right-to-left tags floating right of their left-to-right counterparts -->
|
||||
<xsl:when test="substring($code6,10,2) ='/r'">
|
||||
<xsl:attribute name="style">display:block; text-align:right; float:right; width:50%; padding-left:20px</xsl:attribute>
|
||||
<xsl:attribute name="dir">rtl</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="style">display:block; </xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="boolean($label)">
|
||||
<span class="label">
|
||||
<xsl:value-of select="$label"/>
|
||||
</span>
|
||||
</xsl:if>
|
||||
<xsl:variable name="str">
|
||||
<xsl:for-each select="marc:subfield">
|
||||
<xsl:if test="contains($codes, @code)">
|
||||
<xsl:value-of select="text()"/>
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="boolean($bibno)">
|
||||
<a>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="$bibno"/></xsl:attribute>
|
||||
<xsl:value-of select="$str"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:when test="boolean($index) and boolean(marc:subfield[@code=9])">
|
||||
<a>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
|
||||
<xsl:value-of select="$str"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:when test="boolean($index)">
|
||||
<a>
|
||||
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="$index"/>:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
|
||||
<xsl:value-of select="$str"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$str"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</span>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
<!-- Stylus Studio meta-information - (c)1998-2002 eXcelon Corp.
|
||||
<metaInformation>
|
||||
<scenarios/><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
|
||||
</metaInformation>
|
||||
-->
|
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 115 B |
Before Width: | Height: | Size: 582 B |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 785 B |
Before Width: | Height: | Size: 966 B |
Before Width: | Height: | Size: 92 B |
Before Width: | Height: | Size: 92 B |
|
@ -220,9 +220,21 @@ h6 {
|
|||
font-size : 100%;
|
||||
}
|
||||
|
||||
input[type=submit], input[type=button], input[type=reset] {
|
||||
background : #b8d0e6 url(../../images/submit-bg.gif) repeat-x 0 0;
|
||||
background-color : #b8d0e6;
|
||||
input[type=submit],
|
||||
input[type=button],
|
||||
input[type=reset],
|
||||
fieldset.brief input[type=submit],
|
||||
fieldset.brief input[type=button],
|
||||
fieldset.brief input[type=reset]
|
||||
{
|
||||
background: #f4f9fc; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #f4f9fc 0%, #dfeefa 4%, #bfd5ea 93%, #a1c4e2 97%, #b8d0e6 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f4f9fc), color-stop(4%,#dfeefa), color-stop(93%,#bfd5ea), color-stop(97%,#a1c4e2), color-stop(100%,#b8d0e6)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #f4f9fc 0%,#dfeefa 4%,#bfd5ea 93%,#a1c4e2 97%,#b8d0e6 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #f4f9fc 0%,#dfeefa 4%,#bfd5ea 93%,#a1c4e2 97%,#b8d0e6 100%); /* Opera11.10+ */
|
||||
background: -ms-linear-gradient(top, #f4f9fc 0%,#dfeefa 4%,#bfd5ea 93%,#a1c4e2 97%,#b8d0e6 100%); /* IE10+ */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f9fc', endColorstr='#b8d0e6',GradientType=0 ); /* IE6-9 */
|
||||
background: linear-gradient(top, #f4f9fc 0%,#dfeefa 4%,#bfd5ea 93%,#a1c4e2 97%,#b8d0e6 100%); /* W3C */
|
||||
border-top: 1px solid #cccccc;
|
||||
border-left: 1px solid #cccccc;
|
||||
border-right: 1px solid #eeeeee;
|
||||
|
@ -233,7 +245,7 @@ input[type=submit], input[type=button], input[type=reset] {
|
|||
padding : 4px;
|
||||
}
|
||||
|
||||
input[type=submit]:active, input[type=button], input[type=reset] {
|
||||
input[type=submit]:active, input[type=button]:active, input[type=reset]:active {
|
||||
border: 1px inset #666666;
|
||||
}
|
||||
|
||||
|
@ -760,10 +772,14 @@ body#advsearch #listsmenulink {
|
|||
}
|
||||
|
||||
#opac-main-search {
|
||||
background-image : url( ../../images/menu-background.gif);
|
||||
background-repeat : repeat-x;
|
||||
background-color : #739ACF;
|
||||
background-position : -10px top;
|
||||
background: #8fb4e8; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #8fb4e8 0%, #8cb1e5 19%, #80a8dc 48%, #7da5d8 52%, #7198cf 83%, #618ac0 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#8fb4e8), color-stop(19%,#8cb1e5), color-stop(48%,#80a8dc), color-stop(52%,#7da5d8), color-stop(83%,#7198cf), color-stop(100%,#618ac0)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #8fb4e8 0%,#8cb1e5 19%,#80a8dc 48%,#7da5d8 52%,#7198cf 83%,#618ac0 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #8fb4e8 0%,#8cb1e5 19%,#80a8dc 48%,#7da5d8 52%,#7198cf 83%,#618ac0 100%); /* Opera 11.10+ */
|
||||
background: -ms-linear-gradient(top, #8fb4e8 0%,#8cb1e5 19%,#80a8dc 48%,#7da5d8 52%,#7198cf 83%,#618ac0 100%); /* IE10+ */
|
||||
background: linear-gradient(top, #8fb4e8 0%,#8cb1e5 19%,#80a8dc 48%,#7da5d8 52%,#7198cf 83%,#618ac0 100%); /* W3C */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#8fb4e8', endColorstr='#618ac0',GradientType=0 ); /* IE6-9 */
|
||||
border-top : 1px solid #335599;
|
||||
border-bottom : 1px solid #335599;
|
||||
margin-left : -10px;
|
||||
|
@ -1340,8 +1356,15 @@ padding-left : .4em;
|
|||
}
|
||||
|
||||
div.alert {
|
||||
background : #FFC url(../../images/alert-bg.gif) repeat-x left 0;
|
||||
text-align : center;
|
||||
background: #fef8d3; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #fef8d3 0%, #ffec91 9%, #ffed87 89%, #f9dc00 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fef8d3), color-stop(9%,#ffec91), color-stop(89%,#ffed87), color-stop(100%,#f9dc00)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #fef8d3 0%,#ffec91 9%,#ffed87 89%,#f9dc00 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #fef8d3 0%,#ffec91 9%,#ffed87 89%,#f9dc00 100%); /* Opera11.10+ */
|
||||
background: -ms-linear-gradient(top, #fef8d3 0%,#ffec91 9%,#ffed87 89%,#f9dc00 100%); /* IE10+ */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fef8d3', endColorstr='#f9dc00',GradientType=0 ); /* IE6-9 */
|
||||
background: linear-gradient(top, #fef8d3 0%,#ffec91 9%,#ffed87 89%,#f9dc00 100%); /* W3C */
|
||||
text-align : center;
|
||||
}
|
||||
|
||||
div.alert strong {
|
||||
|
@ -1349,8 +1372,15 @@ div.alert strong {
|
|||
}
|
||||
|
||||
div.message {
|
||||
background : white url("../../images/message-bg.gif") repeat-x left 0;
|
||||
border : 1px solid #bcbcbc;
|
||||
background: #ffffff; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #ffffff 0%, #f4f6fa 2%, #eaeef5 23%, #e8edf6 94%, #cddbf2 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(2%,#f4f6fa), color-stop(23%,#eaeef5), color-stop(94%,#e8edf6), color-stop(100%,#cddbf2)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #ffffff 0%,#f4f6fa 2%,#eaeef5 23%,#e8edf6 94%,#cddbf2 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #ffffff 0%,#f4f6fa 2%,#eaeef5 23%,#e8edf6 94%,#cddbf2 100%); /* Opera11.10+ */
|
||||
background: -ms-linear-gradient(top, #ffffff 0%,#f4f6fa 2%,#eaeef5 23%,#e8edf6 94%,#cddbf2 100%); /* IE10+ */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#cddbf2',GradientType=0 ); /* IE6-9 */
|
||||
background: linear-gradient(top, #ffffff 0%,#f4f6fa 2%,#eaeef5 23%,#e8edf6 94%,#cddbf2 100%); /* W3C */
|
||||
border : 1px solid #bcbcbc;
|
||||
width : 55%;
|
||||
}
|
||||
|
||||
|
@ -1388,11 +1418,15 @@ div.message {
|
|||
}
|
||||
|
||||
#opac-main-search #listsmenu .bd {
|
||||
background-color : #f3f3f3;
|
||||
background: #eef4fe; /* Old browsers */
|
||||
background: -moz-linear-gradient(left, #eef4fe 0%, #eef4fe 88%, #f6f9fe 98%, #ffffff 99%, #a5c2f6 99%, #e6eefe 100%, #cbdefe 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#eef4fe), color-stop(88%,#eef4fe), color-stop(98%,#f6f9fe), color-stop(99%,#ffffff), color-stop(99%,#a5c2f6), color-stop(100%,#e6eefe), color-stop(100%,#cbdefe)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(left, #eef4fe 0%,#eef4fe 88%,#f6f9fe 98%,#ffffff 99%,#a5c2f6 99%,#e6eefe 100%,#cbdefe 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(left, #eef4fe 0%,#eef4fe 88%,#f6f9fe 98%,#ffffff 99%,#a5c2f6 99%,#e6eefe 100%,#cbdefe 100%); /* Opera11.10+ */
|
||||
background: -ms-linear-gradient(left, #eef4fe 0%,#eef4fe 88%,#f6f9fe 98%,#ffffff 99%,#a5c2f6 99%,#e6eefe 100%,#cbdefe 100%); /* IE10+ */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eef4fe', endColorstr='#cbdefe',GradientType=1 ); /* IE6-9 */
|
||||
background: linear-gradient(left, #eef4fe 0%,#eef4fe 88%,#f6f9fe 98%,#ffffff 99%,#a5c2f6 99%,#e6eefe 100%,#cbdefe 100%); /* W3C */
|
||||
border : 1px solid #739acf;
|
||||
background-image : url("../../images/listmenu-container-bg.gif");
|
||||
background-position : top right;
|
||||
background-repeat : repeat-y;
|
||||
padding : .3em 1em 0 0;
|
||||
}
|
||||
|
||||
|
@ -1478,12 +1512,21 @@ div.lang{
|
|||
}
|
||||
|
||||
#opac-main-search input.submit {
|
||||
background : #b8d0e6 url(../../images/submit-bg.gif) repeat-x 0 0;
|
||||
background-color : #b8d0e6;
|
||||
border-top: 1px solid #cccccc;
|
||||
border-left: 1px solid #cccccc;
|
||||
border-right: 1px solid #eeeeee;
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
background: #e6f3fe; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #e6f3fe 0%, #dfeefa 8%, #bfd5ea 49%, #b8d0e6 52%, #b8d0e6 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e6f3fe), color-stop(8%,#dfeefa), color-stop(49%,#bfd5ea), color-stop(52%,#b8d0e6), color-stop(100%,#b8d0e6)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #e6f3fe 0%,#dfeefa 8%,#bfd5ea 49%,#b8d0e6 52%,#b8d0e6 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #e6f3fe 0%,#dfeefa 8%,#bfd5ea 49%,#b8d0e6 52%,#b8d0e6 100%); /* Opera11.10+ */
|
||||
background: -ms-linear-gradient(top, #e6f3fe 0%,#dfeefa 8%,#bfd5ea 49%,#b8d0e6 52%,#b8d0e6 100%); /* IE10+ */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e6f3fe', endColorstr='#b8d0e6',GradientType=0 ); /* IE6-9 */
|
||||
background: linear-gradient(top, #e6f3fe 0%,#dfeefa 8%,#bfd5ea 49%,#b8d0e6 52%,#b8d0e6 100%); /* W3C */
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: 1px 1px 1px 1px , , .3);
|
||||
-moz-box-shadow: 1px 1px 1px 1px , , .3);
|
||||
box-shadow: 1px 1px 1px 1px , , .3);
|
||||
|
||||
color : #333;
|
||||
font-weight : normal;
|
||||
font-size : 80%;
|
||||
|
@ -1499,9 +1542,16 @@ div#menu {
|
|||
}
|
||||
|
||||
div#menu li a {
|
||||
background: #eeeeee; /* Old browsers */
|
||||
background: -moz-linear-gradient(left, #eeeeee 0%, #eeeeee 96%, #e6e6e6 97%, #cccccc 99%, #c1c1c1 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#eeeeee), color-stop(96%,#eeeeee), color-stop(97%,#e6e6e6), color-stop(99%,#cccccc), color-stop(100%,#c1c1c1)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(left, #eeeeee 0%,#eeeeee 96%,#e6e6e6 97%,#cccccc 99%,#c1c1c1 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(left, #eeeeee 0%,#eeeeee 96%,#e6e6e6 97%,#cccccc 99%,#c1c1c1 100%); /* Opera 11.10+ */
|
||||
background: -ms-linear-gradient(left, #eeeeee 0%,#eeeeee 96%,#e6e6e6 97%,#cccccc 99%,#c1c1c1 100%); /* IE10+ */
|
||||
background: linear-gradient(left, #eeeeee 0%,#eeeeee 96%,#e6e6e6 97%,#cccccc 99%,#c1c1c1 100%); /* W3C */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#c1c1c1',GradientType=1 ); /* IE6-9 */
|
||||
text-decoration : none;
|
||||
display : block;
|
||||
background : #EEE url(../../images/side-tab-gradient.gif) repeat-y top right;
|
||||
border : 1px solid #979797;
|
||||
font-size : 111%;
|
||||
margin : .5em 0;
|
||||
|
@ -1510,7 +1560,14 @@ div#menu li a {
|
|||
}
|
||||
|
||||
div#menu li a:hover {
|
||||
background : #E8F0F6 url(../../images/side-tab-gradient-hover.gif) repeat-y top right;
|
||||
background: #eaeef5; /* Old browsers */
|
||||
background: -moz-linear-gradient(left, #eaeef5 0%, #dee6f4 96%, #c4d5ef 98%, #a2bee8 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#eaeef5), color-stop(96%,#dee6f4), color-stop(98%,#c4d5ef), color-stop(100%,#a2bee8)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(left, #eaeef5 0%,#dee6f4 96%,#c4d5ef 98%,#a2bee8 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(left, #eaeef5 0%,#dee6f4 96%,#c4d5ef 98%,#a2bee8 100%); /* Opera 11.10+ */
|
||||
background: -ms-linear-gradient(left, #eaeef5 0%,#dee6f4 96%,#c4d5ef 98%,#a2bee8 100%); /* IE10+ */
|
||||
background: linear-gradient(left, #eaeef5 0%,#dee6f4 96%,#c4d5ef 98%,#a2bee8 100%); /* W3C */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eaeef5', endColorstr='#a2bee8',GradientType=1 ); /* IE6-9 */
|
||||
}
|
||||
|
||||
div#menu li.active a:hover {
|
||||
|
@ -2177,36 +2234,39 @@ a.koha_url {
|
|||
background-color:#D9D9D9;
|
||||
}
|
||||
.nav_results ul.pg_menu {
|
||||
height:25px;
|
||||
border-top: 1px solid #D0D0D0;
|
||||
white-space : nowrap;
|
||||
}
|
||||
.nav_results ul.pg_menu li {
|
||||
color:#B2B2B2;
|
||||
display:block;
|
||||
float:left;
|
||||
padding:5px 0;
|
||||
display:inline;
|
||||
list-style:none;
|
||||
text-align:center;
|
||||
margin: 0;
|
||||
}
|
||||
.nav_results ul.pg_menu li.back_results {
|
||||
padding:5px 0px;
|
||||
width:45%;
|
||||
.nav_results ul.pg_menu li.back_results a {
|
||||
border-left: 1px solid #D0D0D0;
|
||||
border-right: 1px solid #D0D0D0;
|
||||
}
|
||||
.nav_results ul.pg_menu li a {
|
||||
.nav_results ul.pg_menu li a,
|
||||
.nav_results ul.pg_menu li span {
|
||||
background-color: #F3F3F3;
|
||||
display : block;
|
||||
float:left;
|
||||
padding:.4em .5em;
|
||||
text-decoration:none;
|
||||
font-weight:normal;
|
||||
color:#4D4D4D;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.nav_results ul.pg_menu li span {
|
||||
color : #B2B2B2;
|
||||
}
|
||||
|
||||
.nav_results ul.pg_menu li.left_results a {
|
||||
padding-left : 0;
|
||||
}
|
||||
|
||||
.nav_results ul.pg_menu li a:hover {
|
||||
color:#006699;
|
||||
}
|
||||
.nav_results ul.pg_menu li.left_results {
|
||||
margin-right:10px;
|
||||
}
|
||||
.nav_results ul.pg_menu li.right_results {
|
||||
margin-left:10px;
|
||||
}
|
||||
|
||||
.nav_results #listResults{
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
[% END %]
|
||||
<ul>
|
||||
[% FOREACH facet IN facets_loo.facets %]<li><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %][% IF ( sort_by ) %]&sort_by=[% sort_by %][% END %]&limit=[% facet.type_link_value %]:[% facet.facet_link_value %]" title="[% facet.facet_title_value |html %]">[% facet.facet_label_value %]</a> [% IF ( displayFacetCount ) %]([% facet.facet_count %])[% END %]</li>[% END %][% IF ( facets_loo.expandable ) %]
|
||||
<li class="showmore"><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %][% IF ( sort_by ) %]&sort_by=[% sort_by %][% END %]&offset=[% facets_loo.offset %]&expand=[% facets_loo.expand %]#[% facets_loo.type_id %]">Show More</a></li>
|
||||
<li class="showmore"><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %][% IF ( sort_by ) %]&sort_by=[% sort_by %][% END %][% IF ( offset ) %]&offset=[% offset %][% END %]&expand=[% facets_loo.expand %]#[% facets_loo.type_id %]">Show More</a></li>
|
||||
[% END %]
|
||||
</ul></li>
|
||||
[% END %]
|
||||
|
|
|
@ -118,7 +118,7 @@ function tagAdded() {
|
|||
|
||||
<div id="doc" class="yui-t7">
|
||||
<div id="userbasket" class="container">
|
||||
<h1>Your Cart</h1>
|
||||
<h2>Your Cart</h2>
|
||||
|
||||
[% UNLESS ( print_basket ) %]
|
||||
<div id="toolbar">
|
||||
|
|
|
@ -994,11 +994,11 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
|
|||
<div id="ulactioncontainer" class="container">
|
||||
[% IF ( busc ) %]
|
||||
<div class="nav_results">
|
||||
<div class="l_Results">[% IF ( listResults ) %]<a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>[% ELSE %]Browse results[% END %]</div>
|
||||
<ul class="pg_menu">
|
||||
<li class="left_results">[% IF ( previous ) %]<a href="[% previous %]" title="See: [% IF ( previousTitle ) %][% previousTitle |html %][% ELSE %]previous biblio[% END %]">« Previous</a>[% ELSE %]Previous[% END %]</li>
|
||||
<div class="l_Results">[% IF ( listResults ) %]<a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>[% ELSE %]<span>Browse results</span>[% END %]</div>
|
||||
<ul class="pg_menu clearfix">
|
||||
<li class="left_results">[% IF ( previous ) %]<a href="[% previous %]" title="See: [% IF ( previousTitle ) %][% previousTitle |html %][% ELSE %]previous biblio[% END %]">« Previous</a>[% ELSE %]<span>Previous</span>[% END %]</li>
|
||||
<li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li>
|
||||
<li class="right_results">[% IF ( next ) %]<a href="[% next %]" title="See: [% IF ( nextTitle ) %][% nextTitle |html %][% ELSE %]next biblio[% END %]">Next »</a>[% ELSE %]Next[% END %]</li>
|
||||
<li class="right_results">[% IF ( next ) %]<a href="[% next %]" title="See: [% IF ( nextTitle ) %][% nextTitle |html %][% ELSE %]next biblio[% END %]">Next »</a>[% ELSE %]<span>Next</span>[% END %]</li>
|
||||
</ul>
|
||||
[% IF ( listResults ) %]
|
||||
<div class="pagination">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog ›
|
||||
[% IF ( searchdesc ) %]
|
||||
Results of Search [% IF ( query_desc ) %]for '[% query_desc %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc %]'[% END %]
|
||||
Results of Search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]
|
||||
[% ELSE %]
|
||||
You did not specify any search criteria.
|
||||
[% END %]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog ›
|
||||
[% IF ( searchdesc ) %]
|
||||
Results of Search [% IF ( query_desc ) %]for '[% query_desc %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc %]'[% END %]
|
||||
Results of Search [% IF ( query_desc ) %]for '[% query_desc | html%]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]
|
||||
[% ELSE %]
|
||||
You did not specify any search criteria.
|
||||
[% END %]
|
||||
|
|
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 347 B |
Before Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 966 B |
Before Width: | Height: | Size: 92 B |
Before Width: | Height: | Size: 92 B |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
@ -1,5 +1,23 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# Copyright Koha development team 2011
|
||||
#
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Koha is free software; you can redistribute it and/or modify it under the
|
||||
# terms of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
#
|
||||
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along with
|
||||
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
|
||||
# Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
|
@ -13,11 +31,14 @@ use C4::Labels 1.000000;
|
|||
|
||||
my $cgi = new CGI;
|
||||
|
||||
my $batch_id = $cgi->param('batch_id') if $cgi->param('batch_id');
|
||||
my $batch_id;
|
||||
my @label_ids;
|
||||
my @item_numbers;
|
||||
$batch_id = $cgi->param('batch_id') if $cgi->param('batch_id');
|
||||
my $template_id = $cgi->param('template_id') || undef;
|
||||
my $layout_id = $cgi->param('layout_id') || undef;
|
||||
my @label_ids = $cgi->param('label_id') if $cgi->param('label_id');
|
||||
my @item_numbers = $cgi->param('item_number') if $cgi->param('item_number');
|
||||
@label_ids = $cgi->param('label_id') if $cgi->param('label_id');
|
||||
@item_numbers = $cgi->param('item_number') if $cgi->param('item_number');
|
||||
|
||||
my $items = undef;
|
||||
|
||||
|
|
13
mainpage.pl
|
@ -26,6 +26,9 @@ use C4::Auth;
|
|||
use C4::AuthoritiesMarc;
|
||||
use C4::Koha;
|
||||
use C4::NewsChannels;
|
||||
use C4::Review qw/numberofreviews/;
|
||||
use C4::Suggestions qw/CountSuggestion/;
|
||||
use C4::Tags qw/get_count_by_tag_status/;
|
||||
my $query = new CGI;
|
||||
my $authtypes = getauthtypes;
|
||||
my @authtypesloop;
|
||||
|
@ -66,4 +69,14 @@ $template->param(
|
|||
koha_news_count => $koha_news_count
|
||||
);
|
||||
|
||||
my $pendingcomments = numberofreviews(0);
|
||||
my $pendingtags = get_count_by_tag_status(0);
|
||||
my $pendingsuggestions = CountSuggestion("ASKED");
|
||||
|
||||
$template->param(
|
||||
pendingcomments => $pendingcomments,
|
||||
pendingtags => $pendingtags,
|
||||
pendingsuggestions => $pendingsuggestions
|
||||
);
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
|
|
@ -649,7 +649,7 @@ if (C4::Context->preference('uppercasesurnames')) {
|
|||
}
|
||||
|
||||
$data{debarred} = C4::Overdues::CheckBorrowerDebarred($borrowernumber);
|
||||
$data{datedebarred} = $data{debarred} if ( $data{debarred} ne "9999-12-31" );
|
||||
$data{datedebarred} = $data{debarred} if ( $data{debarred} && $data{debarred} ne "9999-12-31" );
|
||||
foreach (qw(dateenrolled dateexpiry dateofbirth datedebarred)) {
|
||||
$data{$_} = format_date($data{$_}); # back to syspref for display
|
||||
$template->param( $_ => $data{$_});
|
||||
|
|
|
@ -305,7 +305,7 @@ if (@branchcodes) {
|
|||
@branches = grep { $seen{$_} } @overduebranches;
|
||||
|
||||
|
||||
if (@overduebranches) {
|
||||
if (@branches) {
|
||||
|
||||
my $branch_word = scalar @branches > 1 ? 'branches' : 'branch';
|
||||
$verbose and warn "$branch_word @branches have overdue rules\n";
|
||||
|
|
|
@ -78,7 +78,7 @@ if ( C4::Context->preference('ShowReviewer') and C4::Context->preference('ShowRe
|
|||
|
||||
my $reviews = getallreviews(1,$offset,$results_per_page);
|
||||
my $marcflavour = C4::Context->preference("marcflavour");
|
||||
my $hits = numberofreviews();
|
||||
my $hits = numberofreviews(1);
|
||||
my $i = 0;
|
||||
my $latest_comment_date;
|
||||
for my $result (@$reviews){
|
||||
|
|
|
@ -47,10 +47,10 @@ my $fullreportname = "reports/acquisitions_stats.tmpl";
|
|||
my $line = $input->param("Line");
|
||||
my $column = $input->param("Column");
|
||||
my @filters = $input->param("Filter");
|
||||
$filters[0]= (($line =~ /closedate/ || $column =~ /closedate/) ? format_date_in_iso($filters[0]) : undef);
|
||||
$filters[1]= (($line =~ /closedate/ || $column =~ /closedate/) ? format_date_in_iso($filters[1]) : undef);
|
||||
$filters[2]= (($line =~ /delivery/ || $column =~ /delivery/) ? format_date_in_iso($filters[2]) : undef);
|
||||
$filters[3]= (($line =~ /delivery/ || $column =~ /delivery/) ? format_date_in_iso($filters[3]) : undef);
|
||||
$filters[0]= format_date_in_iso($filters[0]);
|
||||
$filters[1]= format_date_in_iso($filters[1]);
|
||||
$filters[2]= format_date_in_iso($filters[2]);
|
||||
$filters[3]= format_date_in_iso($filters[3]);
|
||||
my $podsp = $input->param("PlacedOnDisplay");
|
||||
my $rodsp = $input->param("ReceivedOnDisplay");
|
||||
my $aodsp = $input->param("AcquiredOnDisplay"); ##added by mason.
|
||||
|
|
|
@ -16,8 +16,8 @@ my @all_koha_dirs = qw( acqui admin authorities basket C4 catalogue cataloguing
|
|||
labels members misc offline_circ opac patroncards reports reserve reviews rotating_collections
|
||||
serials sms suggestion t tags test tools virtualshelves);
|
||||
|
||||
my @dirs = qw( acqui admin authorities basket circ debian errors offline_circ reserve reviews rotating_collections
|
||||
serials sms virtualshelves );
|
||||
my @dirs = qw( acqui admin authorities basket catalogue cataloguing circ debian errors labels
|
||||
offline_circ reserve reviews rotating_collections serials sms virtualshelves );
|
||||
|
||||
if ( not $ENV{TEST_QA} ) {
|
||||
my $msg = 'Author test. Set $ENV{TEST_QA} to a true value to run';
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Test::More tests => 13;
|
||||
use Test::More tests => 12;
|
||||
|
||||
BEGIN { use_ok( 'C4::Boolean', qw( true_p ) ); }
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ my $default_layout = {
|
|||
font_size => 3,
|
||||
callnum_split => 0,
|
||||
text_justify => 'L',
|
||||
format_string => 'title, author, isbn, issn, itemtype, barcode, callnumber',
|
||||
format_string => 'title, author, isbn, issn, itemtype, barcode, itemcallnumber',
|
||||
};
|
||||
|
||||
my $layout;
|
||||
|
|
|
@ -74,11 +74,11 @@ is ($marcqualified, $test3xml, "testing marcQualified");
|
|||
my $mods=marc2modsxml($marc);
|
||||
my $test4xml=qq(<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.loc.gov/mods/v3" version="3.1" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-1.xsd">
|
||||
<typeOfResource/>
|
||||
<originInfo>
|
||||
<issuance/>
|
||||
</originInfo>
|
||||
<recordInfo/>
|
||||
<typeOfResource/>
|
||||
<originInfo>
|
||||
<issuance/>
|
||||
</originInfo>
|
||||
<recordInfo/>
|
||||
</mods>
|
||||
);
|
||||
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
exclude = Miscellanea::RequireRcsKeywords
|
||||
|
||||
|
||||
[Perl::Critic::Policy::BuiltinFunctions::ProhibitStringyEval]
|
||||
allow_includes =1
|
|
@ -147,6 +147,7 @@ $template->param(WEEK_DAYS_LOOP => \@week_days,
|
|||
keydate => $keydate,
|
||||
branchcodes => $branchcodes,
|
||||
branch => $branch,
|
||||
DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
|
||||
branchname => $branchname
|
||||
);
|
||||
|
||||
|
|
|
@ -10,25 +10,44 @@ use C4::Output;
|
|||
|
||||
|
||||
use C4::Calendar;
|
||||
use DateTime;
|
||||
|
||||
my $input = new CGI;
|
||||
my $dbh = C4::Context->dbh();
|
||||
my $input = new CGI;
|
||||
my $dbh = C4::Context->dbh();
|
||||
|
||||
my $branchcode = $input->param('newBranchName');
|
||||
my $originalbranchcode = $branchcode;
|
||||
my $weekday = $input->param('newWeekday');
|
||||
my $day = $input->param('newDay');
|
||||
my $month = $input->param('newMonth');
|
||||
my $year = $input->param('newYear');
|
||||
my $title = $input->param('newTitle');
|
||||
my $description = $input->param('newDescription');
|
||||
my $newoperation = $input->param('newOperation');
|
||||
my $allbranches = $input->param('allBranches');
|
||||
my $branchcode = $input->param('newBranchName');
|
||||
my $originalbranchcode = $branchcode;
|
||||
my $weekday = $input->param('newWeekday');
|
||||
my $day = $input->param('newDay');
|
||||
my $month = $input->param('newMonth');
|
||||
my $year = $input->param('newYear');
|
||||
my $day1;
|
||||
my $month1;
|
||||
my $year1;
|
||||
my $dateofrange = $input->param('dateofrange');
|
||||
my $title = $input->param('newTitle');
|
||||
my $description = $input->param('newDescription');
|
||||
my $newoperation = $input->param('newOperation');
|
||||
my $allbranches = $input->param('allBranches');
|
||||
|
||||
my $calendardate = sprintf("%04d-%02d-%02d", $year, $month, $day);
|
||||
my $isodate = C4::Dates->new($calendardate, 'iso');
|
||||
$calendardate = $isodate->output('syspref');
|
||||
my $calendardate = sprintf("%04d-%02d-%02d", $year, $month, $day);
|
||||
my $isodate = C4::Dates->new($calendardate, 'iso');
|
||||
$calendardate = $isodate->output('syspref');
|
||||
|
||||
my @dateend = split(/[\/-]/, $dateofrange);
|
||||
if (C4::Context->preference("dateformat") eq "metric") {
|
||||
$day1 = $dateend[0];
|
||||
$month1 = $dateend[1];
|
||||
$year1 = $dateend[2];
|
||||
}elsif (C4::Context->preference("dateformat") eq "us") {
|
||||
$month1 = $dateend[0];
|
||||
$day1 = $dateend[1];
|
||||
$year1 = $dateend[2];
|
||||
} else {
|
||||
$year1 = $dateend[0];
|
||||
$month1 = $dateend[1];
|
||||
$day1 = $dateend[2];
|
||||
}
|
||||
$title || ($title = '');
|
||||
if ($description) {
|
||||
$description =~ s/\r/\\r/g;
|
||||
|
@ -80,5 +99,52 @@ sub add_holiday {
|
|||
description => $description);
|
||||
}
|
||||
|
||||
}
|
||||
} elsif ( $newoperation eq 'holidayrange' ) {
|
||||
#Make an array with holiday's days
|
||||
my $first_dt = DateTime->new(year => $year, month => $month, day => $day);
|
||||
my $end_dt = DateTime->new(year => $year1, month => $month1, day => $day1);
|
||||
my @holiday_list = ();
|
||||
|
||||
for (my $dt = $first_dt->clone();
|
||||
$dt <= $end_dt;
|
||||
$dt->add(days => 1) )
|
||||
{
|
||||
push @holiday_list, $dt->clone();
|
||||
}
|
||||
|
||||
foreach my $date (@holiday_list){
|
||||
unless ( $calendar->isHoliday( $date->{local_c}->{day}, $date->{local_c}->{month}, $date->{local_c}->{year} ) ) {
|
||||
$calendar->insert_single_holiday(
|
||||
day => $date->{local_c}->{day},
|
||||
month => $date->{local_c}->{month},
|
||||
year => $date->{local_c}->{year},
|
||||
title => $title,
|
||||
description => $description
|
||||
);
|
||||
}
|
||||
}
|
||||
} elsif ( $newoperation eq 'holidayrangerepeat' ) {
|
||||
#Make an array with holiday's days
|
||||
my $first_dt = DateTime->new(year => $year, month => $month, day => $day);
|
||||
my $end_dt = DateTime->new(year => $year1, month => $month1, day => $day1);
|
||||
my @holiday_list = ();
|
||||
|
||||
for (my $dt = $first_dt->clone();
|
||||
$dt <= $end_dt;
|
||||
$dt->add(days => 1) )
|
||||
{
|
||||
push @holiday_list, $dt->clone();
|
||||
}
|
||||
|
||||
foreach my $date (@holiday_list){
|
||||
unless ( $calendar->isHoliday( $date->{local_c}->{day}, $date->{local_c}->{month}, $date->{local_c}->{year} ) ) {
|
||||
$calendar->insert_day_month_holiday(
|
||||
day => $date->{local_c}->{day},
|
||||
month => $date->{local_c}->{month},
|
||||
title => $title,
|
||||
description => $description
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,6 +21,8 @@ use warnings;
|
|||
use CGI;
|
||||
use C4::Auth;
|
||||
use C4::Output;
|
||||
use C4::Review qw/numberofreviews/;
|
||||
use C4::Tags qw/get_count_by_tag_status/;
|
||||
|
||||
my $query = new CGI;
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
|
@ -34,4 +36,12 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
|
||||
my $pendingcomments = numberofreviews(0);
|
||||
my $pendingtags = get_count_by_tag_status(0);
|
||||
|
||||
$template->param(
|
||||
pendingcomments => $pendingcomments,
|
||||
pendingtags => $pendingtags
|
||||
);
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
|