#check to see what accounttype
if ( $data->{'accounttype'} eq 'Rep' || $data->{'accounttype'} eq 'L' ) {
- ReturnLostItem( $borrowernumber, $data->{'itemnumber'} );
+ C4::Circulation::ReturnLostItem( $borrowernumber, $data->{'itemnumber'} );
}
}
LEFT JOIN biblioitems ON biblioitems.biblionumber=biblio.biblionumber
WHERE booksellerid=?
AND (quantity > quantityreceived OR quantityreceived is NULL)
- AND datecancellationprinted IS NULL
- AND (to_days(now())-to_days(closedate) < 180 OR closedate IS NULL)
- ";
- ## FIXME Why 180 days ???
+ AND datecancellationprinted IS NULL";
my @query_params = ( $supplierid );
my $userenv = C4::Context->userenv;
if ( C4::Context->preference("IndependantBranches") ) {
$session->flush;
$session->delete();
C4::Context->_unset_userenv($sessionID);
- _session_log(sprintf "%20s from %16s logged out at %30s (manually).\n", $userid,$ip,(strftime "%c",localtime));
+ #_session_log(sprintf "%20s from %16s logged out at %30s (manually).\n", $userid,$ip,(strftime "%c",localtime));
$sessionID = undef;
$userid = undef;
$info{'timed_out'} = 1;
$session->delete();
C4::Context->_unset_userenv($sessionID);
- _session_log(sprintf "%20s from %16s logged out at %30s (inactivity).\n", $userid,$ip,(strftime "%c",localtime));
+ #_session_log(sprintf "%20s from %16s logged out at %30s (inactivity).\n", $userid,$ip,(strftime "%c",localtime));
$userid = undef;
$sessionID = undef;
}
$info{'different_ip'} = 1;
$session->delete();
C4::Context->_unset_userenv($sessionID);
- _session_log(sprintf "%20s from %16s logged out at %30s (ip changed to %16s).\n", $userid,$ip,(strftime "%c",localtime), $info{'newip'});
+ #_session_log(sprintf "%20s from %16s logged out at %30s (ip changed to %16s).\n", $userid,$ip,(strftime "%c",localtime), $info{'newip'});
$sessionID = undef;
$userid = undef;
}
$userid = $retuserid if ($retuserid ne '');
}
if ($return) {
- _session_log(sprintf "%20s from %16s logged in at %30s.\n", $userid,$ENV{'REMOTE_ADDR'},(strftime '%c', localtime));
+ #_session_log(sprintf "%20s from %16s logged in at %30s.\n", $userid,$ENV{'REMOTE_ADDR'},(strftime '%c', localtime));
if ( $flags = haspermission( $userid, $flagsrequired ) ) {
$loggedin = 1;
}
( substr($borrower{'firstname'},0,1)
. substr($borrower{ 'surname' },0,1)
. " ");
+
+ # check if categorycode exists, if not, fallback to default from koha-conf.xml
+ my $dbh = C4::Context->dbh;
+ my $sth = $dbh->prepare("SELECT categorycode FROM categories WHERE categorycode = ?");
+ $sth->execute( uc($borrower{'categorycode'}) );
+ unless ( my $row = $sth->fetchrow_hashref ) {
+ my $default = $mapping{'categorycode'}->{content};
+ $debug && warn "Can't find ", $borrower{'categorycode'}, " default to: $default for ", $borrower{userid};
+ $borrower{'categorycode'} = $default
+ }
+
return %borrower;
}
| dateexpiry | date | YES | | NULL | |
| gonenoaddress | tinyint(1) | YES | | NULL | |
| lost | tinyint(1) | YES | | NULL | |
- | debarred | tinyint(1) | YES | | NULL | |
+ | debarred | date | YES | | NULL | |
+ | debarredcomment | varchar(255) | YES | | NULL | |
| contactname | mediumtext | YES | | NULL | |
| contactfirstname | text | YES | | NULL | |
| contacttitle | text | YES | | NULL | |
}
my $date=POSIX::strftime("%y%m%d",localtime);
if (!$record->field('008')) {
- $record->insert_fields_ordered(
- MARC::Field->new('008',$date."|||a|||||| | ||| d")
- );
+ # Get a valid default value for field 008
+ my $default_008 = C4::Context->preference('MARCAuthorityControlField008');
+ if(!$default_008 or length($default_008)<34) {
+ $default_008 = '|| aca||aabn | a|a d';
+ }
+ else {
+ $default_008 = substr($default_008,0,34);
+ }
+
+ $record->insert_fields_ordered( MARC::Field->new('008',$date.$default_008) );
}
if (!$record->field('040')) {
$record->insert_fields_ordered(
=head2 DelBiblio
- my $error = &DelBiblio($dbh,$biblionumber);
+ my $error = &DelBiblio($biblionumber);
Exported function (core API) for deleting a biblio in koha.
Deletes biblio record from Zebra and Koha tables (biblio,biblioitems,items)
=head2 GetCOinSBiblio
- my $coins = GetCOinSBiblio($biblionumber);
+ my $coins = GetCOinSBiblio($record);
-Returns the COinS(a span) which can be included in a biblio record
+Returns the COinS (a span) which can be included in a biblio record
=cut
sub GetCOinSBiblio {
- my ($biblionumber) = @_;
- my $record = GetMarcBiblio($biblionumber);
+ my $record = shift;
# get the coin format
if ( ! $record ) {
- # can't get a valid MARC::Record object, bail out at this point
- warn "We called GetMarcBiblio with a biblionumber that doesn't exist biblionumber=$biblionumber";
return;
}
my $pos7 = substr $record->leader(), 7, 1;
}
$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";
$searchstring = q{%} . $searchstring . q{%};
my $query =
'select aqbooksellers.*, count(*) as basketcount from aqbooksellers left join aqbasket '
- . 'on aqbasket.booksellerid = aqbooksellers.id where name lIke ? group by aqbooksellers.id order by name';
+ . 'on aqbasket.booksellerid = aqbooksellers.id where name like ? group by aqbooksellers.id order by name';
my $dbh = C4::Context->dbh;
my $sth = $dbh->prepare($query);
INSERT INTO aqbooksellers
(
name, address1, address2, address3, address4,
- postal, phone, fax, url, contact,
+ postal, phone, accountnumber, fax, url,
+ contact,
contpos, contphone, contfax, contaltphone, contemail,
contnotes, active, listprice, invoiceprice, gstreg,
listincgst,invoiceincgst, gstrate, discount,
notes
)
- VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) |
+ VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) |
;
my $sth = $dbh->prepare($query);
$sth->execute(
$data->{'name'}, $data->{'address1'},
$data->{'address2'}, $data->{'address3'},
$data->{'address4'}, $data->{'postal'},
- $data->{'phone'}, $data->{'fax'},
+ $data->{'phone'}, $data->{'accountnumber'},
+ $data->{'fax'},
$data->{'url'}, $data->{'contact'},
$data->{'contpos'}, $data->{'contphone'},
$data->{'contfax'}, $data->{'contaltphone'},
my $dbh = C4::Context->dbh;
my $query = 'UPDATE aqbooksellers
SET name=?,address1=?,address2=?,address3=?,address4=?,
- postal=?,phone=?,fax=?,url=?,contact=?,contpos=?,
+ postal=?,phone=?,accountnumber=?,fax=?,url=?,contact=?,contpos=?,
contphone=?,contfax=?,contaltphone=?,contemail=?,
contnotes=?,active=?,listprice=?, invoiceprice=?,
gstreg=?,listincgst=?,invoiceincgst=?,
$data->{'name'}, $data->{'address1'},
$data->{'address2'}, $data->{'address3'},
$data->{'address4'}, $data->{'postal'},
- $data->{'phone'}, $data->{'fax'},
+ $data->{'phone'}, $data->{'accountnumber'},
+ $data->{'fax'},
$data->{'url'}, $data->{'contact'},
$data->{'contpos'}, $data->{'contphone'},
$data->{'contfax'}, $data->{'contaltphone'},
Date_to_Days
Day_of_Week
Add_Delta_Days
+ check_date
);
use POSIX qw(strftime);
use C4::Branch; # GetBranches
&GetRenewCount
&GetItemIssue
&GetItemIssues
- &GetBorrowerIssues
&GetIssuingCharges
&GetIssuingRule
&GetBranchBorrowerCircRule
# find reserves.....
# That'll save a database query.
- my ( $resfound, $resrec ) =
+ my ( $resfound, $resrec, undef ) =
CheckReserves( $itemnumber );
if ( $resfound and not $ignoreRs ) {
$resrec->{'ResFound'} = $resfound;
}
# See if the item is on reserve.
- my ( $restype, $res ) = C4::Reserves::CheckReserves( $item->{'itemnumber'} );
+ my ( $restype, $res, undef ) = C4::Reserves::CheckReserves( $item->{'itemnumber'} );
if ($restype) {
my $resbor = $res->{'borrowernumber'};
my ( $resborrower ) = C4::Members::GetMember( borrowernumber => $resbor );
);
}
- # See if the item is on reserve.
- my ( $restype, $res ) =
- C4::Reserves::CheckReserves( $item->{'itemnumber'} );
- if ($restype) {
- my $resbor = $res->{'borrowernumber'};
- if ( $resbor eq $borrower->{'borrowernumber'} ) {
- # The item is reserved by the current patron
- ModReserveFill($res);
- }
- elsif ( $restype eq "Waiting" ) {
- # warn "Waiting";
- # The item is on reserve and waiting, but has been
- # reserved by some other patron.
- }
- elsif ( $restype eq "Reserved" ) {
- # warn "Reserved";
- # The item is reserved by someone else.
- if ($cancelreserve) { # cancel reserves on this item
- CancelReserve(0, $res->{'itemnumber'}, $res->{'borrowernumber'});
- }
- }
- if ($cancelreserve) {
- CancelReserve($res->{'biblionumber'}, 0, $res->{'borrowernumber'});
- }
- else {
- # set waiting reserve to first in reserve queue as book isn't waiting now
- ModReserve(1,
- $res->{'biblionumber'},
- $res->{'borrowernumber'},
- $res->{'branchcode'}
- );
- }
- }
+ MoveReserve( $item->{'itemnumber'}, $borrower->{'borrowernumber'}, $cancelreserve );
# Starting process for transfer job (checking transfert and validate it if we have one)
my ($datesent) = GetTransfers($item->{'itemnumber'});
if ($borrowernumber) {
my $fix = _FixOverduesOnReturn($borrowernumber, $item->{itemnumber}, $exemptfine, $dropbox);
defined($fix) or warn "_FixOverduesOnReturn($borrowernumber, $item->{itemnumber}...) failed!"; # zero is OK, check defined
+
+ # fix fine days
+ my $debardate = _FixFineDaysOnReturn( $borrower, $item, $issue->{date_due} );
+ $messages->{'Debarred'} = $debardate if ($debardate);
}
# find reserves.....
# if we don't have a reserve with the status W, we launch the Checkreserves routine
- my ($resfound, $resrec) = C4::Reserves::CheckReserves( $item->{'itemnumber'} );
+ my ($resfound, $resrec, undef) = C4::Reserves::CheckReserves( $item->{'itemnumber'} );
if ($resfound) {
$resrec->{'ResFound'} = $resfound;
$messages->{'ResFound'} = $resrec;
$sth_del->execute($borrowernumber, $itemnumber);
}
+=head2 _FixFineDaysOnReturn
+
+ &_FixFineDaysOnReturn($borrower, $item, $datedue);
+
+C<$borrower> borrower hashref
+
+C<$item> item hashref
+
+C<$datedue> date due
+
+Internal function, called only by AddReturn that calculate and update the user fine days, and debars him
+
+=cut
+
+sub _FixFineDaysOnReturn {
+ my ( $borrower, $item, $datedue ) = @_;
+
+ if ($datedue) {
+ $datedue = C4::Dates->new( $datedue, "iso" );
+ } else {
+ return;
+ }
+
+ my $branchcode = _GetCircControlBranch( $item, $borrower );
+ my $calendar = C4::Calendar->new( branchcode => $branchcode );
+ my $today = C4::Dates->new();
+
+ my $deltadays = $calendar->daysBetween( $datedue, C4::Dates->new() );
+
+ my $circcontrol = C4::Context::preference('CircControl');
+ my $issuingrule = GetIssuingRule( $borrower->{categorycode}, $item->{itype}, $branchcode );
+ my $finedays = $issuingrule->{finedays};
+
+ # exit if no finedays defined
+ return unless $finedays;
+ my $grace = $issuingrule->{firstremind};
+
+ if ( $deltadays - $grace > 0 ) {
+ my @newdate = Add_Delta_Days( Today(), $deltadays * $finedays );
+ my $isonewdate = join( '-', @newdate );
+ my ( $deby, $debm, $debd ) = split( /-/, $borrower->{debarred} );
+ if ( check_date( $deby, $debm, $debd ) ) {
+ my @olddate = split( /-/, $borrower->{debarred} );
+
+ if ( Delta_Days( @olddate, @newdate ) > 0 ) {
+ C4::Members::DebarMember( $borrower->{borrowernumber}, $isonewdate );
+ return $isonewdate;
+ }
+ } else {
+ C4::Members::DebarMember( $borrower->{borrowernumber}, $isonewdate );
+ return $isonewdate;
+ }
+ }
+}
+
=head2 _FixOverduesOnReturn
&_FixOverduesOnReturn($brn,$itm, $exemptfine, $dropboxmode);
$error="too_many";
}
- my ( $resfound, $resrec ) = C4::Reserves::CheckReserves($itemnumber);
+ my ( $resfound, $resrec, undef ) = C4::Reserves::CheckReserves($itemnumber);
if ($resfound) {
$renewokay = 0;
$error="on_reserve"
sub LostItem{
- my ($itemnumber, $mark_returned) = @_;
+ my ($itemnumber, $mark_returned, $charge_fee) = @_;
my $dbh = C4::Context->dbh();
my $sth=$dbh->prepare("SELECT issues.*,items.*,biblio.title
# if a borrower lost the item, add a replacement cost to the their record
if ( my $borrowernumber = $issues->{borrowernumber} ){
- C4::Accounts::chargelostitem($borrowernumber, $itemnumber, $issues->{'replacementprice'}, "Lost Item $issues->{'title'} $issues->{'barcode'}");
+ C4::Accounts::chargelostitem($borrowernumber, $itemnumber, $issues->{'replacementprice'}, "Lost Item $issues->{'title'} $issues->{'barcode'}")
+ if $charge_fee;
#FIXME : Should probably have a way to distinguish this from an item that really was returned.
#warn " $issues->{'borrowernumber'} / $itemnumber ";
MarkIssueReturned($borrowernumber,$itemnumber) if $mark_returned;
use strict;
use warnings;
-use vars qw($VERSION $AUTOLOAD $context @context_stack);
+use vars qw($VERSION $AUTOLOAD $context @context_stack $servers $memcached $ismemcached);
BEGIN {
if ($ENV{'HTTP_USER_AGENT'}) {
$main::SIG{__DIE__} = \&CGI::Carp::confess;
}
} # else there is no browser to send fatals to!
+
+ # Check if there are memcached servers set
+ $servers = $ENV{'MEMCACHED_SERVERS'};
+ if ($servers) {
+ # Load required libraries and create the memcached object
+ require Cache::Memcached;
+ $memcached = Cache::Memcached->new({
+ servers => [ $servers ],
+ debug => 0,
+ compress_threshold => 10_000,
+ namespace => $ENV{'MEMCACHED_NAMESPACE'} || 'koha'
+ });
+ # Verify memcached available (set a variable and test the output)
+ $ismemcached = $memcached->set('ismemcached','1');
+ }
+
$VERSION = '3.00.00.036';
}
sub read_config_file { # Pass argument naming config file to read
my $koha = XMLin(shift, keyattr => ['id'], forcearray => ['listen', 'server', 'serverinfo'], suppressempty => '');
+
+ if ($ismemcached) {
+ $memcached->set('kohaconf',$koha);
+ }
+
return $koha; # Return value: ref-to-hash holding the configuration
}
file, which defaults to either the file given by the C<$KOHA_CONF>
environment variable, or F</etc/koha/koha-conf.xml>.
+It saves the koha-conf.xml values in the declared memcached server(s)
+if currently available and uses those values until them expire and
+re-reads them.
+
C<&new> does not set this context as the new default context; for
that, use C<&set_context>.
return undef;
}
}
- # Load the desired config file.
- $self = read_config_file($conf_fname);
- $self->{"config_file"} = $conf_fname;
+ if ($ismemcached) {
+ # retreive from memcached
+ $self = $memcached->get('kohaconf');
+ if (not defined $self) {
+ # not in memcached yet
+ $self = read_config_file($conf_fname);
+ }
+ } else {
+ # non-memcached env, read from file
+ $self = read_config_file($conf_fname);
+ }
+
+ $self->{"config_file"} = $conf_fname;
warn "read_config_file($conf_fname) returned undef" if !defined($self->{"config"});
return undef if !defined($self->{"config"});
sub preference {
my $self = shift;
- my $var = shift; # The system preference to return
+ my $var = lc(shift); # The system preference to return
if (exists $sysprefs{$var}) {
return $sysprefs{$var};
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 = '';
$self->{'dateformat'} = $dformat = ( scalar(@_) >= 2 ) ? $_[1] : _prefformat();
( $format_map{$dformat} ) or croak "Invalid date format '$dformat' from " . ( ( scalar(@_) >= 2 ) ? 'argument' : 'system preferences' );
$self->{'dmy_arrayref'} = [ ( (@_) ? $self->dmy_map(shift) : localtime ) ];
- $debug and warn "(during init) \@\$self->{'dmy_arrayref'}: " . join( ' ', @{ $self->{'dmy_arrayref'} } ) . "\n";
+ if ($debug && $debug > 1) { warn "(during init) \@\$self->{'dmy_arrayref'}: " . join( ' ', @{ $self->{'dmy_arrayref'} } ) . "\n"; }
return $self;
}
my ($cgi) = @_;
# Check if borrower exists, using a C4::Auth function...
- unless( checkpw( C4::Context->dbh, $cgi->param('username'), $cgi->param('password') ) ) {
+ unless( C4::Auth::checkpw( C4::Context->dbh, $cgi->param('username'), $cgi->param('password') ) ) {
return { code => 'PatronNotFound' };
}
package C4::ILSDI::Utility;
# Copyright 2009 SARL Biblibre
+# Copyright 2011 software.coop and MJ Ray
#
# This file is part of Koha.
#
use C4::Items;
use C4::Circulation;
use C4::Biblio;
-use C4::Reserves qw(GetReservesFromBorrowernumber);
+use C4::Reserves qw(GetReservesFromBorrowernumber CanBookBeReserved);
use C4::Context;
use C4::Branch qw/GetBranchName/;
use Digest::MD5 qw(md5_base64);
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(
- &BorrowerExists &CanBookBeReserved &Availability
+ &BorrowerExists &Availability
);
}
return $sth->fetchrow;
}
-=head2 CanBookBeReserved
-
-Checks if a book (at bibliographic level) can be reserved by a borrower.
-
- if ( CanBookBeReserved($borrower, $biblionumber) ) {
- # Do stuff
- }
-
-=cut
-
-sub CanBookBeReserved {
- my ( $borrower, $biblionumber ) = @_;
-
- my $MAXIMUM_NUMBER_OF_RESERVES = C4::Context->preference("maxreserves");
- my $MAXOUTSTANDING = C4::Context->preference("maxoutstanding");
-
- my $out = 1;
-
- if ( $borrower->{'amountoutstanding'} > $MAXOUTSTANDING ) {
- $out = undef;
- }
- if ( $borrower->{gonenoaddress} eq 1 ) {
- $out = undef;
- }
- if ( $borrower->{lost} eq 1 ) {
- $out = undef;
- }
- if ( $borrower->{debarred} eq 1 ) {
- $out = undef;
- }
- my @reserves = GetReservesFromBorrowernumber( $borrower->{'borrowernumber'} );
- if ( $MAXIMUM_NUMBER_OF_RESERVES && scalar(@reserves) >= $MAXIMUM_NUMBER_OF_RESERVES ) {
- $out = undef;
- }
- foreach my $res (@reserves) {
- if ( $res->{'biblionumber'} == $biblionumber ) {
- $out = undef;
- }
- }
- my $issues = GetPendingIssues( $borrower->{'borrowernumber'} );
- foreach my $issue (@$issues) {
- if ( $issue->{'biblionumber'} == $biblionumber ) {
- $out = undef;
- }
- }
-
- return $out;
-}
-
=head2 Availability
Returns, for an itemnumber, an array containing availability information.
# report the import a failure although it really succeded -fbcit
}
# errors thrown while loading installer data should be logged
- warn "C4::Installer::load_sql returned the following errors while attempting to load $filename:\n";
- warn $error;
+ if($error) {
+ warn "C4::Installer::load_sql returned the following errors while attempting to load $filename:\n";
+ warn "$error";
+ }
return $error;
}
$data->{cardnumber} = $idata->{cardnumber};
$data->{surname} = $idata->{surname};
$data->{firstname} = $idata->{firstname};
+ $data->{lastreneweddate} = $idata->{lastreneweddate};
$datedue = $idata->{'date_due'};
if (C4::Context->preference("IndependantBranches")){
my $userenv = C4::Context->userenv;
$serial = 1;
}
if ( $datedue eq '' ) {
- my ( $restype, $reserves ) =
+ my ( $restype, $reserves, undef ) =
C4::Reserves::CheckReserves( $data->{'itemnumber'} );
# Previous conditional check with if ($restype) is not needed because a true
# result for one item will result in subsequent items defaulting to this true
my @imagesets = (); # list of hasrefs of image set data to pass to template
my @subdirectories = _getSubdirectoryNames( $paths->{'staff'}{'filesystem'} );
-warn $paths->{'staff'}{'filesystem'};
foreach my $imagesubdir ( @subdirectories ) {
- warn $imagesubdir;
+ warn $imagesubdir if $DEBUG;
my @imagelist = (); # hashrefs of image info
my @imagenames = _getImagesFromDirectory( File::Spec->catfile( $paths->{'staff'}{'filesystem'}, $imagesubdir ) );
my $imagesetactive = 0;
($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 = ?" :
if ( my $bcc = C4::Context->preference('OverdueNoticeBcc') ) {
$sendmail_params{ Bcc } = $bcc;
}
-
+ _update_message_to_address($message->{'message_id'},$to_address) unless $message->{to_address}; #if initial message address was empty, coming here means that a to address was found and queue should be updated
if ( sendmail( %sendmail_params ) ) {
_set_message_status( { message_id => $message->{'message_id'},
status => 'sent' } );
return $success;
}
+sub _update_message_to_address {
+ my ($id, $to)= @_;
+ my $dbh = C4::Context->dbh();
+ $dbh->do('UPDATE message_queue SET to_address=? WHERE message_id=?',undef,($to,$id));
+}
+
sub _set_message_status ($) {
my $params = shift or return undef;
use C4::Context;
use C4::Dates qw(format_date_in_iso);
use Digest::MD5 qw(md5_base64);
-use Date::Calc qw/Today Add_Delta_YM/;
+use Date::Calc qw/Today Add_Delta_YM check_date Date_to_Days/;
use C4::Log; # logaction
use C4::Overdues;
use C4::Reserves;
my $query;
my $sth;
if ($borrowernumber) {
- $sth = $dbh->prepare("SELECT borrowers.*,category_type,categories.description,reservefee FROM borrowers LEFT JOIN categories ON borrowers.categorycode=categories.categorycode WHERE borrowernumber=?");
+ $sth = $dbh->prepare("SELECT borrowers.*,category_type,categories.description,reservefee,enrolmentperiod FROM borrowers LEFT JOIN categories ON borrowers.categorycode=categories.categorycode WHERE borrowernumber=?");
$sth->execute($borrowernumber);
}
elsif ($cardnumber) {
- $sth = $dbh->prepare("SELECT borrowers.*,category_type,categories.description,reservefee FROM borrowers LEFT JOIN categories ON borrowers.categorycode=categories.categorycode WHERE cardnumber=?");
+ $sth = $dbh->prepare("SELECT borrowers.*,category_type,categories.description,reservefee,enrolmentperiod FROM borrowers LEFT JOIN categories ON borrowers.categorycode=categories.categorycode WHERE cardnumber=?");
$sth->execute($cardnumber);
}
else {
$borrower->{'flags'} = $flags;
$borrower->{'authflags'} = $accessflagshash;
- # find out how long the membership lasts
- $sth =
- $dbh->prepare(
- "select enrolmentperiod from categories where categorycode = ?");
- $sth->execute( $borrower->{'categorycode'} );
- my $enrolment = $sth->fetchrow;
- $borrower->{'enrolmentperiod'} = $enrolment;
-
+ # For the purposes of making templates easier, we'll define a
+ # 'showname' which is the alternate form the user's first name if
+ # 'other name' is defined.
+ if ($borrower->{category_type} eq 'I') {
+ $borrower->{'showname'} = $borrower->{'othernames'};
+ $borrower->{'showname'} .= " $borrower->{'firstname'}" if $borrower->{'firstname'};
+ } else {
+ $borrower->{'showname'} = $borrower->{'firstname'};
+ }
+
return ($borrower); #, $flags, $accessflagshash);
}
$flaginfo{'noissues'} = 1;
$flags{'LOST'} = \%flaginfo;
}
- if ( $patroninformation->{'debarred'}
- && $patroninformation->{'debarred'} == 1 )
- {
- my %flaginfo;
- $flaginfo{'message'} = 'Borrower is Debarred.';
- $flaginfo{'noissues'} = 1;
- $flags{'DBARRED'} = \%flaginfo;
+ if ( $patroninformation->{'debarred'} && check_date( split( /-/, $patroninformation->{'debarred'} ) ) ) {
+ if ( Date_to_Days(Date::Calc::Today) < Date_to_Days( split( /-/, $patroninformation->{'debarred'} ) ) ) {
+ my %flaginfo;
+ $flaginfo{'debarredcomment'} = $patroninformation->{'debarredcomment'};
+ $flaginfo{'message'} = $patroninformation->{'debarredcomment'};
+ $flaginfo{'noissues'} = 1;
+ $flaginfo{'dateend'} = $patroninformation->{'debarred'};
+ $flags{'DBARRED'} = \%flaginfo;
+ }
}
if ( $patroninformation->{'borrowernotes'}
&& $patroninformation->{'borrowernotes'} )
my $borrowernumber = shift;
my $dbh = C4::Context->dbh;
- # does patron have current fine days?
- my $strsth=qq{
- SELECT
- ADDDATE(returndate, finedays * DATEDIFF(returndate,date_due) ) AS blockingdate,
- DATEDIFF(ADDDATE(returndate, finedays * DATEDIFF(returndate,date_due)),NOW()) AS blockedcount
- FROM old_issues
- };
- if(C4::Context->preference("item-level_itypes")){
- $strsth.=
- qq{ LEFT JOIN items ON (items.itemnumber=old_issues.itemnumber)
- LEFT JOIN issuingrules ON (issuingrules.itemtype=items.itype)}
- }else{
- $strsth .=
- qq{ LEFT JOIN items ON (items.itemnumber=old_issues.itemnumber)
- LEFT JOIN biblioitems ON (biblioitems.biblioitemnumber=items.biblioitemnumber)
- LEFT JOIN issuingrules ON (issuingrules.itemtype=biblioitems.itemtype) };
- }
- $strsth.=
- qq{ WHERE finedays IS NOT NULL
- AND date_due < returndate
- AND borrowernumber = ?
- ORDER BY blockingdate DESC, blockedcount DESC
- LIMIT 1};
- my $sth=$dbh->prepare($strsth);
- $sth->execute($borrowernumber);
- my $row = $sth->fetchrow_hashref;
- my $blockeddate = $row->{'blockeddate'};
- my $blockedcount = $row->{'blockedcount'};
+ my $blockeddate = CheckBorrowerDebarred($borrowernumber);
- return (1, $blockedcount) if $blockedcount > 0;
+ return ( 1, $blockeddate ) if $blockeddate;
# if he have late issues
- $sth = $dbh->prepare(
+ my $sth = $dbh->prepare(
"SELECT COUNT(*) as latedocs
FROM issues
WHERE borrowernumber = ?
$sth->execute($borrowernumber);
my $latedocs = $sth->fetchrow_hashref->{'latedocs'};
- return (-1, $latedocs) if $latedocs > 0;
+ return ( -1, $latedocs ) if $latedocs > 0;
- return (0, 0);
+ return ( 0, 0 );
}
=head2 GetMemberIssuesAndFines
=head2 DebarMember
- my $success = DebarMember( $borrowernumber );
+my $success = DebarMember( $borrowernumber, $todate );
marks a Member as debarred, and therefore unable to checkout any more
items.
sub DebarMember {
my $borrowernumber = shift;
+ my $todate = shift;
return unless defined $borrowernumber;
return unless $borrowernumber =~ /^\d+$/;
- return ModMember( borrowernumber => $borrowernumber,
- debarred => 1 );
-
+ return ModMember(
+ borrowernumber => $borrowernumber,
+ debarred => $todate
+ );
+
}
=head2 ModPrivacy
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;
}
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)
use C4::Budgets qw(GetCurrency);
use C4::Templates;
-#use HTML::Template::Pro;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
BEGIN {
# subs to move to Members.pm
push @EXPORT, qw(
&CheckBorrowerDebarred
- &UpdateBorrowerDebarred
);
# subs to move to Biblio.pm
push @EXPORT, qw(
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;
}
SELECT debarred
FROM borrowers
WHERE borrowernumber=?
+ AND debarred > NOW()
|;
my $sth = $dbh->prepare($query);
$sth->execute($borrowernumber);
- my ($debarredstatus) = $sth->fetchrow;
- return ( $debarredstatus eq '1' ? 1 : 0 );
+ my $debarredstatus = $sth->fetchrow;
+ return $debarredstatus;
}
-=head2 UpdateBorrowerDebarred
-
- ($borrowerstatut) = &UpdateBorrowerDebarred($borrowernumber);
-
-update status of borrowers in borrowers table (field debarred)
-
-C<$borrowernumber> borrower number
-
-=cut
-
-sub UpdateBorrowerDebarred{
- my($borrowernumber) = @_;
- my $dbh = C4::Context->dbh;
- my $query=qq|UPDATE borrowers
- SET debarred='1'
- WHERE borrowernumber=?
- |;
- my $sth=$dbh->prepare($query);
- $sth->execute($borrowernumber);
- $sth->finish;
- return 1;
-}
=head2 CheckExistantNotifyid
# to have spaces in them). Or perhaps if $queue eq "" and
# $env->{file} ne "", then that should mean "print to $env->{file}".
if ( $queue eq "" || $queue eq 'nulllp' ) {
- open( PRINTER, ">/tmp/kohaiss" );
+ return;
+ #open( PRINTER, ">/tmp/kohaiss" );
}
else {
}
sub printreserve {
+
+ # FIXME - make useful
+ return;
+
my ( $branchname, $bordata, $itemdata ) = @_;
my $printer = '';
(return) unless ( C4::Context->boolean_preference('printreserveslips') );
#'
sub printslip ($) {
+
+ #FIXME - make useful
+
my $borrowernumber = shift;
my $borrower = GetMemberDetails($borrowernumber);
my $issueslist = GetPendingIssues($borrowernumber);
&ModReserveStatus
&ModReserveCancelAll
&ModReserveMinusPriority
+ &MoveReserve
&CheckReserves
&CanBookBeReserved
my ($itemnumber) = @_;
my $messages;
my $nextreservinfo;
- my ( $restype, $checkreserves ) = CheckReserves($itemnumber);
+ my ( undef, $checkreserves, undef ) = CheckReserves($itemnumber);
if ($checkreserves) {
my $iteminfo = GetItem($itemnumber);
if ( $iteminfo->{'holdingbranch'} ne $checkreserves->{'branchcode'} ) {
=head2 CheckReserves
- ($status, $reserve) = &CheckReserves($itemnumber);
- ($status, $reserve) = &CheckReserves(undef, $barcode);
+ ($status, $reserve, $all_reserves) = &CheckReserves($itemnumber);
+ ($status, $reserve, $all_reserves) = &CheckReserves(undef, $barcode);
Find a book in the reserves.
# note: we get the itemnumber because we might have started w/ just the barcode. Now we know for sure we have it.
my ( $biblio, $bibitem, $notforloan_per_itemtype, $notforloan_per_item, $itemnumber ) = $sth->fetchrow_array;
- return ( 0, 0 ) unless $itemnumber; # bail if we got nothing.
+ return ( '' ) unless $itemnumber; # bail if we got nothing.
# if item is not for loan it cannot be reserved either.....
# execpt where items.notforloan < 0 : This indicates the item is holdable.
- return ( 0, 0 ) if ( $notforloan_per_item > 0 ) or $notforloan_per_itemtype;
+ return ( '' ) if ( $notforloan_per_item > 0 ) or $notforloan_per_itemtype;
# Find this item in the reserves
my @reserves = _Findgroupreserve( $bibitem, $biblio, $itemnumber );
my $priority = 10000000;
foreach my $res (@reserves) {
if ( $res->{'itemnumber'} == $itemnumber && $res->{'priority'} == 0) {
- return ( "Waiting", $res ); # Found it
+ return ( "Waiting", $res, \@reserves ); # Found it
} else {
# See if this item is more important than what we've got so far
if ( $res->{'priority'} && $res->{'priority'} < $priority ) {
# We return the most important (i.e. next) reservation.
if ($highest) {
$highest->{'itemnumber'} = $item;
- return ( "Reserved", $highest );
- }
- else {
- return ( 0, 0 );
+ return ( "Reserved", $highest, \@reserves );
}
+
+ return ( '' );
}
=head2 CancelExpiredReserves
return $new_priority; # so the caller knows what priority they wind up receiving
}
+=head2 MoveReserve
+
+ MoveReserve( $itemnumber, $borrowernumber, $cancelreserve )
+
+Use when checking out an item to handle reserves
+If $cancelreserve boolean is set to true, it will remove existing reserve
+
+=cut
+
+sub MoveReserve {
+ my ( $itemnumber, $borrowernumber, $cancelreserve ) = @_;
+
+ my ( $restype, $res, $all_reserves ) = CheckReserves( $itemnumber );
+ return unless $res;
+
+ my $biblionumber = $res->{biblionumber};
+ my $biblioitemnumber = $res->{biblioitemnumber};
+
+ if ($res->{borrowernumber} == $borrowernumber) {
+ ModReserveFill($res);
+ }
+ else {
+ # warn "Reserved";
+ # The item is reserved by someone else.
+ # Find this item in the reserves
+
+ my $borr_res;
+ foreach (@$all_reserves) {
+ $_->{'borrowernumber'} == $borrowernumber or next;
+ $_->{'biblionumber'} == $biblionumber or next;
+
+ $borr_res = $_;
+ last;
+ }
+
+ if ( $borr_res ) {
+ # The item is reserved by the current patron
+ ModReserveFill($borr_res);
+ }
+
+ if ($cancelreserve) { # cancel reserves on this item
+ CancelReserve(0, $res->{'itemnumber'}, $res->{'borrowernumber'});
+ CancelReserve($res->{'biblionumber'}, 0, $res->{'borrowernumber'});
+ }
+ }
+}
+
=head2 MergeHolds
MergeHolds($dbh,$to_biblio, $from_biblio);
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(getreview savereview updatereview numberofreviews numberofreviewsbybiblionumber
- getreviews getallreviews approvereview deletereview);
+ getreviews getallreviews approvereview unapprovereview deletereview);
}
=head1 NAME
my $review=getreview($biblionumber,$borrowernumber);
savereview($biblionumber,$borrowernumber,$review);
updatereview($biblionumber,$borrowernumber,$review);
- my $count=numberofreviews($biblionumber);
+ my $count=numberofreviews($status);
+ my $count=numberofreviewsbybiblionumber($biblionumber);
my $reviews=getreviews($biblionumber);
my $reviews=getallreviews($status);
}
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;
}
$sth->execute( 1, $reviewid );
}
+=head2 unapprovereview
+
+ unapprovereview($reviewid);
+
+Takes a reviewid and marks that review as not approved
+
+=cut
+
+sub unapprovereview {
+ my ($reviewid) = @_;
+ my $dbh = C4::Context->dbh();
+ my $query = "UPDATE reviews
+ SET approved=?
+ WHERE reviewid=?";
+ my $sth = $dbh->prepare($query);
+ $sth->execute( 0, $reviewid );
+}
+
=head2 deletereview
deletereview($reviewid);
## supposed to be a hash of simple values, hashes of arrays could be implemented
$filter_input->{$field}=format_date_in_iso($filter_input->{$field})
if $columns->{$field}{Type}=~/date/ &&
- $filter_input->{$field} && $filter_input->{$field} !~C4::Dates->regexp("iso");
+ $filter_input->{$field} !~C4::Dates->regexp("iso");
my ($tmpkeys, $localvalues)=_Process_Operands($filter_input->{$field},"$tablename.$field",$searchtype,$columns);
if (@$tmpkeys){
push @values, @$localvalues;
my $cclq = 0;
my $cclindexes = getIndexes();
if ( $query !~ /\s*ccl=/ ) {
- while ( !$cclq && $query =~ /(?:^|\W)(\w+)(,\w+)*[:=]/g ) {
+ while ( !$cclq && $query =~ /(?:^|\W)([\w-]+)(,[\w-]+)*[:=]/g ) {
my $dx = lc($1);
$cclq = grep { lc($_) eq $dx } @$cclindexes;
}
my ($transfertfrom, $transfertto);
# is item on the reserve shelf?
- my $reservestatus = 0;
+ my $reservestatus = '';
my $reserveitem;
unless ($item->{wthdrawn}
# should map transit status to record indexed in Zebra.
#
($transfertwhen, $transfertfrom, $transfertto) = C4::Circulation::GetTransfers($item->{itemnumber});
- ($reservestatus, $reserveitem) = C4::Reserves::CheckReserves($item->{itemnumber});
+ ($reservestatus, $reserveitem, undef) = C4::Reserves::CheckReserves($item->{itemnumber});
}
# item is withdrawn, lost, damaged, not for loan, reserved or in transit
$tmpstring =~ s/^AND //;
push @sqlstrings, $tmpstring;
}
- $sqlwhere .= ( $sqlwhere ? " AND " : " WHERE " ) . "(" . join( ") OR (", @sqlstrings ) . ")";
+ $sqlwhere .= ( $sqlwhere ? " AND " : " WHERE " ) . "((" . join( ") OR (", @sqlstrings ) . "))";
}
if ($issn) {
my @sqlstrings;
$tmpstring =~ s/^OR //;
push @sqlstrings, $tmpstring;
}
- $sqlwhere .= ( $sqlwhere ? " AND " : " WHERE " ) . "(" . join( ") OR (", @sqlstrings ) . ")";
+ $sqlwhere .= ( $sqlwhere ? " AND " : " WHERE " ) . "((" . join( ") OR (", @sqlstrings ) . "))";
}
$sql .= "$sqlwhere ORDER BY title";
$debug and warn "GetSubscriptions query: $sql params : ", join( " ", @bind_params );
@res=Date::Calc::Today;
}
my @endofsubscriptiondate=split(/-/,$expirationdate);
- my @per_list = (0, 7, 7, 14, 21, 31, 62, 93, 93, 190, 365, 730, 0, 0, 0, 0);
+ my @per_list = (0, 7, 7, 14, 21, 31, 62, 93, 93, 190, 365, 730, 0, 124, 0, 0);
my @datebeforeend;
@datebeforeend = Add_Delta_Days( $endofsubscriptiondate[0],$endofsubscriptiondate[1],$endofsubscriptiondate[2],
- (3 * $per_list[$per])) if (@endofsubscriptiondate && $endofsubscriptiondate[0]*$endofsubscriptiondate[1]*$endofsubscriptiondate[2]);
}
@resultdate = Add_Delta_YMD( $year, $month, $day, 0, 3, 0 );
}
+ if ( $subscription->{periodicity} == 13 ) {
+ for ( my $i = 0 ; $i < @irreg ; $i++ ) {
+ if ( $irreg[$i] == ( ( $tmpmonth != 8 ) ? ( $tmpmonth + 4 ) % 12 : 12 ) ) {
+ ( $year, $month, $day ) = Add_Delta_YMD( $year, $month, $day, 0, 4, 0 );
+ $tmpmonth = ( ( $tmpmonth != 8 ) ? ( $tmpmonth + 4 ) % 12 : 12 );
+ }
+ }
+ @resultdate = Add_Delta_YMD( $year, $month, $day, 0, 4, 0 );
+ }
if ( $subscription->{periodicity} == 9 ) {
for ( my $i = 0 ; $i < @irreg ; $i++ ) {
if ( $irreg[$i] == ( ( $tmpmonth != 9 ) ? ( $tmpmonth + 3 ) % 12 : 12 ) ) {
LEFT JOIN borrowers AS U2 ON managedby=U2.borrowernumber
LEFT JOIN branches AS B2 ON B2.branchcode=U2.branchcode
LEFT JOIN categories AS C2 ON C2.categorycode = U2.categorycode
- WHERE STATUS NOT IN ('CLAIMED')
+ WHERE 1=1
} , map {
if ( my $s = $suggestion->{$_} ) {
push @sql_params,'%'.$s.'%';
&whitelist
&is_approved
&approval_counts
+ &get_count_by_tag_status
&get_filters
);
# %EXPORT_TAGS = ();
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;
($query) or warn "no query in themelanguage";
# Select a language based on cookie, syspref available languages & browser
- my $is_intranet = $interface eq 'intranet';
- my @languages = split(",", C4::Context->preference(
- $is_intranet ? 'language' : 'opaclanguages'));
- my $lang;
- $lang = $query->cookie('KohaOpacLanguage')
- if defined $query and $query->cookie('KohaOpacLanguage');
- unless ($lang) {
- my $http_accept_language = $ENV{ HTTP_ACCEPT_LANGUAGE };
- $lang = accept_language( $http_accept_language,
- getTranslatedLanguages($interface,'prog') );
- }
- # Ignore a lang not selected in sysprefs
- $lang = undef unless first { $_ eq $lang } @languages;
- # Fall back to English if necessary
- $lang = 'en' unless $lang;
+ my $lang = getlanguage($query, $interface);
+ # Select theme
+ my $is_intranet = $interface eq 'intranet';
my @themes = split(" ", C4::Context->preference(
$is_intranet ? "template" : "opacthemes" ));
push @themes, 'prog';
);
}
-sub getlanguagecookie {
- my ($query) = @_;
+
+sub getlanguage {
+ my ($query, $interface) = @_;
+
+ # Select a language based on cookie, syspref available languages & browser
+ my $is_intranet = $interface eq 'intranet';
+ my @languages = split(",", C4::Context->preference(
+ $is_intranet ? 'language' : 'opaclanguages'));
+
my $lang;
- if ($query->cookie('KohaOpacLanguage')){
- $lang = $query->cookie('KohaOpacLanguage') ;
- }else{
- $lang = $ENV{HTTP_ACCEPT_LANGUAGE};
-
+
+ # cookie
+ if ( $query->cookie('KohaOpacLanguage') ) {
+ $lang = $query->cookie('KohaOpacLanguage');
+ $lang =~ s/[^a-zA-Z_-]*//; # sanitize cookie
+ }
+
+ # HTTP_ACCEPT_LANGUAGE
+ unless ($lang) {
+ my $http_accept_language = $ENV{ HTTP_ACCEPT_LANGUAGE };
+ $lang = accept_language( $http_accept_language,
+ getTranslatedLanguages($interface,'prog') );
}
- $lang = substr($lang, 0, 2);
+
+ # Ignore a lang not selected in sysprefs
+ $lang = undef unless first { $_ eq $lang } @languages;
+
+ # Fall back to English if necessary
+ $lang = 'en' unless $lang;
return $lang;
}
#$this_item->{'description'} = $itemtypes->{ $this_item->{itemtype} }->{'description'};
$this_item->{'dateadded'} = format_date( $this_item->{'dateadded'} );
$this_item->{'imageurl'} = getitemtypeinfo( $this_item->{'itemtype'} )->{'imageurl'};
- $this_item->{'coins'} = GetCOinSBiblio( $this_item->{'biblionumber'} );
+ $this_item->{'coins'} = GetCOinSBiblio( $record );
$this_item->{'subtitle'} = GetRecordValue('subtitle', $record, GetFrameworkCode($this_item->{'biblionumber'}));
$this_item->{'normalized_upc'} = GetNormalizedUPC( $record,$marcflavour);
$this_item->{'normalized_ean'} = GetNormalizedEAN( $record,$marcflavour);
$qhash{$_} = $query->param($_) if $query->param($_);
}
( scalar keys %qhash ) and $url .= '?' . join '&', map { "$_=$qhash{$_}" } keys %qhash;
- if ( $shelfnumber ) {
+ if ( $shelfnumber && $totitems ) {
$template->param( pagination_bar => pagination_bar( $url, ( int( $totitems / $shelflimit ) ) + ( ( $totitems % $shelflimit ) > 0 ? 1 : 0 ), $itemoff, "itemoff" ) );
- } else {
+ } elsif ( $totshelves ) {
$template->param(
pagination_bar => pagination_bar( $url, ( int( $totshelves / $shelveslimit ) ) + ( ( $totshelves % $shelveslimit ) > 0 ? 1 : 0 ), $shelfoff, "shelfoff" ) );
}
sub transformMARCXML4XSLT {
my ($biblionumber, $record) = @_;
- my $frameworkcode = GetFrameworkCode($biblionumber);
+ my $frameworkcode = GetFrameworkCode($biblionumber) || '';
my $tagslib = &GetMarcStructure(1,$frameworkcode);
my @fields;
# FIXME: wish there was a better way to handle exceptions
my ( $transfertwhen, $transfertfrom, $transfertto ) = C4::Circulation::GetTransfers($item->{itemnumber});
- my ( $reservestatus, $reserveitem ) = C4::Reserves::CheckReserves($item->{itemnumber});
+ my ( $reservestatus, $reserveitem, undef ) = C4::Reserves::CheckReserves($item->{itemnumber});
if ( $itemtypes->{ $item->{itype} }->{notforloan} || $item->{notforloan} || $item->{onloan} || $item->{wthdrawn} || $item->{itemlost} || $item->{damaged} ||
(defined $transfertwhen && $transfertwhen ne '') || $item->{itemnotforloan} || (defined $reservestatus && $reservestatus eq "Waiting") ){
# 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
+# You should have received a copy of the GNU General Public License along
+# 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;
use C4::Context;
use C4::Installer;
+#use Smart::Comments '####';
+
my $query = new CGI;
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
$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;
my ($biblionumber,$bibitemnum) = AddBiblio($record,'');
# change suggestion status if applicable
if ($$orderinfo{suggestionid}) {
- ModSuggestion( {suggestionid=>$$orderinfo{suggestionid}, status=>'ORDERED', biblionumber=>$biblionumber} );
+ ModSuggestion( {suggestionid=>$$orderinfo{suggestionid}, STATUS=>'ORDERED', biblionumber=>$biblionumber} );
}
$orderinfo->{biblioitemnumber}=$bibitemnum;
$orderinfo->{biblionumber}=$biblionumber;
use C4::Output;
use C4::Dates qw/format_date/;
use C4::Bookseller qw/ GetBookSellerFromId /;
+use C4::Budgets qw/ GetBudget /;
use C4::Members;
use C4::Branch; # GetBranches
use C4::Items;
if ( @$results[0]->{'unitprice'} == 0 ) {
@$results[0]->{'unitprice'} = '';
}
+
+ my $authorisedby = @$results[0]->{'authorisedby'};
+ my $member = GetMember( borrowernumber => $authorisedby );
+
+ my $budget = GetBudget( @$results[0]->{'budget_id'} );
+
$template->param(
count => 1,
biblionumber => @$results[0]->{'biblionumber'},
copyrightdate => @$results[0]->{'copyrightdate'},
isbn => @$results[0]->{'isbn'},
seriestitle => @$results[0]->{'seriestitle'},
- bookfund => @$results[0]->{'bookfundid'},
+ bookfund => $budget->{budget_name},
quantity => @$results[0]->{'quantity'},
quantityreceivedplus1 => @$results[0]->{'quantityreceived'} + 1,
quantityreceived => @$results[0]->{'quantityreceived'},
rrp => @$results[0]->{'rrp'},
ecost => @$results[0]->{'ecost'},
unitprice => @$results[0]->{'unitprice'},
+ memberfirstname => $member->{firstname} || "",
+ membersurname => $member->{surname} || "",
invoice => $invoice,
datereceived => $datereceived->output(),
- datereceived_iso => $datereceived->output('iso'),
- notes => $order->{notes}
+ datereceived_iso => $datereceived->output('iso'),
+ notes => $order->{notes}
);
}
else {
address3 => $supplier->{'address3'},
address4 => $supplier->{'address4'},
phone => $supplier->{'phone'},
+ accountnumber => $supplier->{'accountnumber'},
fax => $supplier->{'fax'},
url => $supplier->{'url'},
contact => $supplier->{'contact'},
} else {
my @currencies = GetCurrencies();
my $loop_currency;
+ my $active_currency = GetCurrency();
+ my $active_listprice = $supplier->{'listprice'};
+ my $active_invoiceprice = $supplier->{'invoiceprice'};
+ if (!$supplier->{listprice}) {
+ $active_listprice = $active_currency->{currency};
+ }
+ if (!$supplier->{invoiceprice}) {
+ $active_invoiceprice = $active_currency->{currency};
+ }
for (@currencies) {
push @{$loop_currency},
- { currency => $_->{currency},
- listprice => ( $_->{currency} eq $supplier->{listprice} ),
- invoiceprice => ( $_->{currency} eq $supplier->{invoiceprice} ),
- };
+ {
+ currency => $_->{currency},
+ listprice => ( $_->{currency} eq $active_listprice ),
+ invoiceprice => ( $_->{currency} eq $active_invoiceprice ),
+ };
}
my $default_gst_rate = (C4::Context->preference('gist') * 100) || '0.0';
address3 => $supplier->{'address3'},
address4 => $supplier->{'address4'},
phone => $supplier->{'phone'},
+ accountnumber=> $supplier->{'accountnumber'},
fax => $supplier->{'fax'},
url => $supplier->{'url'},
contact => $supplier->{'contact'},
$data{'address3'}=$addresses[2];
$data{'address4'}=$addresses[3];
$data{'phone'}=$input->param('company_phone');
+$data{'accountnumber'}=$input->param('accountnumber');
$data{'fax'}=$input->param('company_fax');
$data{'url'}=$input->param('website');
$data{'contact'}=$input->param('company_contact_name');
my $link = $link[$i];
my $defaultvalue = $defaultvalue[$i];
- if ($liblibrarian) {
+ if (defined($liblibrarian) && $liblibrarian ne "") {
unless ( C4::Context->config('demo') eq 1 ) {
if (marc_subfield_structure_exists($tagfield, $tagsubfield, $frameworkcode)) {
$sth_update->execute(
foreach my $piece ( @$line ) {
if ( ref( $piece ) eq 'HASH' ) {
+ if ( !$piece->{'pref'} ){ next; }
if ( $piece->{'pref'} =~ /^$searchfield$/i ) {
my ( undef, $LINES ) = TransformPrefsToHTML( $data, $searchfield );
sub matches {
my ( $text, $terms ) = @_;
- return !grep( { $text !~ /$_/i } @$terms );
+ if ( $text ) { return !grep( { $text !~ /$_/i } @$terms ); }
}
my $dbh = C4::Context->dbh;
$tabsysprefs{NotifyBorrowerDeparture} = "Patrons";
$tabsysprefs{memberofinstitution} = "Patrons";
$tabsysprefs{BorrowerMandatoryField} = "Patrons";
+$tabsysprefs{BorrowerUnwantedField} = "Patrons";
$tabsysprefs{borrowerRelationship} = "Patrons";
$tabsysprefs{BorrowersTitles} = "Patrons";
$tabsysprefs{patronimages} = "Patrons";
subscriptiontitle => $subscriptiontitle,
);
}
+my $record = GetMarcBiblio($biblionumber);
$template->param (
ISBD => $res,
biblionumber => $biblionumber,
isbdview => 1,
z3950_search_params => C4::Search::z3950_search_args(GetBiblioData($biblionumber)),
- C4::Search::enabled_staff_search_views
+ ocoins => GetCOinSBiblio($record),
+ C4::Search::enabled_staff_search_views,
);
output_html_with_http_headers $query, $cookie, $template->output;
);
my $record = GetMarcBiblio($biblionumber);
+$template->param( ocoins => GetCOinSBiblio($record) );
if ( not defined $record ) {
# biblionumber invalid -> report and exit
}
$template->param( 'SpineLabelShowPrintOnBibDetails' => C4::Context->preference("SpineLabelShowPrintOnBibDetails") );
+$template->param( ocoins => GetCOinSBiblio($record) );
# some useful variables for enhanced content;
# in each case, we're grabbing the first value we find in
my $authvalcode_items_damaged = GetAuthValCode('items.damaged', $fw);
my $analytics_flag;
+my $materials_flag; # set this if the items have anything in the materials field
foreach my $item (@items) {
$item->{homebranch} = GetBranchName($item->{homebranch});
$analytics_flag=1;
$item->{countanalytics} = $countanalytics;
}
-
+ if ($item->{'materials'} ne ''){
+ $materials_flag = 1;
+ }
push @itemloop, $item;
}
hostrecords => $hostrecords,
analytics_flag => $analytics_flag,
C4::Search::enabled_staff_search_views,
+ materials => $materials_flag,
);
if (C4::Context->preference("AlternateHoldingsField") && scalar @items == 0) {
#!/usr/bin/perl
-use HTML::Template::Pro;
use strict;
#use warnings; FIXME - Bug 2505
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');
# $dewey=~ s/\.$//;
# $data->{'dewey'}=$dewey;
-my @results;
my $fw = GetFrameworkCode($biblionumber);
my @all_items= GetItemsInfo($biblionumber);
my @items;
push (@items,@hostitems);
}
-
+my $subtitle = GetRecordValue('subtitle', $record, $fw);
my $totalcount=@all_items;
my $showncount=@items;
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);
$item->{'collection'} = $ccodes->{ $item->{ccode} } if ($ccodes);
$item->{'itype'} = $itemtypes->{ $item->{'itype'} }->{'description'};
$item->{'replacementprice'} = sprintf( "%.2f", $item->{'replacementprice'} );
- $item->{'datelastborrowed'} = format_date( $item->{'datelastborrowed'} );
- $item->{'dateaccessioned'} = format_date( $item->{'dateaccessioned'} );
- $item->{'datelastseen'} = format_date( $item->{'datelastseen'} );
+ $item->{$_} = format_date( $item->{$_} ) foreach qw/datelastborrowed dateaccessioned datelastseen lastreneweddate/;
$item->{'copyvol'} = $item->{'copynumber'};
+
# item has a host number if its biblio number does not match the current bib
if ($item->{biblionumber} ne $biblionumber){
$item->{hostbiblionumber} = $item->{biblionumber};
$item->{hosttitle} = GetBiblioData($item->{biblionumber})->{title};
}
- my $order = GetOrderFromItemnumber( $item->{'itemnumber'} );
+ my $order = GetOrderFromItemnumber( $item->{'itemnumber'} );
+ my $basket = GetBasket( $order->{'basketno'} );
+ $item->{'booksellerid'} = $basket->{'booksellerid'};
$item->{'ordernumber'} = $order->{'ordernumber'};
$item->{'basketno'} = $order->{'basketno'};
$item->{'booksellerinvoicenumber'} = $order->{'booksellerinvoicenumber'};
+ $item->{'datereceived'} = $order->{'datereceived'};
if ($item->{notforloantext} or $item->{itemlost} or $item->{damaged} or $item->{wthdrawn}) {
$item->{status_advisory} = 1;
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;
my $languages_limit_loop = getAllLanguages();
$template->param(search_languages_loop => $languages_limit_loop,);
- # use the global setting by default
- if ( C4::Context->preference("expandedSearchOption") == 1) {
- $template->param( expanded_options => C4::Context->preference("expandedSearchOption") );
- }
- # but let the user override it
- if ( ($cgi->param('expanded_options') == 0) || ($cgi->param('expanded_options') == 1 ) ) {
- $template->param( expanded_options => $cgi->param('expanded_options'));
+ # Expanded search options in advanced search:
+ # use the global setting by default, but let the user override it
+ {
+ my $expanded = $cgi->param('expanded_options');
+ $expanded = C4::Context->preference("expandedSearchOption") || 0
+ if !defined($expanded) || $expanded !~ /^0|1$/;
+ $template->param( expanded_options => $expanded );
}
$template->param(virtualshelves => C4::Context->preference("virtualshelves"));
# $ %z3950p will be a hash ref if the indexes are present (advacned search), otherwise undef
my $z3950par;
my $indexes2z3950 = {
- kw=>'title', au=>'author', 'au,phr'=>'author', nb=>'isbn', ns=>'issn',
- 'lcn,phr'=>'dewey', su=>'subject', 'su,phr'=>'subject',
- ti=>'title', 'ti,phr'=>'title', se=>'title'
+ kw=>'title', au=>'author', 'au,phr'=>'author', nb=>'isbn', ns=>'issn',
+ 'lcn,phr'=>'dewey', su=>'subject', 'su,phr'=>'subject',
+ ti=>'title', 'ti,phr'=>'title', se=>'title'
};
for (my $ii = 0; $ii < @operands; ++$ii)
{
- my $name = $indexes2z3950->{$indexes[$ii]};
- if (defined $name && defined $operands[$ii])
- {
- $z3950par ||= {};
- $z3950par->{$name} = $operands[$ii] if !exists $z3950par->{$name};
- }
+ my $name = $indexes2z3950->{$indexes[$ii]};
+ if (defined $name && defined $operands[$ii])
+ {
+ $z3950par ||= {};
+ $z3950par->{$name} = $operands[$ii] if !exists $z3950par->{$name};
+ }
}
my @results;
## I. BUILD THE QUERY
-my $lang = C4::Templates::getlanguagecookie($cgi);
+my $lang = C4::Templates::getlanguage($cgi, 'intranet');
( $error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$stopwords_removed,$query_type) = buildQuery(\@operators,\@operands,\@indexes,\@limits,\@sort_by,$scan,$lang);
## parse the query_cgi string and put it into a form suitable for <input>s
my $input_name = $1;
my $input_value = $2;
push @query_inputs, { input_name => $input_name, input_value => $input_value };
- if ($input_name eq 'idx') {
- $scan_index_to_use = $input_value; # unless $scan_index_to_use;
- }
+ if ($input_name eq 'idx') {
+ $scan_index_to_use = $input_value; # unless $scan_index_to_use;
+ }
}
$template->param ( QUERY_INPUTS => \@query_inputs,
scan_index_to_use => $scan_index_to_use );
## If there's just one result, redirect to the detail page
if ($total == 1) {
my $biblionumber = $newresults[0]->{biblionumber};
- my $defaultview = C4::Context->preference('IntranetBiblioDefaultView');
- my $views = { C4::Search::enabled_staff_search_views };
+ my $defaultview = C4::Context->preference('IntranetBiblioDefaultView');
+ my $views = { C4::Search::enabled_staff_search_views };
if ($defaultview eq 'isbd' && $views->{can_view_ISBD}) {
print $cgi->redirect("/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=$biblionumber");
} elsif ($defaultview eq 'marc' && $views->{can_view_MARC}) {
$template->param(limit_desc => $limit_desc);
$template->param(offset => $offset);
$template->param(DisplayMultiPlaceHold => $DisplayMultiPlaceHold);
- $template->param (z3950_search_params => C4::Search::z3950_search_args($query_desc));
+ $template->param (z3950_search_params => C4::Search::z3950_search_args($query_desc));
if ($query_desc || $limit_desc) {
$template->param(searchdesc => 1);
}
$template->param(stopwords_removed => "@$stopwords_removed") if $stopwords_removed;
$template->param(results_per_page => $results_per_page);
+ # must define a value for size if not present in DB
+ # in order to avoid problems generated by the default size value in TT
+ foreach my $line (@newresults) {
+ if ( not exists $line->{'size'} ) { $line->{'size'} = "" }
+ }
$template->param(SEARCH_RESULTS => \@newresults);
-
## FIXME: add a global function for this, it's better than the current global one
## Build the page numbers on the bottom of the page
my @page_numbers;
# no hits
else {
$template->param(searchdesc => 1,query_desc => $query_desc,limit_desc => $limit_desc);
- $template->param (z3950_search_params => C4::Search::z3950_search_args($z3950par || $query_desc));
+ $template->param (z3950_search_params => C4::Search::z3950_search_args($z3950par || $query_desc));
}
} # end of the if local
total => $total,
opacfacets => 1,
facets_loop => $facets,
- displayFacetCount=> C4::Context->preference('displayFacetCount')||0,
+ displayFacetCount=> C4::Context->preference('displayFacetCount')||0,
scan => $scan,
search_error => $error,
);
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);
ModItem($item_changes, $biblionumber, $itemnumber);
-LostItem($itemnumber, 'MARK RETURNED') if $itemlost;
+LostItem($itemnumber, 'MARK RETURNED', 'CHARGE FEE') if $itemlost;
print $cgi->redirect("moredetail.pl?biblionumber=$biblionumber&itemnumber=$itemnumber#item$itemnumber");
=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;
=cut
-sub CreateKey(){
+sub CreateKey {
return int(rand(1000000));
}
=cut
-sub GetMandatoryFieldZ3950($){
+sub GetMandatoryFieldZ3950 {
my $frameworkcode = shift;
my @isbn = GetMarcFromKohaField('biblioitems.isbn',$frameworkcode);
my @title = GetMarcFromKohaField('biblio.title',$frameworkcode);
return $ind_value;
}
-sub build_tabs ($$$$$) {
+sub build_tabs {
my ( $template, $record, $dbh, $encoding,$input ) = @_;
# fill arrays
# SimpleSearch() give the results per page we want, so 0 offet here
my $total = @{$marcresults};
my @newresults = searchResults( 'intranet', $query, $total, $results_per_page, 0, 0, @{$marcresults} );
+ foreach my $line (@newresults) {
+ if ( not exists $line->{'size'} ) { $line->{'size'} = "" }
+ }
$template->param(
total => $total_hits,
query => $query,
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";
$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;
}
}
my @hostitemnumbers;
-my $analyticfield = '773';
-if ($marcflavour eq 'MARC21' || $marcflavour eq 'NORMARC') {
- $analyticfield = '773';
-} elsif ($marcflavour eq 'UNIMARC') {
- $analyticfield = '461';
-}
-foreach my $hostfield ($temp->field($analyticfield)){
- if ($hostfield->subfield('0')){
- my $hostrecord = GetMarcBiblio($hostfield->subfield('0'), 1);
- my ($itemfield, undef) = GetMarcFromKohaField( 'items.itemnumber', GetFrameworkCode($hostfield->subfield('0')) );
- foreach my $hostitem ($hostrecord->field($itemfield)){
- if ($hostitem->subfield('9') eq $hostfield->subfield('9')){
- push (@fields, $hostitem);
- push (@hostitemnumbers, $hostfield->subfield('9'));
+if ( C4::Context->preference('EasyAnalyticalRecords') ) {
+ my $analyticfield = '773';
+ if ($marcflavour eq 'MARC21' || $marcflavour eq 'NORMARC') {
+ $analyticfield = '773';
+ } elsif ($marcflavour eq 'UNIMARC') {
+ $analyticfield = '461';
+ }
+ foreach my $hostfield ($temp->field($analyticfield)){
+ if ($hostfield->subfield('0')){
+ my $hostrecord = GetMarcBiblio($hostfield->subfield('0'), 1);
+ my ($itemfield, undef) = GetMarcFromKohaField( 'items.itemnumber', GetFrameworkCode($hostfield->subfield('0')) );
+ foreach my $hostitem ($hostrecord->field($itemfield)){
+ if ($hostitem->subfield('9') eq $hostfield->subfield('9')){
+ push (@fields, $hostitem);
+ push (@hostitemnumbers, $hostfield->subfield('9'));
+ }
}
}
}
}
-
foreach my $field (@fields) {
next if ( $field->tag() < 10 );
}
}
$this_row{itemnumber} = $subfieldvalue if ($field->tag() eq $itemtagfield && $subfieldcode eq $itemtagsubfield);
- foreach my $hostitemnumber (@hostitemnumbers){
+
+ if ( C4::Context->preference('EasyAnalyticalRecords') ) {
+ foreach my $hostitemnumber (@hostitemnumbers){
if ($this_row{itemnumber} eq $hostitemnumber){
$this_row{hostitemflag} = 1;
$this_row{hostbiblionumber}= GetBiblionumberFromItemnumber($hostitemnumber);
last;
}
- }
+ }
-# my $countanalytics=GetAnalyticsCount($this_row{itemnumber});
-# if ($countanalytics > 0){
+# my $countanalytics=GetAnalyticsCount($this_row{itemnumber});
+# if ($countanalytics > 0){
# $this_row{countanalytics} = $countanalytics;
-# }
+# }
+ }
}
if (%this_row) {
=cut
-sub createKey(){
+sub createKey {
return int(rand(1000000));
}
# 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
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) {
# 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;
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'},
} 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'));
$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') )
{
$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");
}
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;
# 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 => '*' } );
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;
$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 );
}
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;
use C4::Branch; # GetBranches
use C4::Koha; # GetPrinter
use C4::Circulation;
+use C4::Overdues qw/CheckBorrowerDebarred/;
use C4::Members;
use C4::Biblio;
use C4::Reserves;
issuecount => $issue,
finetotal => $fines
);
+
+ my $debar = CheckBorrowerDebarred($borrowernumber);
+ if ($debar) {
+ $template->param( 'userdebarred' => 1 );
+ $template->param( 'debarredcomment' => $borrower->{debarredcomment} );
+ if ( $debar ne "9999-12-31" ) {
+ $template->param( 'userdebarreddate' => C4::Dates::format_date($debar) );
+ }
+ }
+
}
#
unless($issueconfirmed){
# Get the item title for more information
my $getmessageiteminfo = GetBiblioFromItemNumber(undef,$barcode);
+ $template->{VARS}->{'additional_materials'} = $getmessageiteminfo->{'materials'};
$template->param( itemhomebranch => $getmessageiteminfo->{'homebranch'} );
# pass needsconfirmation to template if issuing is possible and user hasn't yet confirmed.
$it->{'borrowernumber'},$it->{'itemnumber'}
);
$it->{"renew_error_${can_renew_error}"} = 1 if defined $can_renew_error;
- my ( $restype, $reserves ) = CheckReserves( $it->{'itemnumber'} );
+ my ( $restype, $reserves, undef ) = CheckReserves( $it->{'itemnumber'} );
$it->{'can_renew'} = $can_renew;
$it->{'can_confirm'} = !$can_renew && !$restype;
$it->{'renew_error'} = $restype;
{
push @values, $_->{'borrowernumber'};
$labels{ $_->{'borrowernumber'} } =
-"$_->{'surname'}, $_->{'firstname'} ... ($_->{'cardnumber'} - $_->{'categorycode'}) ... $_->{'address'} ";
+"$_->{'surname'}, $_->{'firstname'} ... ($_->{'cardnumber'} - $_->{'categorycode'} - $_->{'branchcode'}) ... $_->{'address'} ";
}
$CGIselectborrower = CGI::scrolling_list(
-name => 'borrowernumber',
my $address = $borrower->{'streetnumber'}.' '.$roadttype_hashref->{$borrower->{'streettype'}}.' '.$borrower->{'address'};
my $fast_cataloging = 0;
- if (defined getframeworkinfo('FA')) {
+if (defined getframeworkinfo('FA')) {
$fast_cataloging = 1
- }
+}
if (C4::Context->preference('ExtendedPatronAttributes')) {
my $attributes = GetBorrowerAttributes($borrowernumber);
printername => $printer,
firstname => $borrower->{'firstname'},
surname => $borrower->{'surname'},
+ showname => $borrower->{'showname'},
+ category_type => $borrower->{'category_type'},
dateexpiry => format_date($newexpiry),
expiry => format_date($borrower->{'dateexpiry'}),
categorycode => $borrower->{'categorycode'},
country => $borrower->{'country'},
phone => $borrower->{'phone'} || $borrower->{'mobile'},
cardnumber => $borrower->{'cardnumber'},
+ othernames => $borrower->{'othernames'},
amountold => $amountold,
barcode => $barcode,
stickyduedate => $stickyduedate,
circview => 1,
soundon => C4::Context->preference("SoundOn"),
fast_cataloging => $fast_cataloging,
+ CircAutoPrintQuickSlip => C4::Context->preference("CircAutoPrintQuickSlip"),
);
# save stickyduedate to session
my $strsth="SELECT date_due,
borrowers.title as borrowertitle,
- concat(surname,' ', firstname) as borrower,
+ borrowers.surname,
+ borrowers.firstname,
borrowers.streetnumber,
borrowers.streettype,
borrowers.address,
borrowers.phone,
borrowers.email,
issues.itemnumber,
+ issues.issuedate,
items.barcode,
biblio.title,
biblio.author,
$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);
borrowernumber => $data->{borrowernumber},
barcode => $data->{barcode},
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},
# build header ...
my @keys = qw /duedate title author borrowertitle name phone barcode email address address2 zipcode city country
- branchcode itemcallnumber biblionumber borrowernumber itemnum replacementprice streetnumber streettype/;
+ branchcode itemcallnumber biblionumber borrowernumber itemnum issuedate replacementprice streetnumber streettype/;
my $csv = Text::CSV_XS->new();
$csv->combine(@keys);
push @lines, $csv->string();
itemtype => $biblio->{'itemtype'},
ccode => $biblio->{'ccode'},
itembiblionumber => $biblio->{'biblionumber'},
+ additional_materials => $biblio->{'materials'}
);
my %input = (
}
elsif ( $code eq 'Wrongbranch' ) {
}
-
+ elsif ( $code eq 'Debarred' ) {
+ $err{debarred} = format_date( $messages->{'Debarred'} );
+ $err{debarcardnumber} = $borrower->{cardnumber};
+ $err{debarborrowernumber} = $borrower->{borrowernumber};
+ $err{debarname} = "$borrower->{firstname} $borrower->{surname}";
+ }
else {
die "Unknown error code $code"; # note we need all the (empty) elsif's above, or we die.
# This forces the issue of staying in sync w/ Circulation.pm
my $buildresult;
my $distribution='squeeze-dev';
my $git_checks='all';
-my $version='3.5-1~git';
+my $version='3.7-1~git';
my $auto_version=1;
my $need_help;
my $debug;
+koha (3.4.5-1) squeeze; urgency=low
+
+ * New upstream release (3.04.05)
+
+ -- Robin Sheat <robin@catalyst.net.nz> Wed, 28 Sep 2011 17:27:50 +1300
+
+koha (3.4.4-1) squeeze; urgency=low
+
+ * New upstream release (3.04.04)
+
+ -- Robin Sheat <robin@catalyst.net.nz> Mon, 29 Aug 2011 18:23:45 +1200
+
+koha (3.4.3-1) squeeze; urgency=low
+
+ * New upstream release (3.04.03)
+
+ -- Robin Sheat <robin@catalyst.net.nz> Wed, 27 Jul 2011 13:42:31 +1200
+
+koha (3.4.2-1) squeeze; urgency=low
+
+ * New major version (3.04.02)
+ * Added the koha-upgrade-to-3.4 script
+
+ -- Robin Sheat <robin@catalyst.net.nz> Fri, 15 Jul 2011 15:02:54 +1200
+
koha (3.2.9-1) squeeze; urgency=high
* New upstream release (3.02.09)
--- /dev/null
+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.
+
+
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-common</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-common">
+
+ <refmeta>
+ <refentrytitle>koha-common</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-common</refname>
+ <refpurpose>Create and manage Koha instances.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsect1><title>Description</title>
+ <para>koha-common provides a number of scripts for creating and administering Koha instances. It is meant for sites that provide Koha hosting, and serves several sites from the same host.</para>
+ </refsect1>
+
+ <refsect1><title>Commands</title>
+ <para>The following commands are available after when koha-common has been installed. See individual manual pages for each command for optios and other details related to their usage.</para>
+
+ <refsect2><title>Administer instances</title>
+ <variablelist>
+
+ <varlistentry>
+ <term><option>koha-disable</option></term>
+ <listitem>
+ <para>Disable a Koha instance.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>koha-enable</option></term>
+ <listitem>
+ <para>Enable a Koha instance. New instances are enabled by default. You only need this command if you have previously disabled a site with koha-disable.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>koha-restore</option></term>
+ <listitem>
+ <para>Restore a Koha site from a dump (from koha-dump).</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>koha-dump</option></term>
+ <listitem>
+ <para>Dump all contents and configs for a Koha site.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>koha-remove</option></term>
+ <listitem>
+ <para>Remove a Koha instance.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect2>
+
+ <refsect2><title>Database-related</title>
+ <variablelist>
+
+ <varlistentry>
+ <term><option>koha-dump-defaults</option></term>
+ <listitem>
+ <para>Create default contents from an existing Koha site.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>koha-upgrade-schema</option></term>
+ <listitem>
+ <para>Upgrade the DB schema for Koha instances. Done automatically on package upgrades.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>koha-reset-passwd</option></term>
+ <listitem>
+ <para>Reset password for a user in a Koha instance.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>koha-mysql</option></term>
+ <listitem>
+ <para>Provide an interactive mysql shell set up for the specified koha instance.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect2>
+
+ <refsect2><title>Zebra-related</title>
+ <variablelist>
+
+ <varlistentry>
+ <term><option>koha-start-zebra</option></term>
+ <listitem>
+ <para>Start Zebra for named Koha instances.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>koha-restart-zebra</option></term>
+ <listitem>
+ <para>Restart Zebra for named Koha instances.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>koha-rebuild-zebra</option></term>
+ <listitem>
+ <para>Rebuild the Zebra database for a Koha instance.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>koha-stop-zebra</option></term>
+ <listitem>
+ <para>Stop Zebra for named Koha instances.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect2>
+
+ <refsect2><title>E-mail</title>
+ <variablelist>
+
+ <varlistentry>
+ <term><option>koha-email-enable</option></term>
+ <listitem>
+ <para>Turn on the email for a Koha instance.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>koha-email-disable</option></term>
+ <listitem>
+ <para>Turn off the email for a Koha instance.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect2>
+
+ <refsect2><title>Misc</title>
+ <variablelist>
+
+ <varlistentry>
+ <term><option>koha-upgrade-to-3.4</option></term>
+ <listitem>
+ <para>Performs the necessary changes to upgrade a Koha system from 3.2 to 3.4. If no instance names are provided, this will run it on all of them.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect2>
+
+ <refsect2><title>Utilities</title>
+ <variablelist>
+
+ <varlistentry>
+ <term><option>koha-create-dirs</option></term>
+ <listitem>
+ <para>Create dirs for a Koha instance.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>koha-list</option></term>
+ <listitem>
+ <para>Lists Koha instances, optionally only those that are enabled or have email turned on.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>koha-foreach</option></term>
+ <listitem>
+ <para>Run a command for each Koha instance. Takes the same arguments as koha-list.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect2>
+ </refsect1>
+
+ <refsect1><title>Bugs</title>
+ <para>The scripts are a bit fragile. If something goes wrong, they do not clean up after themselves.</para>
+ <para>Bugs can be reported here: <uri>http://bugs.koha-community.org/bugzilla3/</uri></para>
+ </refsect1>
+
+ <refsect1><title>About Koha</title>
+ <para>Koha is the first free software library automation package. In use worldwide, its development is steered by a growing community of users collaborating to achieve their technology goals. Koha’s feature set continues to evolve and expand to meet the needs of its user base.</para>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-create-dirs</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-create-dirs">
+
+ <refmeta>
+ <refentrytitle>koha-create-dirs</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-create-dirs</refname>
+ <refpurpose>Create dirs for a Koha instance.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-create-dirs</command> <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Create dirs for a Koha instance.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-foreach(8)</command></member>
+ <member><command>koha-list(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-disable</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-disable">
+
+ <refmeta>
+ <refentrytitle>koha-disable</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-disable</refname>
+ <refpurpose>Disable a Koha instance.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-disable</command> <arg choice="req" rep="norepeat"><replaceable>instancename</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Disable a Koha instance.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-dump(8)</command></member>
+ <member><command>koha-enable(8)</command></member>
+ <member><command>koha-remove(8)</command></member>
+ <member><command>koha-restore(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-dump-defaults</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-dump-defaults">
+
+ <refmeta>
+ <refentrytitle>koha-dump-defaults</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-dump-defaults</refname>
+ <refpurpose>Create default contents from an existing Koha site.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-dump-defaults</command> <arg choice="req" rep="norepeat"><replaceable>instancename</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Create default contents from an existing Koha site.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-mysql(8)</command></member>
+ <member><command>koha-reset-passwd(8)</command></member>
+ <member><command>koha-upgrade-schema(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-dump</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-dump">
+
+ <refmeta>
+ <refentrytitle>koha-dump</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-dump</refname>
+ <refpurpose>Dump all contents and configs for a Koha site.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-dump</command> <arg choice="req" rep="norepeat"><replaceable>instancename</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Dump all contents and configs for a Koha site.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-disable(8)</command></member>
+ <member><command>koha-enable(8)</command></member>
+ <member><command>koha-remove(8)</command></member>
+ <member><command>koha-restore(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-email-disable</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-email-disable">
+
+ <refmeta>
+ <refentrytitle>koha-email-disable</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-email-disable</refname>
+ <refpurpose>Turn off the email for a Koha instance.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-email-disable</command> <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Turn off the email for a Koha instance.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-email-enable(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-email-enable</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-email-enable">
+
+ <refmeta>
+ <refentrytitle>koha-email-enable</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-email-enable</refname>
+ <refpurpose>Turn on the email for a Koha instance.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-email-enable</command> <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Turn on the email for a Koha instance.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-email-disable(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-enable</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-enable">
+
+ <refmeta>
+ <refentrytitle>koha-enable</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-enable</refname>
+ <refpurpose>Enable a Koha instance. New instances are enabled by default. You only need this command if you have previously disabled a site with koha-disable.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-enable</command> <arg choice="req" rep="norepeat"><replaceable>instancename</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Enable a Koha instance. New instances are enabled by default. You only need this command if you have previously disabled a site with koha-disable.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-disable(8)</command></member>
+ <member><command>koha-dump(8)</command></member>
+ <member><command>koha-remove(8)</command></member>
+ <member><command>koha-restore(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-foreach</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-foreach">
+
+ <refmeta>
+ <refentrytitle>koha-foreach</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-foreach</refname>
+ <refpurpose>Run a command for each Koha instance. Takes the same arguments as koha-list.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-list</command> <arg><option>--enabled</option></arg> <arg><option>--email</option>|<option>--noemail</option></arg> <arg><option>command</option></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Run a command for each Koha instance. Takes the same arguments as koha-list.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-create-dirs(8)</command></member>
+ <member><command>koha-list(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-list</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-list">
+
+ <refmeta>
+ <refentrytitle>koha-list</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-list</refname>
+ <refpurpose>Lists Koha instances, optionally only those that are enabled or have email turned on.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-list</command> <arg><option>--enabled</option></arg> <arg><option>--email</option></arg> <arg><option>-h</option></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Options</title>
+ <para>The filtering options can be combined, and you probably want to do this (except --email and --noemail, that's just silly.)</para>
+ <variablelist>
+ <varlistentry>
+ <term><option>--enabled</option></term>
+ <listitem>
+ <para>Only show instances that are enabled.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>--email</option></term>
+ <listitem>
+ <para>Only show instances that have email enabled.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>--noemail</option></term>
+ <listitem>
+ <para>Only show instances that do not have email enabled.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-h</option></term>
+ <listitem>
+ <para>This help.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+
+ <refsect1><title>Description</title>
+ <para>Lists Koha instances, optionally only those that are enabled or have email turned on.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-create-dirs(8)</command></member>
+ <member><command>koha-foreach(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-mysql</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-mysql">
+
+ <refmeta>
+ <refentrytitle>koha-mysql</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-mysql</refname>
+ <refpurpose>Provide an interactive mysql shell set up for the specified koha instance.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-mysql</command> <arg choice="req" rep="norepeat"><replaceable>instancename</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Provide an interactive mysql shell set up for the specified koha instance.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-dump-defaults(8)</command></member>
+ <member><command>koha-reset-passwd(8)</command></member>
+ <member><command>koha-upgrade-schema(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-rebuild-zebra</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-rebuild-zebra">
+
+ <refmeta>
+ <refentrytitle>koha-rebuild-zebra</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-rebuild-zebra</refname>
+ <refpurpose>Rebuild the Zebra database for a Koha instance.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-rebuild-zebra</command> <arg><option>-u</option>|<option>--usmarc</option></arg> <arg><option>-f</option>|<option>--full</option></arg> <arg><option>...</option></arg> <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Options</title>
+ <variablelist>
+ <varlistentry>
+ <term><option>-u, --usmarc</option></term>
+ <listitem>
+ <para>Runs the process as USMARC rather than the default of MARCXML.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-f, --full</option></term>
+ <listitem>
+ <para>Does a reindex of the whole collection.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-...</option></term>
+ <listitem>
+ <para>Anything else is passed directly to rebuild_zebra. This is useful in particular for -v.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+
+ <refsect1><title>Description</title>
+ <para>Rebuild the Zebra database for a Koha instance.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-restart-zebra(8)</command></member>
+ <member><command>koha-start-zebra(8)</command></member>
+ <member><command>koha-stop-zebra(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
<refnamediv>
<refname>koha-remove</refname>
- <refpurpose>Remove one or more Koha instance(s).</refpurpose>
+ <refpurpose>Remove a Koha instance.</refpurpose>
<refclass>UNIX/Linux</refclass>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
- <command>koha-remove</command>
- <arg choice="req" rep="repeat">instancename</arg>
+ <command>koha-remove</command> <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1><title>Description</title>
- <para>Remove one or more Koha instance(s). This removes all files associated with a Koha instance.</para>
+ <para>Remove a Koha instance.</para>
</refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-disable(8)</command></member>
+ <member><command>koha-dump(8)</command></member>
+ <member><command>koha-enable(8)</command></member>
+ <member><command>koha-restore(8)</command></member>
+ </simplelist>
+ </refsect1>
+
</refentry>
</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-reset-passwd</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-reset-passwd">
+
+ <refmeta>
+ <refentrytitle>koha-reset-passwd</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-reset-passwd</refname>
+ <refpurpose>Reset password for a user in a Koha instance.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-reset-passwd</command> <arg choice="req" rep="norepeat"><replaceable>instancename</replaceable></arg> <arg choice="req" rep="norepeat">username</arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Reset password for a user in a Koha instance.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-dump-defaults(8)</command></member>
+ <member><command>koha-mysql(8)</command></member>
+ <member><command>koha-upgrade-schema(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-restart-zebra</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-restart-zebra">
+
+ <refmeta>
+ <refentrytitle>koha-restart-zebra</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-restart-zebra</refname>
+ <refpurpose>Restart Zebra for named Koha instances.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-restart-zebra</command> <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Restart Zebra for named Koha instances.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-rebuild-zebra(8)</command></member>
+ <member><command>koha-start-zebra(8)</command></member>
+ <member><command>koha-stop-zebra(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-restore</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-restore">
+
+ <refmeta>
+ <refentrytitle>koha-restore</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-restore</refname>
+ <refpurpose>Restore a Koha site from a dump (from koha-dump).</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-restore</command> <arg choice="req"><option>sqldump</option></arg> <arg choice="req"><option>configdump</option></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Restore a Koha site from a dump (from koha-dump).</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-disable(8)</command></member>
+ <member><command>koha-dump(8)</command></member>
+ <member><command>koha-enable(8)</command></member>
+ <member><command>koha-remove(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-start-zebra</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-start-zebra">
+
+ <refmeta>
+ <refentrytitle>koha-start-zebra</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-start-zebra</refname>
+ <refpurpose>Start Zebra for named Koha instances.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-start-zebra</command> <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Start Zebra for named Koha instances.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-rebuild-zebra(8)</command></member>
+ <member><command>koha-restart-zebra(8)</command></member>
+ <member><command>koha-stop-zebra(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-stop-zebra</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-stop-zebra">
+
+ <refmeta>
+ <refentrytitle>koha-stop-zebra</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-stop-zebra</refname>
+ <refpurpose>Stop Zebra for named Koha instances.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-stop-zebra</command> <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Stop Zebra for named Koha instances.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-rebuild-zebra(8)</command></member>
+ <member><command>koha-restart-zebra(8)</command></member>
+ <member><command>koha-start-zebra(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-upgrade-schema</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-upgrade-schema">
+
+ <refmeta>
+ <refentrytitle>koha-upgrade-schema</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-upgrade-schema</refname>
+ <refpurpose>Upgrade the DB schema for Koha instances. Done automatically on package upgrades.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-upgrade-schema</command> <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Upgrade the DB schema for Koha instances. Done automatically on package upgrades.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ <member><command>koha-dump-defaults(8)</command></member>
+ <member><command>koha-mysql(8)</command></member>
+ <member><command>koha-reset-passwd(8)</command></member>
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+<article xmlns='http://docbook.org/ns/docbook'>
+<title>koha-upgrade-to-3.4</title>
+<info>
+<productname>Koha</productname> is the first free software library automation package.
+<author>
+ <orgname>The Koha Communnity</orgname>
+ <uri>http://koha-community.org/</uri>
+</author>
+</info>
+
+<refentry xml:id="koha-upgrade-to-3.4">
+
+ <refmeta>
+ <refentrytitle>koha-upgrade-to-3.4</refentrytitle>
+ <manvolnum>8</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>koha-upgrade-to-3.4</refname>
+ <refpurpose>Performs the necessary changes to upgrade a Koha system from 3.2 to 3.4. If no instance names are provided, this will run it on all of them.</refpurpose>
+ <refclass>UNIX/Linux</refclass>
+ </refnamediv>
+
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>koha-upgrade-to-3.4</command> <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1><title>Description</title>
+ <para>Performs the necessary changes to upgrade a Koha system from 3.2 to 3.4. If no instance names are provided, this will run it on all of them.</para>
+ </refsect1>
+
+ <refsect1><title>See also</title>
+ <simplelist type="inline">
+ </simplelist>
+ </refsect1>
+
+</refentry>
+
+</article>
--- /dev/null
+debian/docs/LEEME.Debian
userdir "$name" "/etc/koha/sites/$name"
userdir "$name" "/var/lib/koha/$name"
userdir "$name" "/var/lib/koha/$name/authorities"
+ userdir "$name" "/var/lib/koha/$name/authorities/key"
+ userdir "$name" "/var/lib/koha/$name/authorities/register"
+ userdir "$name" "/var/lib/koha/$name/authorities/shadow"
+ userdir "$name" "/var/lib/koha/$name/authorities/tmp"
userdir "$name" "/var/lib/koha/$name/biblios"
userdir "$name" "/var/lib/koha/$name/biblios/key"
userdir "$name" "/var/lib/koha/$name/biblios/register"
userdir "$name" "/var/lib/koha/$name/biblios/shadow"
+ userdir "$name" "/var/lib/koha/$name/biblios/tmp"
userdir "$name" "/var/lock/koha/$name"
userdir "$name" "/var/lock/koha/$name/authorities"
userdir "$name" "/var/lock/koha/$name/biblios"
eof
koha-stop-zebra $name
- rm "/etc/apache2/sites-available/$name"
- rm "/etc/koha/sites/$name/koha-conf.xml"
- rm "/etc/koha/sites/$name/zebra-biblios.cfg"
- rm "/etc/koha/sites/$name/zebra-authorities.cfg"
- rm "/etc/koha/sites/$name/zebra-authorities-dom.cfg"
- rm "/etc/koha/sites/$name/zebra.passwd"
- rmdir "/etc/koha/sites/$name"
- rm -r "/var/lock/koha/$name"
- rm -r "/var/log/koha/$name"
- rm -r "/var/run/koha/$name"
- deluser --quiet "$name-koha"
+ [ -f "/etc/apache2/sites-available/$name" ] && \
+ rm "/etc/apache2/sites-available/$name"
+ [ -f "/etc/koha/sites/$name/koha-conf.xml" ] && \
+ rm "/etc/koha/sites/$name/koha-conf.xml"
+ [ -f "/etc/koha/sites/$name/zebra-biblios.cfg" ] && \
+ rm "/etc/koha/sites/$name/zebra-biblios.cfg"
+ [ -f "/etc/koha/sites/$name/zebra-authorities.cfg" ] && \
+ rm "/etc/koha/sites/$name/zebra-authorities.cfg"
+ [ -f "/etc/koha/sites/$name/zebra-authorities-dom.cfg" ] && \
+ rm "/etc/koha/sites/$name/zebra-authorities-dom.cfg"
+ [ -f "/etc/koha/sites/$name/zebra.passwd" ] && \
+ rm "/etc/koha/sites/$name/zebra.passwd"
+ [ -d "/etc/koha/sites/$name" ] && \
+ rmdir "/etc/koha/sites/$name"
+ [ -d "/var/lock/koha/$name" ] && \
+ rm -r "/var/lock/koha/$name"
+ [ -d "/var/log/koha/$name" ] && \
+ rm -r "/var/log/koha/$name"
+ [ -d "/var/run/koha/$name" ] && \
+ rm -r "/var/run/koha/$name"
+ getent passwd "$name-koha" > /dev/null && deluser --quiet "$name-koha"
a2dissite "$name"
done
sed -n '/^etc\/koha\/sites\/\([^/]*\)\/$/s//\1/p')
username="$name-koha"
adduser --no-create-home --disabled-login --gecos "Koha instance $username" \
- --quiet "$username"
+ --home "/var/lib/koha/$name" --quiet "$username"
# Create dirs. Some of them will be in the tarball, but not all, e.g.,
<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>
</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>
</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>
<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>
<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>
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 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
-October 30 2010 Brian Engard becomes the 117th committer to have a patch accepted
-October 30 2010 Daniel Grobani becomes the 118th committer to have a patch accepted
-October 31 2010 Nate Curulla becomes the 119th committer to have a patch accepted
+October 30 2010 Brian Engard becomes the 118th committer to have a patch accepted
+October 30 2010 Daniel Grobani becomes the 119th committer to have a patch accepted
+October 31 2010 Nate Curulla becomes the 120th committer to have a patch accepted
November 10 2010 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_10_November_2010
-November 17 2010 Tomás Cohen Arazi becomes the 120th committer to have a patch accepted
+November 17 2010 Tomás Cohen Arazi becomes the 121th committer to have a patch accepted
November 20 2010 Koha 3.2.1 released
December 8 2010 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_8_December_2010
-December 15 2010 Serhij Dubyk becomes the 121st developer to have a patch pushed
-December 16 2010 Christophe Croullebois becomes the 122nd developer to have a patch pushed
-December 19 2010 Edward Allen becomes the 123rd developer to have a patch pushed
-December 20 2010 Dobrica Pavlinusic becomes the 124th developer to have a patch pushed
+December 15 2010 Serhij Dubyk becomes the 122st developer to have a patch pushed
+December 16 2010 Christophe Croullebois becomes the 123nd developer to have a patch pushed
+December 19 2010 Edward Allen becomes the 124rd developer to have a patch pushed
+December 20 2010 Dobrica Pavlinusic becomes the 125th developer to have a patch pushed
December 22 2010 Koha 3.2.2 released
January 5 2011 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_5_January_2011
-January 12 2011 Brice Sanchez becomes the 125th developer to have a patch pushed
-January 17 2011 Zach Sim becomes the 126th developer to have a patch pushed
-January 17 2011 Claudia Forsman becomes the 127th developer to have a patch pushed
-January 17 2011 John Copeland becomes the 128th developer to have a patch pushed
-January 17 2011 Stephanie Hogan becomes the 129th developer to have a patch pushed
+January 12 2011 Brice Sanchez becomes the 126th developer to have a patch pushed
+January 17 2011 Zach Sim becomes the 127th developer to have a patch pushed
+January 17 2011 Claudia Forsman becomes the 128th developer to have a patch pushed
+January 17 2011 John Copeland becomes the 129th developer to have a patch pushed
+January 17 2011 Stephanie Hogan becomes the 130th developer to have a patch pushed
January 22 2011 Koha 3.2.3 released
-January 26 2011 Jerome Charaoui becomes the 130th developer to have a patch pushed
-January 31 2011 Reed Wade becomes the 131sth developer to have a patch pushed
+January 26 2011 Jerome Charaoui becomes the 131th developer to have a patch pushed
+January 31 2011 Reed Wade becomes the 132sth developer to have a patch pushed
February 1 2011 #koha moves from irc.katipo.co.nz to irc.oftc.net
February 2 2011 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_2_February_2011
-February 3 2011 Frédérick Capovilla becomes the 132nd developer to have a patch pushed
-February 4 2011 Christopher Hall becomes the 133rd developer to have a patch pushed
+February 3 2011 Frédérick Capovilla becomes the 133nd developer to have a patch pushed
+February 4 2011 Christopher Hall becomes the 134rd developer to have a patch pushed
February 22 2011 Koha 3.2.4 released
February 24 2011 Koha 3.2.5 released
March 2 2011 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_2_March_2011
-March 13 2011 Janusz Kaczmarek becomes the 134th developer to have a patch pushed
-March 13 2011 Salvador Zaragoza Rubio becomes the 135th developer to have a patch pushed
-March 17 2011 Julian Maurice becomes the 136th developer to have a patch pushed
-March 17 2011 Sophie Meynieux becomes the 137th developer to have a patch pushed
+March 13 2011 Janusz Kaczmarek becomes the 135th developer to have a patch pushed
+March 13 2011 Salvador Zaragoza Rubio becomes the 136th developer to have a patch pushed
+March 17 2011 Julian Maurice becomes the 137th developer to have a patch pushed
+March 17 2011 Sophie Meynieux becomes the 138th developer to have a patch pushed
March 22 2011 Koha 3.2.6 released
-March 31 2011 Doug Dearden becomes the 138th developer to have a patch pushed
+March 31 2011 Doug Dearden becomes the 139th developer to have a patch pushed
April 6 2011 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_6_April_2011
-April 8 2011 Mark Gavillet becomes the 139th developer to have a patch pushed
-April 9 2011 Frederic Durand becomes the 140th developer to have a patch pushed
-April 9 2011 Jonathan Druart becomes the 141st developer to have a patch pushed
+April 8 2011 Mark Gavillet becomes the 140th developer to have a patch pushed
+April 9 2011 Frederic Durand becomes the 141th developer to have a patch pushed
+April 9 2011 Jonathan Druart becomes the 142st developer to have a patch pushed
April 16 2011 Koha 3.2.7 released releases
-April 20 2011 Fernando Canizo becomes the 142nd developer to have a patch pushed
+April 20 2011 Fernando Canizo becomes the 143nd developer to have a patch pushed
April 22 2011 Koha 3.4.0 released releases
May 11 2011 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_11_May_2011
May 15 2011 Koha 3.2.8 released releases
May 15 2011 Koha 3.2.9 released releases
May 22 2011 Koha 3.4.1 released releases
-June 1 2011 Fridolyn Somers becomes the 143rd developer to have a patch pushed
-June 3 2011 Elliott Davis becomes the 144th developer to have a patch pushed
+June 1 2011 Fridolyn Somers becomes the 144rd developer to have a patch pushed
+June 3 2011 Elliott Davis becomes the 145th developer to have a patch pushed
June 14 2011 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_14_June_2011
June 15 2011 First ever global sign off day
-June 17 2011 Jeremy Crabtree becomes the 145th developer to have a patch pushed
+June 17 2011 Jeremy Crabtree becomes the 146th developer to have a patch pushed
June 19 2011 Koha 3.2.10 released releases
June 28 2011 Koha 3.4.2 released releases
June 28 2011 Spanish speaking community meeting http://wiki.koha-community.org/wiki/Spanish_speaking_community_creation_IRC_Meeting,_28_June_2011
June 29 2011 Kohacon11 volunteers meeting http://wiki.koha-community.org/wiki/KohaCon11_Volunteers#Next_Meeting_:_Wednesday_June_29_6.00_UTC
-July 5 2011 Francois Marier becomes the 146th developer to have a patch pushed
+July 5 2011 Francois Marier becomes the 147th developer to have a patch pushed
July 6 2011 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_6_July_2011
July 25 2011 Koha 3.4.3 released releases
-July 28 2011 John Seymour becomes the 147th developer to have a patch pushed
+July 28 2011 John Seymour becomes the 148th developer to have a patch pushed
August 2 2011 General IRC meeting http://wiki.koha-community.org/wiki/General_IRC_Meeting,_2_August_2011
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 148th developer to have a patch pushed
-August 11 2011 Nuño López Ansótegui becomes the 149th developer to have a patch pushed
-August 22 2011 Koha 3.4.4 released
-August 26 2011 Ward van Wanrooij becomes the 150th developer to have a patch pushed
-August 27 2011 Ulrich Kleiber becomes the 151st developer to have a patch pushed
-September 1 2011 Maxime Pelletier becomes the 152nd developer to have a patch pushed
-September 2 2011 Steven Callender becomes the 153rd developer to have a patch pushed
-September 6 2011 Brett Wilkins becomes the 154th developer to have a patch pushed
-September 11 2011 Meenakshi.R becomes the 155th developer to have a patch pushed
-September 23 2011 Joy Nelson becomes the 156th developer to have a patch pushed
-September 24 2011 Larry Baerveldt becomes the 157th developer to have a patch pushed
-September 27 2011 Koha 3.4.5 released
-September 28 2011 Thatcher Rea becomes the 158th developer to have a patch pushed
+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 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
+September 2 2011 Steven Callender becomes the 154rd developer to have a patch pushed
+September 6 2011 Brett Wilkins becomes the 155th developer to have a patch pushed
+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 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 159th developer to have a patch pushed
\ No newline at end of file
+October 15 2011 Greg Barniskis becomes the 160th 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
+December 15 2011 Duncan Tyler becomes the 166th developer to have a patch pushed
+December 15 2011 Marc Balmer becomes the 167th developer to have a patch pushed
+
# TransferLog __LOG_DIR__/koha-opac-access_log
SetEnv KOHA_CONF "__KOHA_CONF_DIR__/koha-conf.xml"
SetEnv PERL5LIB "__PERL_MODULE_DIR__"
+ SetEnv MEMCACHED_SERVERS "__MEMCACHED_SERVERS__"
+ SetEnv MEMCACHED_NAMESPACE "__MEMCACHED_NAMESPACE__"
<IfModule mod_gzip.c>
mod_gzip_on yes
# TransferLog __LOG_DIR__/koha-access_log
SetEnv KOHA_CONF "__KOHA_CONF_DIR__/koha-conf.xml"
SetEnv PERL5LIB "__PERL_MODULE_DIR__"
+ SetEnv MEMCACHED_SERVERS "__MEMCACHED_SERVERS__"
+ SetEnv MEMCACHED_NAMESPACE "__MEMCACHED_NAMESPACE__"
Options +FollowSymLinks
ErrorDocument 400 /cgi-bin/koha/errors/400.pl
melm 785 Title,Title:p,Title-later,Related-periodical
melm 787$w Record-control-number
-melm 800$a Name-and-title
+melm 800$a Name-and-title,Title-series:w,Title-series:p
#melm 800$t author,Author-title,Name-and-title,Title,Title-series
-melm 800$t Author-title,Name-and-title,Title,Title-series
+melm 800$t Author-title,Name-and-title,Title,Title-series:w,Title-series:p
melm 800$9 Koha-Auth-Number
melm 800$w Record-control-number
melm 800 Author,Author-name-personal,Name,Personal-name
-melm 810$a Name-and-title
-melm 810$t Author-title,Name-and-title,Title,Title-series
+melm 810$a Name-and-title,Title-series:w,Title-series:p
+melm 810$t Author-title,Name-and-title,Title,Title-series:w,Title-series:p
melm 810$w Record-control-number
melm 810$9 Koha-Auth-Number
melm 810 Author,Corporate-name,Author-name-corporate,Name
-melm 811$a Name-and-title
+melm 811$a Name-and-title,Title-series:w,Title-series:p
melm 811$9 Koha-Auth-Number
#melm 811$t author,Author-title,Name-and-title,Title,Title-series
-melm 811$t Author-title,Name-and-title,Title,Title-series
+melm 811$t Author-title,Name-and-title,Title,Title-series:w,Title-series:p
melm 811$w Record-control-number
melm 811 Author,Author-name-corporate,Name,Conference-name
melm 830$w Record-control-number
melm 830$9 Koha-Auth-Number
-melm 830 Title,Title-series
-melm 840 Title,Title-series
+melm 830 Title,Title-series:w,Title-series:p
+melm 840 Title,Title-series:w,Title-series:p
###############################
# Koha Local-Use Biblio Indexes
memMax: 50M
rank:rank-1
truncmax: 1000000000
+
+# Specifies the maximum number of records that will be sorted in a result set.
+# If the result set contains more than that limit, the records after the limit
+# will not be sorted. If omitted, the default value is 1,000.
+sortmax: 1000
$refer = $query->referer() if !$refer || $refer eq 'undefined';
$refer =~ /koha\/(.*)\.pl/;
-my $from = "help/$1.tt";
+my $file = $1;
+$file =~ s/[^a-zA-Z0-9_\-\/]*//g;
+my $from = "help/$file.tt";
my $template = C4::Templates::gettemplate($from, 'intranet', $query);
$template->param( referer => $refer );
$tmplbase=~ s/\.tmpl$/.tt/;
my $filename = "$path/modules/" . $tmplbase;
my $interface = 'intranet';
- my $template = C4::Templates->new( $interface, $filename, $tmplbase);
+ my $template = C4::Templates->new( $interface, $filename, $tmplbase, $query);
my ( $user, $cookie, $sessionID, $flags ) = checkauth(
$in->{'query'},
}
sub _get_template_language {
- #verify if opac language exists in staff (bug 5660)
- #conditions are 1) dir exists and 2) enabled in prefs
- my ($opaclang)= @_;
- return 'en' unless $opaclang;
- my $path= C4::Context->config('intrahtdocs')."/prog/$opaclang";
- -d $path ? $opaclang : 'en';
+
+ #verify if opac language exists in staff (bug 5660)
+ #conditions are 1) dir exists and 2) enabled in prefs
+ my ($opaclang) = @_;
+ return 'en' unless $opaclang;
+ $opaclang =~ s/[^a-zA-Z_-]*//g;
+ my $path = C4::Context->config('intrahtdocs') . "/prog/$opaclang";
+ -d $path ? $opaclang : 'en';
}
=item checkauth
C4::Context->_unset_userenv($sessionID);
$sessionID = undef;
$userid = undef;
- open L, ">>/tmp/sessionlog";
- my $time = localtime( time() );
- printf L "%20s from %16s logged out at %30s (manually).\n", $userid,
- $ip, $time;
- close L;
+ # Commented out due to its lack of usefulness
+ # open L, ">>/tmp/sessionlog";
+ # my $time = localtime( time() );
+ # printf L "%20s from %16s logged out at %30s (manually).\n", $userid,
+ # $ip, $time;
+ # close L;
}
}
unless ($userid) {
my ( $return, $cardnumber ) = checkpw( $userid, $password );
if ($return) {
$loggedin = 1;
- open L, ">>/tmp/sessionlog";
- my $time = localtime( time() );
- printf L "%20s from %16s logged in at %30s.\n", $userid,
- $ENV{'REMOTE_ADDR'}, $time;
- close L;
+ # open L, ">>/tmp/sessionlog";
+ # my $time = localtime( time() );
+ # printf L "%20s from %16s logged in at %30s.\n", $userid,
+ # $ENV{'REMOTE_ADDR'}, $time;
+ # close L;
$cookie = $query->cookie( CGISESSID => $sessionID );
if ( $return == 2 ) {
my $filename = "$path/modules/$template_name";
$filename =~ s/\.tmpl$/.tt/;
my $interface = 'intranet';
- my $template = C4::Templates->new( $interface, $filename);
+ my $template = C4::Templates->new( $interface, $filename, '', $query);
$template->param(
INPUTS => \@inputs,
insert into `message_attributes`
(`message_attribute_id`, message_name, `takes_days`)
values
-(1, 'Item_DUE', 0),
+(1, 'Item_Due', 0),
(2, 'Advance_Notice', 1),
(4, 'Hold_Filled', 0),
(5, 'Item_Check_in', 0),
-- with Koha; if not, write to the Free Software Foundation, Inc.,
-- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+UPDATE systempreferences SET value = 'DE' WHERE variable = 'AmazonLocale';
UPDATE systempreferences SET value = 'Vater|Mutter' WHERE variable = 'borrowerRelationship';
UPDATE systempreferences SET value = 'Herr|Frau' WHERE variable = 'BorrowersTitles';
+UPDATE systempreferences SET value = 'FR' WHERE variable = 'CurencyFormat';
+UPDATE systempreferences SET value = 'metric' WHERE variable = 'dateformat';
+UPDATE systempreferences SET value = 'z' WHERE variable = 'DefaultClassificationSource';
+UPDATE systempreferences SET value = 'Willkommen im Koha-Katalog! (OpacMainUserBlock)' WHERE variable = 'OpacMainUserBlock';
+UPDATE systempreferences SET value = 'Wichtige Links hier...(OpacNav)' WHERE variable = 'OpacNav';
+UPDATE systempreferences SET value = '...oder hier (OpacNavBottom)' WHERE variable = 'OpacNavBottom';
+UPDATE systempreferences SET value =
+ '<li><a href="http://worldcat.org/search?q={TITLE}" target="_blank">Andere Bibliotheken (WorldCat)</a></li>
+ <li><a href="http://www.scholar.google.com/scholar?q={TITLE}" target="_blank">Google Scholar</a></li>
+ <li><a href="http://www.bookfinder.com/search/?author={AUTHOR}&title={TITLE}&st=xl&ac=qr" target="_blank">Online-Buchhandel (Bookfinder.com)</a></li>'
+ WHERE variable = 'OPACSearchForTitleIn';
insert into `message_attributes`
(`message_attribute_id`, message_name, `takes_days`)
values
-(1, 'Item_DUE', 0),
+(1, 'Item_Due', 0),
(2, 'Advance_Notice', 1),
(4, 'Hold_Filled', 0),
(5, 'Item_Check_in', 0),
/*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,'','');
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');
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');
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);
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,'','');
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
('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
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');
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
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;
\ No newline at end of file
+SET FOREIGN_KEY_CHECKS=1;
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;
--
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`),
`dateexpiry` date default NULL, -- date the patron/borrower's card is set to expire (YYYY-MM-DD)
`gonenoaddress` tinyint(1) default NULL, -- set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having an unconfirmed address
`lost` tinyint(1) default NULL, -- set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having lost their card
- `debarred` tinyint(1) default NULL, -- set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as being restricted
+ `debarred` date default NULL, -- until this date the patron can only check-in (no loans, no holds, etc.), is a fine based on days instead of money (YYY-MM-DD)
+ `debarredcomment` VARCHAR(255) DEFAULT NULL, -- comment on the stop of the patron
`contactname` mediumtext, -- used for children and profesionals to include surname or last name of guarentor or organization name
`contactfirstname` text, -- used for children to include first name of guarentor
`contacttitle` text, -- used for children to include title (Mr., Mrs., etc) of guarentor
--
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;
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;
--
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`),
`dateexpiry` date default NULL, -- date the patron/borrower's card is set to expire (YYYY-MM-DD)
`gonenoaddress` tinyint(1) default NULL, -- set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having an unconfirmed address
`lost` tinyint(1) default NULL, -- set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having lost their card
- `debarred` tinyint(1) default NULL, -- set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as being restricted
+ `debarred` date default NULL, -- until this date the patron can only check-in (no loans, no holds, etc.), is a fine based on days instead of money (YYY-MM-DD)
+ `debarredcomment` VARCHAR(255) DEFAULT NULL, -- comment on the stop of patron
`contactname` mediumtext, -- used for children and profesionals to include surname or last name of guarentor or organization name
`contactfirstname` text, -- used for children to include first name of guarentor
`contacttitle` text, -- used for children to include title (Mr., Mrs., etc) of guarentor
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`),
--
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` text 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`),
-- 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`),
--
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`),
`isbn` varchar(30) default NULL, -- isbn of the suggested item
`mailoverseeing` smallint(1) default 0,
`biblionumber` int(11) default NULL, -- foreign key linking the suggestion to the biblio table after the suggestion has been ordered
- `reason` text, -- reason for making the suggestion
+ `reason` text, -- reason for accepting or rejecting the suggestion
+ `patronreason` text, -- reason for making the suggestion
budgetid INT(11), -- foreign key linking the suggested budget to the aqbudgets table
branchcode VARCHAR(10) default NULL, -- foreign key linking the suggested branch to the branches table
collectiontitle text default NULL, -- collection name for the suggested item
insert into `message_attributes`
(`message_attribute_id`, message_name, `takes_days`)
values
-(1, 'Item_DUE', 0),
+(1, 'Item_Due', 0),
(2, 'Advance_Notice', 1),
(4, 'Hold_Filled', 0),
(5, 'Item_Check_in', 0),
insert into `message_attributes`
(`message_attribute_id`, message_name, `takes_days`)
values
-(1, 'Item_DUE', 0),
+(1, 'Item_Due', 0),
(2, 'Advance_Notice', 1),
(4, 'Hold_Filled', 0),
(5, 'Item_Check_in', 0),
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
-INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('dateformat','us','Define global date format (us mm/dd/yyyy, metric dd/mm/yyy, ISO yyyy/mm/dd)','metric|us|iso','Choice');
+INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('dateformat','us','Define global date format (us mm/dd/yyyy, metric dd/mm/yyy, ISO yyyy-mm-dd)','metric|us|iso','Choice');
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opaclanguages','en','Set the default language in the OPAC.',NULL,'Languages');
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opaclanguagesdisplay',0,'If ON, enables display of Change Language feature on OPAC','','YesNo');
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowersTitles','Mr|Mrs|Miss|Ms','Define appropriate Titles for patrons',NULL,'free');
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('BasketConfirmations', '1', 'When closing or reopening a basket,', 'always ask for confirmation.|do not ask for confirmation.', 'Choice');
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn | a|a d', NULL, NULL, 'Textarea');
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpenLibraryCovers',0,'If ON Openlibrary book covers will be show',NULL,'YesNo');
+INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerUnwantedField','','Name the fields you don\'t need to store for a patron\'s account',NULL,'free');
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OpacKohaUrl','1',"Show 'Powered by Koha' text on OPAC footer.",NULL,NULL);
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('EasyAnalyticalRecords','0','If on, display in the catalogue screens tools to easily setup analytical record relationships','','YesNo');
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacShowRecentComments',0,'If ON a link to recent comments will appear in the OPAC masthead',NULL,'YesNo');
-
+INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('CircAutoPrintQuickSlip', '1', 'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window or Clear the screen.',NULL,'YesNo');
insert into `message_attributes`
(`message_attribute_id`, `message_name`, `takes_days`)
values
-(1, 'Item_DUE' , 0),
+(1, 'Item_Due' , 0),
(2, 'Advance_Notice' , 1),
(4, 'Hold_Filled' , 0),
(5, 'Item_Check_in' , 0),
SetVersion($DBversion);
}
+
$DBversion = "3.05.00.011";
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACResultsSidebar','','Define HTML to be included on the search results page, underneath the facets sidebar','70|10','Textarea')");
SetVersion ($DBversion);
}
+$DBversion = "3.07.00.001";
+if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
+ my $borrowers = $dbh->selectcol_arrayref( "SELECT borrowernumber from borrowers where debarred =1;", { Columns => [1] } );
+ $dbh->do("ALTER TABLE borrowers MODIFY debarred DATE DEFAULT NULL;");
+ $dbh->do( "UPDATE borrowers set debarred='9999-12-31' where borrowernumber IN (" . join( ",", @$borrowers ) . ");" ) if ($borrowers and scalar(@$borrowers)>0);
+ $dbh->do("ALTER TABLE borrowers ADD COLUMN debarredcomment VARCHAR(255) DEFAULT NULL AFTER debarred;");
+ $dbh->do("ALTER TABLE deletedborrowers MODIFY debarred DATE DEFAULT NULL;");
+ $dbh->do("ALTER TABLE deletedborrowers ADD COLUMN debarredcomment VARCHAR(255) DEFAULT NULL AFTER debarred;");
+ print "Upgrade done (Change borrowers.debarred into Date )\n";
+ SetVersion($DBversion);
+}
+
+$DBversion = "3.07.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)\n";
+ SetVersion($DBversion);
+}
+
+$DBversion = "3.07.00.003";
+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\n";
+ SetVersion($DBversion);
+}
+
+$DBversion = "3.07.00.004";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+ $dbh->do("ALTER TABLE `suggestions` ADD `patronreason` TEXT NULL AFTER `reason`");
+ print "Upgrade to $DBversion done (Add column to suggestions table to store patrons' reasons for submitting a suggestion. )\n";
+ SetVersion($DBversion);
+}
+
+$DBversion = "3.07.00.005";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+ $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('BorrowerUnwantedField','','Name the fields you don''t need to store for a patron''s account',NULL,'free')");
+ print "Upgrade to $DBversion done (BorrowerUnwantedField syspref)\n";
+ SetVersion ($DBversion);
+}
+
+$DBversion = "3.07.00.006";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+ $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('CircAutoPrintQuickSlip', '1', 'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window or Clear the screen.',NULL,'YesNo');");
+ print "Upgrade to $DBversion done (Add syspref CircAutoPrintQuickSlip to control what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window (default value, 3.6 behaviour) or clear the screen (previous 3.6 behaviour). )\n";
+ SetVersion($DBversion);
+}
+
+$DBversion = "3.07.00.007";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+ $dbh->do("ALTER TABLE items MODIFY materials text;");
+ print "Upgrade to $DBversion done alter items.material from varchar(10) to text \n";
+ SetVersion ($DBversion);
+}
+
+
=head1 FUNCTIONS
=head2 DropAllForeignKeys($table)
my $version = shift;
# remove the 3 last . to have a Perl number
$version =~ s/(.*\..*)\.(.*)\.(.*)/$1$2$3/;
+ # three X's at the end indicate that you are testing patch with dbrev
+ # change it into 999
+ # prevents error on a < comparison between strings (should be: lt)
+ $version =~ s/XXX$/999/;
return $version;
}
=cut
sub SetVersion {
- my $kohaversion = TransformToNum(shift);
+ return if $_[0]=~ /XXX$/;
+ #you are testing a patch with a db revision; do not change version
+ my $kohaversion = TransformToNum($_[0]);
if (C4::Context->preference('Version')) {
my $finish=$dbh->prepare("UPDATE systempreferences SET value=? WHERE variable='Version'");
$finish->execute($kohaversion);
# Framework Selection is achieved through checking boxes.
my $langchoice = $query->param('fwklanguage');
$langchoice = $query->cookie('KohaOpacLanguage') unless ($langchoice);
+ $langchoice =~ s/[^a-zA-Z_-]*//g;
my $marcflavour = $query->param('marcflavour');
if ($marcflavour){
$installer->set_marcflavour_syspref($marcflavour);
# Marcflavour Selection is achieved through radiobuttons.
my $langchoice = $query->param('fwklanguage');
$langchoice = $query->cookie('KohaOpacLanguage') unless ($langchoice);
+ $langchoice =~ s/[^a-zA-Z_-]*//g;
my $dir =
C4::Context->config('intranetdir') . "/installer/data/$info{dbms}/$langchoice/marcflavour";
unless (opendir( MYDIR, $dir )) {
.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);
}
\ No newline at end of file
background-color : #FFF;
color : #333333;
font-family : arial, geneva, sans-serif;
- font-size : 12px;
+ font-size : 14px;
margin : 0px 0px 0px 0px;
}
border-left : 1px solid #CCCCCC;
margin : 3px 0px 5px 0px;
padding : 0px;
- width : 100%;
- height : 100%;
+ width : 99%;
}
table.list {
border-left : 0;
font-size : 12px;
padding : 5px 5px 5px 5px;
- width : 100%;
- height : 100%;
}
td:last-child {
border-left : 0;
font-size : 12px;
padding : 5px 5px 5px 5px;
- width : 100%;
- height : 100%;
}
table.list th {
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;
}
}
.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;
}
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;
}
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%;
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;
}
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 {
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;
}
background-image : none;
padding-right : 20px;
}
+
+div.lang {
+ float:left;
+}
div#changelanguage{
background-color: #fff;
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;
background-color : transparent;
font-weight: bold;
text-align : center;
-}
\ No newline at end of file
+}
<p class="tip">Search orders:</p>
<form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
- <label for="title">Title: </label><input type="text" id="title" name="title" size="15" value="[% title %]" /> <label for="searchsupplier">Vendor:</label> <input type="text" id="searchsupplier" name="name" size="15" value="[% name %]" />
+ <label for="title">Title: </label><input type="text" id="title" name="title" size="15" value="[% title %]" /> <label for="searchsupplier">Vendor:</label> <input type="text" id="searchsupplier" name="name" size="15" value="[% name|html %]" />
<span class="filteraction" id="filteraction_off" style="display:none"> <a href="#" onclick="$('#filters').toggle();$('.filteraction').hide();">[-]</a></span>
<span class="filteraction" id="filteraction_on"> <a href="#" onclick="$('#filters').show();$('.filteraction').toggle();">[+]</a></span>
<input value="Submit" class="submit" type="submit" /> <a href="/cgi-bin/koha/acqui/histsearch.pl">Advanced Search</a>
<p id="filters" style="display:none">
- <label for="basket">Basket: </label><input type="text" name="basket" id="basket">
- <label for="booksellerinvoicenumber">Invoice No.: </label><input type="text" name="booksellerinvoicenumber" id="booksellerinvoicenumber">
+ <label for="basket">Basket: </label><input type="text" name="basket" id="basket" />
+ <label for="booksellerinvoicenumber">Invoice No.: </label><input type="text" name="booksellerinvoicenumber" id="booksellerinvoicenumber" />
</p>
</form>
</div>
}else{
return false;
}
+ } else {
+ alert(_("This record has no items."));
+ return false;
}
}
[% END %]
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Edit as New (Duplicate)"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&frameworkcode=&op=duplicate" },[% END %]
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Replace Record via Z39.50"), onclick: {fn: PopupZ3950 } },[% END %]
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Delete Record"), onclick: {fn: confirm_deletion }[% IF ( count ) %],id:'disabled'[% END %] },[% END %]
- [% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Delete all Items"), onclick: {fn: confirm_items_deletion } }[% END %]
+ [% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Delete all Items"), onclick: {fn: confirm_items_deletion }[% UNLESS ( count ) %],id:'disabled'[% END %] }[% END %]
];
if(editmenu.length){
new YAHOO.widget.Button({
location.href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]";
}
var HoldForButtonMenu = [
- { text: "Place hold", url: "/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]" },
- { text: "Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])", url: "/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]&findborrower=[% holdfor_cardnumber %]" }
+ { text: _("Place hold"), url: "/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]" },
+ { text: _("Place hold for")+ " [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])", url: "/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblionumber %]&findborrower=[% holdfor_cardnumber %]" }
];
// Instantiate a Split Button using the array of YAHOO.widget.MenuItem
var HoldForButton = new YAHOO.widget.Button({
id: "holdfor",
type: "split",
- label: "Place hold",
+ label: _("Place hold"),
name: "holdfor",
menu: HoldForButtonMenu,
container: this,
[% IF ( borrowernumber ) %]
-<div class="patroninfo"><h5>[% firstname %] [% surname %] ([% cardnumber %])</h5>
+<div class="patroninfo"><h5>[% INCLUDE 'patron-title.inc' %]</h5>
<!--[if IE 6]>
<style type="tex/css">img { width: expression(this.width > 140 ? 140: true);
}</style>
<li><img src="/intranet-tmpl/prog/img/patron-blank.png" alt="[% firstname %] [% surname %] ([% cardnumber %])" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li>
[% END %]
[% END %]
- <li>[% IF ( address ) %]
- [% address %]
+ [% IF ( address or address2 ) %]
+ [% IF ( address ) %]
+ <li>[% address %]</li>
+ [% END %]
+ [% IF ( address2 ) %]
+ <li>[% address2 %]</li>
+ [% END %]
[% ELSE %]
- <span class="empty">No address stored.</span>
- [% END %]</li>
- [% IF ( address2 ) %]
- <li>[% address2 %]</li>
- [% END %]<li>
+ <li><span class="empty" id="noadressstored">No address stored.</span></li>
+ [% END %]
[% IF ( city ) %]
[% city %][% IF ( state ) %], [% state %][% END %]
[% zipcode %][% IF ( country ) %], [% country %][% END %]
[% ELSE %]
- <span class="empty">No city stored.</span>
+ <span class="empty" id="nocitystored">No city stored.</span>
[% END %]</li>
<li>[% IF ( phone ) %]
[% phone %]
[% IF ( phonepro ) %]
[% phonepro %]
[% ELSE %]
- <span class="empty">No phone stored.</span>
+ <span class="empty" id="nophonestored">No phone stored.</span>
[% END %]
[% END %]
[% END %]</li>
<li><img src="/intranet-tmpl/prog/img/patron-blank.png" alt="[% borrower.firstname %] [% borrower.surname %] ([% borrower.cardnumber %])" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" /></li>
[% END %]
[% END %]
- <li>[% IF borrower.address %]
- [% borrower.address %]
+ [% IF ( borrower.address or borrower.address2 ) %]
+ [% IF ( borrower.address ) %]
+ <li>[% borrower.address %]</li>
+ [% END %]
+ [% IF ( borrower.address2 ) %]
+ <li>[% borrower.address2 %]</li>
+ [% END %]
[% ELSE %]
- <span class="empty">No address stored.</span>
- [% END %]</li>
- [% IF borrower.address2 %]
- <li>[% borrower.address2 %]</li>
- [% END %]<li>
+ <li><span class="empty" id="noaddressstored">No address stored.</span></li>
+ [% END %]
+ <li>
[% IF borrower.city %]
[% borrower.city %][% IF borrower.state %], [% borrower.state %][% END %]
[% borrower.zipcode %][% IF ( borrower.country ) %], [% borrower.country %][% END %]
[% ELSE %]
- <span class="empty">No city stored.</span>
+ <span class="empty" id="nocitystored">No city stored.</span>
[% END %]</li>
<li>[% IF borrower.phone %]
[% borrower.phone %]
[% IF borrower.phonepro %]
[% borrower.phonepro %]
[% ELSE %]
- <span class="empty">No phone stored.</span>
+ <span class="empty" id="nophonestored">No phone stored.</span>
[% END %]
[% END %]
[% END %]</li>
var moremenu = [
{ text: _("Renew Patron"), onclick: { fn: confirm_reregistration } },
- { text: _("Set Permissions"), url: "/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]"
- [% IF ( CAN_user_permissions ) %][% IF ( StaffMember ) %]
- [% UNLESS ( CAN_user_staffaccess ) %], disabled: true[% END %]
- [% ELSE %][% END %]
- [% ELSE %], disabled: true[% END %]},
- { text: _("Delete"), [% IF ( StaffMember ) %][% UNLESS ( CAN_user_staffaccess ) %]disabled: true, [% END %][% ELSE %][% UNLESS ( CAN_user_borrowers ) %]disabled: true, [% END %][% END %] onclick: { fn: confirm_deletion } },
- { text: _("Update Child to Adult Patron") , onclick: { fn: update_child }[% UNLESS ( is_child ) %], disabled: true[% END %]}
+ { text: _("Set Permissions"), url: "/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]"[% UNLESS CAN_user_permissions %], disabled: true[% END %]},
+ { text: _("Delete"), [% UNLESS CAN_user_borrowers %]disabled: true, [% END %] onclick: { fn: confirm_deletion } },
+ { text: _("Update Child to Adult Patron") , onclick: { fn: update_child }[% UNLESS is_child %], disabled: true[% END %]}
];
new YAHOO.widget.Button({
[% IF ( adultborrower ) %]new YAHOO.widget.Button("addchild");[% END %]
new YAHOO.widget.Button("editpatron");
new YAHOO.widget.Button("addnote");
- [% IF ( StaffMember ) %][% IF ( CAN_user_staffaccess ) %] new YAHOO.widget.Button("changepassword"); [% END %]
- [% ELSE %] new YAHOO.widget.Button("changepassword"); [% END %]
+ [% IF CAN_user_staffaccess %] new YAHOO.widget.Button("changepassword"); [% END %]
new YAHOO.widget.Button("duplicate");
new YAHOO.widget.Button("printslip");
new YAHOO.widget.Button("printpage");
- new YAHOO.widget.Button("renewpatron");
- [% IF ( CAN_user_permissions ) %]
- [% IF ( StaffMember ) %]
- [% IF ( CAN_user_staffaccess ) %]
- new YAHOO.widget.Button("patronflags");
- [% END %]
- [% ELSE %]
- new YAHOO.widget.Button("patronflags");
- [% END %]
- [% END %]
- [% IF ( StaffMember ) %][% UNLESS ( CAN_user_staffaccess ) %]new YAHOO.widget.Button("deletepatron");[% END %]
- [% ELSE %]new YAHOO.widget.Button("deletepatron");[% END %]
}
//]]>
[% END %]
[% END %]
[% IF ( CAN_user_borrowers ) %]
- [% IF ( adultborrower ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&guarantorid=[% borrowernumber %]&category_type=C">Add child</a></li>[% END %]
-[% IF ( StaffMember ) %][% IF ( CAN_user_staffaccess ) %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>[% END %]
- [% ELSE %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>[% END %]
- [% END %]
- <li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&borrowernumber=[% borrowernumber %]&category_type=[% category_type %]">Duplicate</a></li>
+ [% IF ( adultborrower ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&guarantorid=[% borrowernumber %]&category_type=C">Add child</a></li>[% END %]
+ [% IF ( CAN_user_staffaccess ) %] <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>[% END %]
+ [% END %]
+ <li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&borrowernumber=[% borrowernumber %]&category_type=[% category_type %]">Duplicate</a></li>
<li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&print=page">Print Page</a></li>
<li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&print=slip">Print Slip</a></li>
<li id="searchtoholdc"><a id="searchtohold" href="#">Search to hold</a></li>
-[% IF ( dateformat_us ) %](MM/DD/YYYY)[% ELSIF ( dateformat_metric ) %](DD/MM/YYYY)[% ELSE %](YYYY/MM/DD)[% END %]
\ No newline at end of file
+[% IF ( dateformat_us ) %](MM/DD/YYYY)[% ELSIF ( dateformat_metric ) %](DD/MM/YYYY)[% ELSE %](YYYY-MM-DD)[% END %]
\ No newline at end of file
[% 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 %]
<div id="changelanguage" class="ft">
<ul id="i18nMenu" class="footermenu">
[% FOREACH languages_loo IN languages_loop %]
+ <div class="lang">
[% IF ( languages_loo.group_enabled ) %]
[% IF ( languages_loo.plural ) %]
<li class="more"><a class="sublangs" id="show[% languages_loo.rfc4646_subtag %]" href="#">[% languages_loo.native_description %] ([% languages_loo.rfc4646_subtag %])</a><div id="sub[% languages_loo.rfc4646_subtag %]">
[% END %]
[% END %]
[% END %]
+ </div>
[% END %]
</ul>
</div>
[% IF ( adultborrower ) %]new YAHOO.widget.Button("addchild");[% END %]
new YAHOO.widget.Button("editpatron");
new YAHOO.widget.Button("addnote");
- new YAHOO.widget.Button("changepassword");
+ [% IF CAN_user_staffaccess %]new YAHOO.widget.Button("changepassword"); [% END %]
new YAHOO.widget.Button("duplicate");
new YAHOO.widget.Button("printslip");
new YAHOO.widget.Button("printpage");
- new YAHOO.widget.Button("renewpatron");
- new YAHOO.widget.Button("patronflags");
- new YAHOO.widget.Button("deletepatron");
- new YAHOO.widget.Button("updatechild");
}
//]]>
[% END %]
[% END %]
[% IF ( adultborrower ) %]<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&guarantorid=[% borrowernumber %]&category_type=C">Add child</a></li>[% END %]
- <li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li>
+ [% IF CAN_user_staffaccess %]<li><a id="changepassword" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Change Password</a></li> [% END %]
<li><a id="duplicate" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&borrowernumber=[% borrowernumber %]&category_type=[% category_type %]">Duplicate</a></li>
<li id="printmenuc"><a id="printpage" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&print=page">Print Page</a></li>
<li><a id="printslip" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]&print=slip">Print Slip</a></li>
--- /dev/null
+[% IF category_type == 'I' %]
+ [% surname %] [% IF othernames %] ([% othernames %]) [% END %]
+[% ELSE %]
+ [% firstname %] [% surname %]
+[% END %]
+([% cardnumber %])
var CloneButtonPlus;
var CloneButtonMinus;
// try{
- CloneButtonPlus = clone.getElementsByTagName('a')[0];
+ var jclone = $(clone);
+ CloneButtonPlus = $("a.addItem", jclone).get(0);
CloneButtonPlus.setAttribute('onclick',"cloneItemBlock('" + index + random + "')");
- CloneButtonMinus = clone.getElementsByTagName('a')[1];
+ CloneButtonMinus = $("a.delItem", jclone).get(0);
CloneButtonMinus.setAttribute('onclick',"deleteItemBlock('" + index + random + "')");
CloneButtonMinus.setAttribute('style',"display:inline");
// change itemids of the clone
--- /dev/null
+/* 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);
\ No newline at end of file
<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>
<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>
<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>
<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>
<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>
<li><strong>Tamil</strong>, France</li>
<li><strong>Xercode</strong>, Spain</li>
</ul>
-
+
<h2>Additional Thanks To...</h2>
<ul>
<li>Jo Ransom</li>
<li>Nicolas Morin (French Translation in 2.0)</li>
</ul>
</div>
+
<div id="licenses">
<h2>Koha</h2>
<p>
<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>
by the Bridge Consortium of Carleton College and St. Olaf College.</li>
</ul>
</div>
+
<div id="translations">
<h2>Translation</h2>
<ul>
<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' %]
[% 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 %]
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname %] ([% basketno %]) for [% name %]</title>
+<title>Koha › Acquisitions › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</title>
[% 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({
}
});
});
-//]]>
-</script>
-<script type="text/javascript">
-//<![CDATA[
function confirm_close() {
var is_confirmed = confirm(_('Are you sure you want to close this basket?'));
if (is_confirmed) {
window.location = "[% script_name %]?op=close&basketno=[% basketno %]";
}
}
-//]]>
- </script>
-<script type="text/javascript">
-//<![CDATA[
function confirm_deletion() {
var is_confirmed = confirm(_('Are you sure you want to delete this basket?'));
if (is_confirmed) {
//]]>
</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[
[% 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 %]">[% name %]</a> › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname %] ([% basketno %]) for [% name %]</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 %]">[% name|html %]</a> › [% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for [% name|html %]</div>
<div id="doc3" class="yui-t2">
<h3>Basket deleted</h3>
<META HTTP-EQUIV=Refresh CONTENT="0; url=booksellers.pl">
[% ELSE %]
- <h1>[% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname %] ([% basketno %]) for <a href="supplier.pl?supplierid=[% booksellerid %]">[% name %]</a></h1>
+ <h1>[% UNLESS ( basketno ) %]New [% END %][% IF ( delete_confirm ) %]Delete [% END %]Basket [% basketname|html %] ([% basketno %]) for <a href="supplier.pl?supplierid=[% booksellerid %]">[% name|html %]</a></h1>
[% IF ( delete_confirm ) %]
<h2>
<span class="yui-button yui-link-button">
</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">
<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>
[% 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>
<div id="closebasket_needsconfirmation" class="dialog alert">
<form action="/cgi-bin/koha/acqui/basket.pl" class="confirm">
- <h1>Are you sure you want to close basket [% basketname %]?</h1>
+ <h1>Are you sure you want to close basket [% basketname|html %]?</h1>
<p>
<label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
<input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
[% 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
}
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;
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) {
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">
[% END %]
</ul>
</div>
+ </fieldset>
</div>
</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 %]" >
<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' %]
</div></li>
[% END %]
</ol>
- <a style="cursor: pointer; color: grey; font-size: 180%;" onclick="cloneItemBlock('itemblock[% item.itemBlockIndex %]')">+</a>
- <a style="display:none; cursor: pointer; color: grey; font-size: 180%;" onclick="deleteItemBlock('itemblock[% item.itemBlockIndex %]')">-</a>
+ <a class="addItem" onclick="cloneItemBlock('itemblock[% item.itemBlockIndex %]')">Add</a>
+ <a class="delItem" style="display:none;" onclick="deleteItemBlock('itemblock[% item.itemBlockIndex %]')">Delete</a>
</div><!-- /iteminformation -->
</div>
</div></li>
[% END %]
</ol>
- <a style="cursor: pointer; color: grey; font-size: 180%;" onclick="cloneItemBlock('itemblock[% item.itemBlockIndex %]')">+</a>
- <a style="display:none; cursor: pointer; color: grey; font-size: 180%;" onclick="deleteItemBlock('itemblock[% item.itemBlockIndex %]')">-</a>
+ <a class="addItem" onclick="cloneItemBlock('itemblock[% item.itemBlockIndex %]')">Add</a>
+ <a class="delItem" style="display:none;" onclick="deleteItemBlock('itemblock[% item.itemBlockIndex %]')">Delete</a>
</div><!-- /iteminformation -->
</div>
<fieldset class="rows">
<legend>Accounting details</legend>
<ol>
- <li><label for="datereceived">Date received: </label><span class="label"> [% datereceived %] </span></li>
+ <li><label for="datereceived">Date received: </label><span> [% datereceived %] </span></li>
+ <li><label for="bookfund">Budget: </label><span> [% bookfund %] </span></li>
+ <li><label for="creator">Created by: </label><span> [% IF ( memberfirstname and membersurname ) %][% IF ( memberfirstname ) %][% memberfirstname %][% END %] [% membersurname %][% ELSE %]No name[% END %]</span></li>
<li><label for="quantityto">Quantity to receive: </label><span class="label">
[% IF ( edit ) %]
<input type="text" name="quantity" value="[% quantity %]" />
</script>
<script type="text/javascript">
//<![CDATA[
- function confirm_delete_item(ordernumber, biblionumber) {
+ function confirm_delete_item(ordernumber, basketno, biblionumber) {
var is_confirmed = confirm(_('Are you sure you want to delete this order ?'));
if (is_confirmed) {
- window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber;
+ window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber;
}
}
function confirm_delete_biblio(ordernumber, biblionumber) {
var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?'));
if (is_confirmed) {
- window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
+ window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
}
}
[% IF ( loop_order.left_holds_on_order ) %]
<span class="button" title="Can't delete order, ([% loop_order.holds_on_order %]) holds are linked with this order cancel holds first">Can't delete order</span><br>
[% ELSE %]
- <a href="javascript:confirm_delete_item([% loop_order.ordernumber %],[% loop_order.biblionumber %])" class="button">Delete order</a><br>
+ <a href="javascript:confirm_delete_item([% loop_order.ordernumber %],[% loop_order.basketno %],[% loop_order.biblionumber %])" class="button">Delete order</a><br>
[% END %]
[% IF ( loop_order.can_del_bib ) %]
- <a href="javascript:confirm_delete_biblio([% loop_order.ordernumber %],[% loop_order.biblionumber %])" class="button">Delete order and catalog record</a><br>
+ <a href="javascript:confirm_delete_biblio([% loop_order.ordernumber %],[% loop_order.basketno %],[% loop_order.biblionumber %])" class="button">Delete order and catalog record</a><br>
[% ELSE %]
<span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
[% END %]
<li><label for="company_fax">Fax</label>
<input type="text" size="20" id="company_fax" name="company_fax" value="[% fax %]" /></li>
<li><label for="website">Website</label>
- <input type="text" size="40" id="website" name="website" value="[% url %]" /></li></ol>
+ <input type="text" size="40" id="website" name="website" value="[% url %]" /></li>
+ <li><label for="accountnumber">Account number</label>
+ <input type="text" size="40" id="accountnumber" name="accountnumber" value="[% accountnumber %]" /></li></ol>
</fieldset>
<fieldset class="rows">
<legend>Contact details</legend>
<input type="text" size="6" id="discount" name="discount" value="[% discount %]" />%</li>
<li><label for="gstrate">Tax rate</label><input type="text" name="gstrate" id="gstrate" size="6" value="[% gstrate %]"/>% (leave blank for default tax of [% default_gst_rate %]%)</li>
<li><label for="notes">Notes</label>
- <textarea cols="40" rows="4" id="notes" name="notes" >[% notes %]</textarea></li></ol>
+ <textarea cols="40" rows="4" id="notes" name="notes" >[% notes %]</textarea></li></ol>
</fieldset>
<fieldset class="action"><input type="button" value="Save" onclick="check(this.form);" /> [% IF ( id ) %]
<a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% id %]">[% ELSE %]<a class="cancel" href="/cgi-bin/koha/acqui/acqui-home.pl">
<p><span class="label">Phone: </span>[% phone %]</p>
<p><span class="label">Fax: </span>[% fax %]</p>
[% IF ( url ) %]
- <p><span class="label">Web site: </span><a href="[% url %]">[% url %]</a></p>
+ <p><span class="label">Website: </span><a href="[% url %]">[% url %]</a></p>
+ [% END %]
+ [% IF ( accountnumber ) %]
+ <p><span class="label">Account number: </span>[% accountnumber %]</p>
[% END %]
</div>
<div id="supplier-contact-details" class="yui-u">
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Acquisitions › Z39.50 Search Results</title>
+<title>Koha › Acquisitions › [% IF ( opsearch ) %]Order from external source[% ELSE %]Order from external source › Search results[% END %]</title>
[% INCLUDE 'greybox.inc' %]
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
[% 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 %]">[% name %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> › Order from Z39.50 search</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 %]">[% name %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> › [% IF ( opsearch ) %]Order from external source[% ELSE %]<a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]">Order from external source</a> › Search results[% END %]</div>
<div id="doc3" class="yui-t7">
<div id="bd">
[% IF ( opsearch ) %]
-<h2>Z39.50 Search Points</h2>
+<h2>Order from external source</h2>
<form method="post" action="z3950_search.pl" name="f" class="checkboxed">
<input type="hidden" name="op" id="op" value="do_search" />
<div class="yui-g">
[% ELSE %]
- <h2>Results</h2>
+ <h2>Search results</h2>
[% IF ( breeding_loop ) %]
<table id="resultst">
<thead> <tr>
</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 %]
[% IF ( loop.last ) %]</tbody></table>[% END %]
[% END %]
[% END %]
- <fieldset class="action"><button class="save-all submit" type="submit">Save all [% TAB.tab_title %] preferences</button> <a href="/cgi-bin/koha/admin/preferences.pl?tab=[% TAB.tab %]" class="cancel">Cancel</a></fieldset>
+ <fieldset class="action"><button class="save-all submit" type="submit">Save all [% TAB.tab_title %] preferences</button> <a href="#" onclick="window.location.reload(true);" class="cancel">Cancel</a></fieldset>
</form>
</div>
[% END %]
yes: Record
no: "Don't record"
- local use when an unissued item is checked in.
+ -
+ - When an empty an empty barcode field is submitted in circulation
+ - pref: CircAutoPrintQuickSlip
+ choices:
+ yes: "open a print quick slip window"
+ no: "clear the screen"
+ - .
Checkout Policy:
-
- pref: AllowNotForLoanOverride
choices:
us: mm/dd/yyyy
metric: dd/mm/yyyy
- iso: yyyy/mm/dd
+ iso: yyyy-mm-dd
- .
-
- "Enable the following languages on the staff interface:"
choices:
yes: Send
no: "Don't send"
- - an email to newly created patrons with their account details at their
+ - an email to newly created patrons with their account details.
+ -
+ - "Use"
- pref: AutoEmailPrimaryAddress
default: "OFF"
choices:
emailpro: work
B_email: alternate
"OFF": first valid
- - email address.
+ - "patron email address for sending out emails."
-
- pref: autoMemberNum
choices:
no: "Don't"
- default the card number field on the patron addition screen to the next available card number (for example, if the largest currently used card number is 26345000012941, then this field will default to 26345000012942).
-
- - "The following database columns must be filled in on the patron entry screen:"
+ - "The following <a href='http://schema.koha-community.org/tables/borrowers.html' target='blank'>database columns</a> must be filled in on the patron entry screen:"
- pref: BorrowerMandatoryField
class: multi
- (separate columns with |)
-
+ - "The following <a href='http://schema.koha-community.org/tables/borrowers.html' target='blank'>database columns</a> will not appear on the patron entry screen:"
+ - pref: BorrowerUnwantedField
+ class: multi
+ - (separate columns with |)
+ -
- "Guarantors can be the following of those they guarantee:"
- pref: borrowerRelationship
class: multi
}
// Sets the good number of form fields for the specified subfield
+ // Returns false if the cloning failed
function SetSubfieldNumber(subfield_name, nb) {
// Nothing to do if we only have one value
if(nb <= 1) {
- return;
+ return true;
}
// Find the subfield we want to clone
return this.id.match(re);
});
- // Add as many clones as needed
- for(var i=0; i<nb-subfields.length; i++) {
- window.opener.opener.CloneSubfield(subfields[0].getAttribute('id'));
+ // Try to add as many clones as needed
+ try {
+ for(var i=0; i<nb-subfields.length; i++) {
+ window.opener.opener.CloneSubfield(subfields[0].getAttribute('id'));
+ }
+ }
+ catch(err) {
+ return false;
}
+ return true;
}
// Fills the subfield with the values entered in argument
}
// Create the correct number of form fields for all values
+ // If the field cloning failed, only the first value will be added to the form.
SetSubfieldNumber(subfield_name, values.length);
// Find the subfields where we will add the new values
<div id="yui-main">
<div class="yui-b">
[% INCLUDE 'cat-toolbar.inc' %]
-
+ [% IF ( ocoins ) %]
+ <!-- COinS / OpenURL -->
+ <span class="Z3988" title="[% ocoins %]"></span>
+ [% END %]
<div id="catalogue_ISBDdetail">
[% ISBD %]
</div>
[% IF ( frameworkcodeloo.selected ) %]<option value="[% frameworkcodeloo.value %]" selected="selected">[% frameworkcodeloo.frameworktext %]</option>[% ELSE %]<option value="[% frameworkcodeloo.value %]">[% frameworkcodeloo.frameworktext %]</option>[% END %]
[% END %]
</select> </b></p>
+[% IF ( ocoins ) %]
+<!-- COinS / OpenURL -->
+<span class="Z3988" title="[% ocoins %]"></span>
+[% END %]
<div id="bibliotabs" class="toptabs numbered">
<ul>
<div class="yui-b">
[% INCLUDE 'cat-toolbar.inc' %]
+ [% IF ( ocoins ) %]
+ <!-- COinS / OpenURL -->
+ <span class="Z3988" title="[% ocoins %]"></span>
+ [% END %]
+
[% IF ( AmazonEnabled ) %]
[% IF ( XSLTDetailsDisplay ) %]
<div class="yui-gc">
[% IF ( MARCAUTHORS ) %]
<li><strong>Additional Authors:</strong><ul>
[% FOREACH MARCAUTHOR IN MARCAUTHORS %]
- <li>[% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% MARCAUTHOR_SUBFIELDS_LOO.separator %]<a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value |url %]" href="/cgi-bin/koha/catalogue/search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit %]:[% link_loo.link |url %][% END %]">[% MARCAUTHOR_SUBFIELDS_LOO.value %]</a>[% END %]</li>
+ <li>[% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% MARCAUTHOR_SUBFIELDS_LOO.separator %]<a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value |url %]" href="/cgi-bin/koha/catalogue/search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit %]:[% link_loo.link |url %][% END %]">[% MARCAUTHOR_SUBFIELDS_LOO.value %]</a>[% END %]</li>
[% END %]
</ul>
<li><strong>Subjects:</strong>
<ul>
[% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
- <li>[% FOREACH MARCSUBJECT_SUBFIELDS_LOO IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %] [% MARCSUBJECT_SUBFIELDS_LOO.separator %] <a title="‡[% MARCSUBJECT_SUBFIELDS_LOO.code %] [% MARCSUBJECT_SUBFIELDS_LOO.value %]" href="/cgi-bin/koha/catalogue/search.pl?q=[% FOREACH link_loo IN MARCSUBJECT_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit %]:[% link_loo.link |url %][% END %]">[% MARCSUBJECT_SUBFIELDS_LOO.value |html %]</a>[% END %]</li>
+ <li>[% FOREACH MARCSUBJECT_SUBFIELDS_LOO IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %] [% MARCSUBJECT_SUBFIELDS_LOO.separator %] <a title="‡[% MARCSUBJECT_SUBFIELDS_LOO.code %] [% MARCSUBJECT_SUBFIELDS_LOO.value %]" href="/cgi-bin/koha/catalogue/search.pl?q=[% FOREACH link_loo IN MARCSUBJECT_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit %]:[% link_loo.link |url %][% END %]">[% MARCSUBJECT_SUBFIELDS_LOO.value |html %]</a>[% END %]</li>
[% END %]
</ul>
</li>
[% IF ( volinfo ) %]<th>Publication Details</th>[% END %]
[% IF ( itemdata_uri ) %]<th>url</th>[% END %]
[% IF ( itemdata_copynumber ) %]<th>Copy No.</th>[% END %]
+ [% IF materials %]<th>Materials Specified</th>[% END %]
[% IF ( itemdata_itemnotes ) %]<th>Public notes</th>[% END %]
[% IF ( SpineLabelShowPrintOnBibDetails ) %]<th>Spine Label</th>[% END %]
[% IF ( hostrecords ) %]<th>Host Records</th>[% END %]
- [% IF ( analyze ) %]<th>Used in</th>[% END %]
- [% IF ( analyze ) %]<th></th>[% END %]
+ [% IF ( analyze ) %]<th>Used in</th><th></th>[% END %]
</tr>
[% FOREACH itemloo IN itemloop %]
<tr>
[% IF ( itemdata_copynumber ) %]
<td class="copynumber">[% itemloo.copynumber %]</td>
[% END %]
+ [% IF materials %]
+ <td class="materials"> [% itemloo.materials %] </td>
+ [% END %]
[% IF ( itemdata_itemnotes ) %]<td><div class="itemnotes">[% itemloo.itemnotes %]</div></td>[% END %]
[% IF ( SpineLabelShowPrintOnBibDetails ) %]
<td><a href="/cgi-bin/koha/labels/spinelabel-print.pl?barcode=[% itemloo.barcode %]" >Print Label</a></td>
[% 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>
[% 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">
[% 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>
<li><span class="label">Item Callnumber:</span> [% ITEM_DAT.itemcallnumber %] </li>
[% IF ( ITEM_DAT.copyvol ) %]<li><span class="label">Copy / Vol :</span> [% ITEM_DAT.copyvol %] </li> [% END %]
[% IF ( ITEM_DAT.replacementprice ) %]<li><span class="label">Replacement Price:</span> [% ITEM_DAT.replacementprice %] </li> [% END %]
+ [% IF ITEM_DAT.materials %]<li><span class="label">Materials Specified:</span> [% ITEM_DAT.materials %] </li> [% END %]
</ol></div>
<div class="listgroup"><h4>Statuses [% IF ( ITEM_DAT.status_advisory ) %](
[% IF ( ITEM_DAT.notforloantext ) %][% ITEM_DAT.notforloantext %] [% END %]
<ol class="bibliodetails">
<li><span class="label">Current Location:</span> [% ITEM_DAT.holdingbranchname %] </li>
- <li><span class="label">Checkout Status:</span> [% IF ( ITEM_DAT.issue ) %]Checked out to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% ITEM_DAT.borrowernumber %]">[% ITEM_DAT.cardnumber %]</a>, Due back on [% ITEM_DAT.datedue %][% ELSE %]Not Checked out [% END %]</li>
+ <li><span class="label">Checkout Status:</span> [% IF ( ITEM_DAT.issue ) %]Checked out to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% ITEM_DAT.borrowernumber %]">[% ITEM_DAT.cardnumber %]</a>[% IF ( ITEM_DAT.lastreneweddate ) %], Last renewed [% ITEM_DAT.lastreneweddate %][% END %], Due back on [% ITEM_DAT.datedue %][% ELSE %]Not Checked out [% END %]</li>
<li><span class="label">Current Renewals:</span> [% ITEM_DAT.renewals %] </li>
[% IF ( ITEM_DAT.itemlostloop ) %]
<li><span class="label">Lost Status:</span>
Accession Date:</span>
[% IF ( ITEM_DAT.basketno ) %]
- <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% ITEM_DAT.basketno %]">[% ITEM_DAT.dateaccessioned %]</a>
+ <a href="/cgi-bin/koha/acqui/parcel.pl?supplierid=[% ITEM_DAT.booksellerid %]&invoice=[% ITEM_DAT.booksellerinvoicenumber %]&datereceived=[% ITEM_DAT.datereceived %]">[% ITEM_DAT.dateaccessioned %]</a>
[% ELSE %]
[% ITEM_DAT.dateaccessioned %]
[% END %]
[% 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">
placeHold();
}
var HoldForButtonMenu = [
- { text: "Place hold", onclick: { fn: holdFor }},
- { text: "Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])", onclick: { fn: holdForPatron }},
- { text: "Forget [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])", onclick: { fn: forgetPatron }}];
+ { text: _("Place hold"), onclick: { fn: holdFor }},
+ { text: _("Place hold for") + " [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])", onclick: { fn: holdForPatron }},
+ { text: _("Forget") + " [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])", onclick: { fn: forgetPatron }}];
var HoldForButton = new YAHOO.widget.Button({
type: "split",
- label: "Place hold",
+ label: _("Place hold"),
name: "holdfor",
menu: HoldForButtonMenu,
container: "placeholdc",
[% 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>
<span class="noholdstext">No holds allowed</span>
[% ELSE %]
<a id="reserve_[% SEARCH_RESULT.biblionumber %]" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Holds</a>
- [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]&findborrower=[% holdfor_cardnumber %]">Hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></span>[% END %]
+ [% IF ( holdfor ) %] <span class="holdforlink">| <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]&findborrower=[% holdfor_cardnumber %]">Place hold for [% holdfor_firstname %] [% holdfor_surname %] ([% holdfor_cardnumber %])</a></span>[% END %]
[% END %]
[% IF ( CAN_user_editcatalogue_edit_catalogue ) %]
| <a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Edit record</a>
<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[
// prepare DOM for YUI Toolbar
$(document).ready(function() {
+ $('#toolbar').fixFloat();
$("#z3950searchc").empty();
$("#savebutton").empty();
yuiToolbar();
case "a":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>a- Map</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("a- Map") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select name="f1" id="f1" size="1"> \
[% IF ( f1d ) %] \
- <option value="d" selected="selected">d- Atlas</option> \
+ <option value="d" selected="selected">' +
+ _("d- Atlas") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Atlas</option> \
+ <option value="d">' +
+ _("d- Atlas") +
+ '</option> \
[% END %] \
[% IF ( f1g ) %] \
- <option value="g" selected="selected">g- Diagram</option> \
+ <option value="g" selected="selected">' +
+ _("g- Diagram") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Diagram</option> \
+ <option value="g">' +
+ _("g- Diagram") +
+ '</option> \
[% END %] \
[% IF ( f1j ) %] \
- <option value="j" selected="selected">j- Map</option> \
+ <option value="j" selected="selected">' +
+ _("j- Map") +
+ '</option> \
[% ELSE %] \
- <option value="j">j- Map</option> \
+ <option value="j">' +
+ _("j- Map") +
+ '</option> \
[% END %] \
[% IF ( f1k ) %] \
- <option value="k" selected="selected">k- Profile</option> \
+ <option value="k" selected="selected">' +
+ _("k- Profile") +
+ '</option> \
[% ELSE %] \
- <option value="k">k- Profile</option> \
+ <option value="k">' +
+ _("k- Profile") +
+ '</option> \
[% END %] \
[% IF ( f1q ) %] \
- <option value="q" selected="selected">q- Model</option> \
+ <option value="q" selected="selected">' +
+ _("q- Model") +
+ '</option> \
[% ELSE %] \
- <option value="q">q- Model</option> \
+ <option value="q">' +
+ _("q- Model") +
+ '</option> \
[% END %] \
[% IF ( f1r ) %] \
- <option value="r" selected="selected">r- Remote-sensing image</option> \
+ <option value="r" selected="selected">' +
+ _("r- Remote-sensing image") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- Remote-sensing image</option> \
+ <option value="r">' +
+ _("r- Remote-sensing image") +
+ '</option> \
[% END %] \
[% IF ( f1s ) %] \
- <option value="s" selected="selected">s- Section</option> \
+ <option value="s" selected="selected">' +
+ _("s- Section") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- Section</option> \
+ <option value="s">' +
+ _("s- Section") +
+ '</option> \
[% END %] \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1y ) %] \
- <option value="y" selected="selected">y- View</option> \
+ <option value="y" selected="selected">' +
+ _("y- View") +
+ '</option> \
[% ELSE %] \
- <option value="y">y- View</option> \
+ <option value="y">' +
+ _("y- View") +
+ '</option> \
[% END %] \
[% IF ( f1z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f2">02 Undefined</label></td> \
+ <td><label for="f2">' +
+ _("02 Undefined") +
+ '</label></td> \
<td> \
<select name="f2" id="f2" size="1"> \
[% IF ( f2exclamation ) %] \
- <option value=" " selected="selected">#- Undefined</option> \
+ <option value=" " selected="selected">' +
+ _("#- Undefined") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- Undefined</option> \
+ <option value=" ">' +
+ _("#- Undefined") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f3">03 Color</label></td> \
+ <td><label for="f3">' +
+ _("03 Color") +
+ '</label></td> \
<td> \
<select name="f3" id="f3" size="1"> \
[% IF ( f3a ) %] \
- <option value="a" selected="selected">a- One color</option> \
+ <option value="a" selected="selected">' +
+ _("a- One color") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- One color</option> \
+ <option value="a">' +
+ _("a- One color") +
+ '</option> \
[% END %] \
[% IF ( f3c ) %] \
- <option value="c" selected="selected">c- Multicolored</option> \
+ <option value="c" selected="selected">' +
+ _("c- Multicolored") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Multicolored</option> \
+ <option value="c">' +
+ _("c- Multicolored") +
+ '</option> \
[% END %] \
[% IF ( f3pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f4">04 Physical Medium</label></td> \
+ <td><label for="f4">' +
+ _("04 Physical Medium") +
+ '</label></td> \
<td> \
<select name="f4" id="f4" size="1"> \
[% IF ( f4a ) %] \
- <option value="a" selected="selected">a- Paper</option> \
+ <option value="a" selected="selected">' +
+ _("a- Paper") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Paper</option> \
+ <option value="a">' +
+ _("a- Paper") +
+ '</option> \
[% END %] \
[% IF ( f4b ) %] \
- <option value="b" selected="selected">b- Wood</option> \
+ <option value="b" selected="selected">' +
+ _("b- Wood") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Wood</option> \
+ <option value="b">' +
+ _("b- Wood") +
+ '</option> \
[% END %] \
[% IF ( f4c ) %] \
- <option value="c" selected="selected">c- Stone</option> \
+ <option value="c" selected="selected">' +
+ _("c- Stone") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Stone</option> \
+ <option value="c">' +
+ _("c- Stone") +
+ '</option> \
[% END %] \
[% IF ( f4d ) %] \
- <option value="d" selected="selected">d- Metal</option> \
+ <option value="d" selected="selected">' +
+ _("d- Metal") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Metal</option> \
+ <option value="d">' +
+ _("d- Metal") +
+ '</option> \
[% END %] \
[% IF ( f4e ) %] \
- <option value="e" selected="selected">e- Synthetic</option> \
+ <option value="e" selected="selected">' +
+ _("e- Synthetic") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Synthetic</option> \
+ <option value="e">' +
+ _("e- Synthetic") +
+ '</option> \
[% END %] \
[% IF ( f4f ) %] \
- <option value="f" selected="selected">f- Skin</option> \
+ <option value="f" selected="selected">' +
+ _("f- Skin") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Skin</option> \
+ <option value="f">' +
+ _("f- Skin") +
+ '</option> \
[% END %] \
[% IF ( f4g ) %] \
- <option value="g" selected="selected">g- Textiles</option> \
+ <option value="g" selected="selected">' +
+ _("g- Textiles") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Textiles</option> \
+ <option value="g">' +
+ _("g- Textiles") +
+ '</option> \
[% END %] \
[% IF ( f4j ) %] \
- <option value="j" selected="selected">j- Glass</option> \
+ <option value="j" selected="selected">' +
+ _("j- Glass") +
+ '</option> \
[% ELSE %] \
- <option value="j">j- Glass</option> \
+ <option value="j">' +
+ _("j- Glass") +
+ '</option> \
[% END %] \
[% IF ( f4p ) %] \
- <option value="p" selected="selected">p- Plaster</option> \
+ <option value="p" selected="selected">' +
+ _("p- Plaster") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- Plaster</option> \
+ <option value="p">' +
+ _("p- Plaster") +
+ '</option> \
[% END %] \
[% IF ( f4q ) %] \
- <option value="q" selected="selected">q- Flexible base photographic, positive</option> \
+ <option value="q" selected="selected">' +
+ _("q- Flexible base photographic, positive") +
+ '</option> \
[% ELSE %] \
- <option value="q">q- Flexible base photographic, positive</option> \
+ <option value="q">' +
+ _("q- Flexible base photographic, positive") +
+ '</option> \
[% END %] \
[% IF ( f4r ) %] \
- <option value="r" selected="selected">r- Flexible base photographic, negative</option> \
+ <option value="r" selected="selected">' +
+ _("r- Flexible base photographic, negative") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- Flexible base photographic, negative</option> \
+ <option value="r">' +
+ _("r- Flexible base photographic, negative") +
+ '</option> \
[% END %] \
[% IF ( f4s ) %] \
- <option value="s" selected="selected">s- Non-flexible base photographic, positive</option> \
+ <option value="s" selected="selected">' +
+ _("s- Non-flexible base photographic, positive") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- Non-flexible base photographic, positive</option> \
+ <option value="s">' +
+ _("s- Non-flexible base photographic, positive") +
+ '</option> \
[% END %] \
[% IF ( f4t ) %] \
- <option value="t" selected="selected">t- Non-flexible base photographic, negative</option> \
+ <option value="t" selected="selected">' +
+ _("t- Non-flexible base photographic, negative") +
+ '</option> \
[% ELSE %] \
- <option value="t">t- Non-flexible base photographic, negative</option> \
+ <option value="t">' +
+ _("t- Non-flexible base photographic, negative") +
+ '</option> \
[% END %] \
[% IF ( f4u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f4y ) %] \
- <option value="y" selected="selected">y- Other photographic medium</option> \
+ <option value="y" selected="selected">' +
+ _("y- Other photographic medium") +
+ '</option> \
[% ELSE %] \
- <option value="y">y- Other Photographic medium</option> \
+ <option value="y">' +
+ _("y- Other Photographic medium") +
+ '</option> \
[% END %] \
[% IF ( f4z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f4pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f5">05 Type of Reproduction</label></td> \
+ <td><label for="f5">' +
+ _("05 Type of Reproduction") +
+ '</label></td> \
<td> \
<select name="f5" id="f5" size="1"> \
[% IF ( f5f ) %] \
- <option value="f" selected="selected">f- Facsimile</option> \
+ <option value="f" selected="selected">' +
+ _("f- Facsimile") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Facsimile</option> \
+ <option value="f">' +
+ _("f- Facsimile") +
+ '</option> \
[% END %] \
[% IF ( f5n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f5u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f5z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f5pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f6">06 Production/reproduction details</label></td> \
+ <td><label for="f6">' +
+ _("06 Production/reproduction details") +
+ '</label></td> \
<td> \
<select name="f6" id="f6" size="1"> \
[% IF ( f6a ) %] \
- <option value="a" selected="selected">a- Photocopy, blueline print</option> \
+ <option value="a" selected="selected">' +
+ _("a- Photocopy, blueline print") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Photocopy, blueline print</option> \
+ <option value="a">' +
+ _("a- Photocopy, blueline print") +
+ '</option> \
[% END %] \
[% IF ( f6b ) %] \
- <option value="b" selected="selected">b- Photocopy</option> \
+ <option value="b" selected="selected">' +
+ _("b- Photocopy") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Photocopy</option> \
+ <option value="b">' +
+ _("b- Photocopy") +
+ '</option> \
[% END %] \
[% IF ( f6c ) %] \
- <option value="c" selected="selected">c- Pre-production</option> \
+ <option value="c" selected="selected">' +
+ _("c- Pre-production") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Pre-production</option> \
+ <option value="c">' +
+ _("c- Pre-production") +
+ '</option> \
[% END %] \
[% IF ( f6d ) %] \
- <option value="d" selected="selected">d- Film</option> \
+ <option value="d" selected="selected">' +
+ _("d- Film") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Film</option> \
+ <option value="d">' +
+ _("d- Film") +
+ '</option> \
[% END %] \
[% IF ( f6u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f6z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f6pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f7">07 Positive/negative aspect</label></td> \
+ <td><label for="f7">' +
+ _("07 Positive/negative aspect") +
+ '</label></td> \
<td> \
<select name="f7" id="f7" size="1"> \
[% IF ( f7a ) %] \
- <option value="a" selected="selected">a- Positive</option> \
+ <option value="a" selected="selected">' +
+ _("a- Positive") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Positive</option> \
+ <option value="a">' +
+ _("a- Positive") +
+ '</option> \
[% END %] \
[% IF ( f7b ) %] \
- <option value="b" selected="selected">b- Negative</option> \
+ <option value="b" selected="selected">' +
+ _("b- Negative") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Negative</option> \
+ <option value="b">' +
+ _("b- Negative") +
+ '</option> \
[% END %] \
[% IF ( f7m ) %] \
- <option value="m" selected="selected">m- Mixed polarity</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed polarity") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed polarity</option> \
+ <option value="m">' +
+ _("m- Mixed polarity") +
+ '</option> \
[% END %] \
[% IF ( f7n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f7pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
case "c":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>c- Electronic Resource</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("c- Electronic Resource") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select id="f1" name="f1" size="1"> \
[% IF ( f1a ) %] \
- <option value="a" selected="selected">a- Tape cartridge</option> \
+ <option value="a" selected="selected">' +
+ _("a- Tape cartridge") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Tape cartridge</option> \
+ <option value="a">' +
+ _("a- Tape cartridge") +
+ '</option> \
[% END %] \
[% IF ( f1b ) %] \
- <option value="b" selected="selected">b- Chip cartridge</option> \
+ <option value="b" selected="selected">' +
+ _("b- Chip cartridge") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Chip cartridge</option> \
+ <option value="b">' +
+ _("b- Chip cartridge") +
+ '</option> \
[% END %] \
[% IF ( f1c ) %] \
- <option value="c" selected="selected">c- Computer optical disc cartridge</option> \
+ <option value="c" selected="selected">' +
+ _("c- Computer optical disc cartridge") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Computer optical disc cartridge</option> \
+ <option value="c">' +
+ _("c- Computer optical disc cartridge") +
+ '</option> \
[% END %] \
[% IF ( f1f ) %] \
- <option value="f" selected="selected">f- Tape cassette</option> \
+ <option value="f" selected="selected">' +
+ _("f- Tape cassette") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Tape cassette</option> \
+ <option value="f">' +
+ _("f- Tape cassette") +
+ '</option> \
[% END %] \
[% IF ( f1h ) %] \
- <option value="h" selected="selected">h- Tape reel</option> \
+ <option value="h" selected="selected">' +
+ _("h- Tape reel") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Tape reel</option> \
+ <option value="h">' +
+ _("h- Tape reel") +
+ '</option> \
[% END %] \
[% IF ( f1j ) %] \
- <option value="j" selected="selected">j- Magnetic disc</option> \
+ <option value="j" selected="selected">' +
+ _("j- Magnetic disc") +
+ '</option> \
[% ELSE %] \
- <option value="j">j- Magnetic disc</option> \
+ <option value="j">' +
+ _("j- Magnetic disc") +
+ '</option> \
[% END %] \
[% IF ( f1m ) %] \
- <option value="m" selected="selected">m- Magneto-optical disc</option> \
+ <option value="m" selected="selected">' +
+ _("m- Magneto-optical disc") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Magneto-optical disc</option> \
+ <option value="m">' +
+ _("m- Magneto-optical disc") +
+ '</option> \
[% END %] \
[% IF ( f1o ) %] \
- <option value="o" selected="selected">o- Optical disc</option> \
+ <option value="o" selected="selected">' +
+ _("o- Optical disc") +
+ '</option> \
[% ELSE %] \
- <option value="o">o- Optical disc</option> \
+ <option value="o">' +
+ _("o- Optical disc") +
+ '</option> \
[% END %] \
[% IF ( f1r ) %] \
- <option value="r" selected="selected">r- Remote</option> \
+ <option value="r" selected="selected">' +
+ _("r- Remote") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- Remote</option> \
+ <option value="r">' +
+ _("r- Remote") +
+ '</option> \
[% END %] \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f2">02 Undefined</label></td> \
+ <td><label for="f2">' +
+ _("02 Undefined") +
+ '</label></td> \
<td> \
<select id="f2" name="f2" size="1"> \
[% IF ( f2exclamation ) %] \
- <option value=" " selected="selected">#- Undefined</option> \
+ <option value=" " selected="selected">' +
+ _("#- Undefined") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- Undefined</option> \
+ <option value=" ">' +
+ _("#- Undefined") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f3">03 Color</label></td> \
+ <td><label for="f3">' +
+ _("03 Color") +
+ '</label></td> \
<td> \
<select id="f3" name="f3" size="1"> \
[% IF ( f3a ) %] \
- <option value="a" selected="selected">a- One color</option> \
+ <option value="a" selected="selected">' +
+ _("a- One color") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- One color</option> \
+ <option value="a">' +
+ _("a- One color") +
+ '</option> \
[% END %] \
[% IF ( f3b ) %] \
- <option value="b" selected="selected">b- Black-and-white</option> \
+ <option value="b" selected="selected">' +
+ _("b- Black-and-white") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Black-and-white</option> \
+ <option value="b">' +
+ _("b- Black-and-white") +
+ '</option> \
[% END %] \
[% IF ( f3c ) %] \
- <option value="c" selected="selected">c- Multicolored</option> \
+ <option value="c" selected="selected">' +
+ _("c- Multicolored") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Multicolored</option> \
+ <option value="c">' +
+ _("c- Multicolored") +
+ '</option> \
[% END %] \
[% IF ( f3g ) %] \
- <option value="g" selected="selected">g- Gray scale</option> \
+ <option value="g" selected="selected">' +
+ _("g- Gray scale") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Gray scale</option> \
+ <option value="g">' +
+ _("g- Gray scale") +
+ '</option> \
[% END %] \
[% IF ( f3m ) %] \
- <option value="m" selected="selected">m- Mixed</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed</option> \
+ <option value="m">' +
+ _("m- Mixed") +
+ '</option> \
[% END %] \
[% IF ( f3n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f3u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f3z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f3pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f4">04 Dimensions</label></td> \
+ <td><label for="f4">' +
+ _("04 Dimensions") +
+ '</label></td> \
<td> \
<select id="f4" name="f4" size="1"> \
[% IF ( f4a ) %] \
- <option value="a" selected="selected">a- 3 1/2 in.</option> \
+ <option value="a" selected="selected">' +
+ _("a- 3 1/2 in.") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- 3 1/2 in.</option> \
+ <option value="a">' +
+ _("a- 3 1/2 in.") +
+ '</option> \
[% END %] \
[% IF ( f4e ) %] \
- <option value="e" selected="selected">e- 12 in.</option> \
+ <option value="e" selected="selected">' +
+ _("e- 12 in.") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- 12 in.</option> \
+ <option value="e">' +
+ _("e- 12 in.") +
+ '</option> \
[% END %] \
[% IF ( f4g ) %] \
- <option value="g" selected="selected">g- 4 3/4 in. or 12 cm.</option> \
+ <option value="g" selected="selected">' +
+ _("g- 4 3/4 in. or 12 cm.") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- 4 3/4 in. or 12 cm.</option> \
+ <option value="g">' +
+ _("g- 4 3/4 in. or 12 cm.") +
+ '</option> \
[% END %] \
[% IF ( f4i ) %] \
- <option value="i" selected="selected">i- 1 1/8 x 2 3/8 in.</option> \
+ <option value="i" selected="selected">' +
+ _("i- 1 1/8 x 2 3/8 in.") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- 1 1/8 x 2 3/8 in.</option> \
+ <option value="i">' +
+ _("i- 1 1/8 x 2 3/8 in.") +
+ '</option> \
[% END %] \
[% IF ( f4j ) %] \
- <option value="j" selected="selected">j- 3 7/8 x 2 1/2 in.</option> \
+ <option value="j" selected="selected">' +
+ _("j- 3 7/8 x 2 1/2 in.") +
+ '</option> \
[% ELSE %] \
- <option value="j">j- 3 7/8 x 2 1/2 in.</option> \
+ <option value="j">' +
+ _("j- 3 7/8 x 2 1/2 in.") +
+ '</option> \
[% END %] \
[% IF ( f4n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f4o ) %] \
- <option value="o" selected="selected">o- 5 1/4 in.</option> \
+ <option value="o" selected="selected">' +
+ _("o- 5 1/4 in.") +
+ '</option> \
[% ELSE %] \
- <option value="o">o- 5 1/4 in.</option> \
+ <option value="o">' +
+ _("o- 5 1/4 in.") +
+ '</option> \
[% END %] \
[% IF ( f4u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f4v ) %] \
- <option value="v" selected="selected">v- 8 in.</option> \
+ <option value="v" selected="selected">' +
+ _("v- 8 in.") +
+ '</option> \
[% ELSE %] \
- <option value="v">v- 8 in.</option> \
+ <option value="v">' +
+ _("v- 8 in.") +
+ '</option> \
[% END %] \
[% IF ( f4z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f4pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f5">05 Sound</label></td> \
+ <td><label for="f5">' +
+ _("05 Sound") +
+ '</label></td> \
<td> \
<select id="f5" name="f5" size="1"> \
[% IF ( f5exclamation ) %] \
- <option value=" " selected="selected">#- No sound (silent)</option> \
+ <option value=" " selected="selected">' +
+ _("#- No sound (silent)") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- No sound (silent)</option> \
+ <option value=" ">' +
+ _("#- No sound (silent)") +
+ '</option> \
[% END %] \
[% IF ( f5a ) %] \
- <option value="a" selected="selected">a- Sound</option> \
+ <option value="a" selected="selected">' +
+ _("a- Sound") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Sound</option> \
+ <option value="a">' +
+ _("a- Sound") +
+ '</option> \
[% END %] \
[% IF ( f5u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f5pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f6">06-08 Image bit depth</label> <br /><I>(if exact bit depth known, enter; <br />otherwise use pulldown)</i></td> \
+ <td><label for="f6">' +
+ _("06-08 Image bit depth") +
+ '</label> <br /><I>(if exact bit depth known, enter; <br />otherwise use pulldown)</i></td> \
<td><input type="text" size=3 name="f6" id = "f6" value="[% f6 %][% f7 %][% f8 %]" />- <label for="f6pulldown">Exact bit depth 001-999</label> \
<select id="f6pulldown" name="f6pulldown" onchange="editER_fld6(this.options[selectedIndex].value)"> \
- <option value=""> </option> \
+ <option value="">' +
+ _(" ") +
+ '</option> \
[% IF ( f6m ) %] \
- <option value="mmm" selected="selected">mmm- Multiple</option> \
+ <option value="mmm" selected="selected">' +
+ _("mmm- Multiple") +
+ '</option> \
[% ELSE %] \
- <option value="mmm">mmm- Multiple</option> \
+ <option value="mmm">' +
+ _("mmm- Multiple") +
+ '</option> \
[% END %] \
[% IF ( f6n ) %] \
- <option value="nnn" selected="selected">nnn- Not applicable</option> \
+ <option value="nnn" selected="selected">' +
+ _("nnn- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="nnn">nnn- Not applicable</option> \
+ <option value="nnn">' +
+ _("nnn- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f6minus ) %] \
- <option value="---" selected="selected">--- - Unknown</option> \
+ <option value="---" selected="selected">' +
+ _("--- - Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="---">--- - Unknown</option> \
+ <option value="---">' +
+ _("--- - Unknown") +
+ '</option> \
[% END %] \
[% IF ( f6pipe ) %] \
- <option value="|||" selected="selected">||| - No attempt to code</option> \
+ <option value="|||" selected="selected">' +
+ _("||| - No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|||">||| - No attempt to code</option> \
+ <option value="|||">' +
+ _("||| - No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f7">09 File Formats</label></td> \
+ <td><label for="f7">' +
+ _("09 File Formats") +
+ '</label></td> \
<td> \
<select id="f7" name="f7" size="1"> \
[% IF ( f7a ) %] \
- <option value="a" selected="selected">a- One file format</option> \
+ <option value="a" selected="selected">' +
+ _("a- One file format") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- One file format</option> \
+ <option value="a">' +
+ _("a- One file format") +
+ '</option> \
[% END %] \
[% IF ( f7m ) %] \
- <option value="m" selected="selected">m- Multiple file formats</option> \
+ <option value="m" selected="selected">' +
+ _("m- Multiple file formats") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Multiple file formats</option> \
+ <option value="m">' +
+ _("m- Multiple file formats") +
+ '</option> \
[% END %] \
[% IF ( f7u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f7pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f8">10 Quality assurance target(s)</label></td> \
+ <td><label for="f8">' +
+ _("10 Quality assurance target(s)") +
+ '</label></td> \
<td> \
<select id="f8" name="f8" size="1"> \
[% IF ( f8a ) %] \
- <option value="a" selected="selected">a- Absent</option> \
+ <option value="a" selected="selected">' +
+ _("a- Absent") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Absent</option> \
+ <option value="a">' +
+ _("a- Absent") +
+ '</option> \
[% END %] \
[% IF ( f8n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f8p ) %] \
- <option value="p" selected="selected">p- Present</option> \
+ <option value="p" selected="selected">' +
+ _("p- Present") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- Present</option> \
+ <option value="p">' +
+ _("p- Present") +
+ '</option> \
[% END %] \
[% IF ( f8u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f8pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f9">11 Antecedent/Source</label></td> \
+ <td><label for="f9">' +
+ _("11 Antecedent/Source") +
+ '</label></td> \
<td> \
<select id="f9" name="f9" size="1"> \
[% IF ( f9a ) %] \
- <option value="a" selected="selected">a- File reproduced from original</option> \
+ <option value="a" selected="selected">' +
+ _("a- File reproduced from original") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- File reproduced from original</option> \
+ <option value="a">' +
+ _("a- File reproduced from original") +
+ '</option> \
[% END %] \
[% IF ( f9b ) %] \
- <option value="b" selected="selected">b- File reproduced from microform</option> \
+ <option value="b" selected="selected">' +
+ _("b- File reproduced from microform") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- File reproduced from microform</option> \
+ <option value="b">' +
+ _("b- File reproduced from microform") +
+ '</option> \
[% END %] \
[% IF ( f9c ) %] \
- <option value="c" selected="selected">c- File reproduced from an electronic resource</option> \
+ <option value="c" selected="selected">' +
+ _("c- File reproduced from an electronic resource") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- File reproduced from an electronic resource</option> \
+ <option value="c">' +
+ _("c- File reproduced from an electronic resource") +
+ '</option> \
[% END %] \
[% IF ( f9d ) %] \
- <option value="d" selected="selected">d- File reproduced from an intermediate (not microform)</option> \
+ <option value="d" selected="selected">' +
+ _("d- File reproduced from an intermediate (not microform)") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- File reproduced from an intermediate (not microform)</option> \
+ <option value="d">' +
+ _("d- File reproduced from an intermediate (not microform)") +
+ '</option> \
[% END %] \
[% IF ( f9m ) %] \
- <option value="m" selected="selected">m- Mixed</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed</option> \
+ <option value="m">' +
+ _("m- Mixed") +
+ '</option> \
[% END %] \
[% IF ( f9n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f9u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f9pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f10">12 Level of compression</label></td> \
+ <td><label for="f10">' +
+ _("12 Level of compression") +
+ '</label></td> \
<td> \
<select id="f10" name="f10" size="1"> \
[% IF ( f10a ) %] \
- <option value="a" selected="selected">a- Uncompressed</option> \
+ <option value="a" selected="selected">' +
+ _("a- Uncompressed") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Uncompressed</option> \
+ <option value="a">' +
+ _("a- Uncompressed") +
+ '</option> \
[% END %] \
[% IF ( f10b ) %] \
- <option value="b" selected="selected">b- Lossless</option> \
+ <option value="b" selected="selected">' +
+ _("b- Lossless") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Lossless</option> \
+ <option value="b">' +
+ _("b- Lossless") +
+ '</option> \
[% END %] \
[% IF ( f10d ) %] \
- <option value="d" selected="selected">d- Lossy</option> \
+ <option value="d" selected="selected">' +
+ _("d- Lossy") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Lossy</option> \
+ <option value="d">' +
+ _("d- Lossy") +
+ '</option> \
[% END %] \
[% IF ( f10m ) %] \
- <option value="m" selected="selected">m- Mixed</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed</option> \
+ <option value="m">' +
+ _("m- Mixed") +
+ '</option> \
[% END %] \
[% IF ( f10u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f10pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f11">13 Reformatting Quality</label></td> \
+ <td><label for="f11">' +
+ _("13 Reformatting Quality") +
+ '</label></td> \
<td> \
<select id="f11" name="f11" size="1"> \
[% IF ( f11a ) %] \
- <option value="a" selected="selected">a- Access</option> \
+ <option value="a" selected="selected">' +
+ _("a- Access") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Access</option> \
+ <option value="a">' +
+ _("a- Access") +
+ '</option> \
[% END %] \
[% IF ( f11n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f11p ) %] \
- <option value="p" selected="selected">p- Preservation</option> \
+ <option value="p" selected="selected">' +
+ _("p- Preservation") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- Preservation</option> \
+ <option value="p">' +
+ _("p- Preservation") +
+ '</option> \
[% END %] \
[% IF ( f11r ) %] \
- <option value="r" selected="selected">r- Replacement</option> \
+ <option value="r" selected="selected">' +
+ _("r- Replacement") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- Replacement</option> \
+ <option value="r">' +
+ _("r- Replacement") +
+ '</option> \
[% END %] \
[% IF ( f11u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f11pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
case "d":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>d- Globe</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("d- Globe") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select name="f1" id="f1" size="1"> \
[% IF ( f1a ) %] \
- <option value="a" selected="selected">a- Celestial globe</option> \
+ <option value="a" selected="selected">' +
+ _("a- Celestial globe") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Celestial globe</option> \
+ <option value="a">' +
+ _("a- Celestial globe") +
+ '</option> \
[% END %] \
[% IF ( f1b ) %] \
- <option value="b" selected="selected">b- Planetary or lunar globe</option> \
+ <option value="b" selected="selected">' +
+ _("b- Planetary or lunar globe") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Planetary or lunar globe</option> \
+ <option value="b">' +
+ _("b- Planetary or lunar globe") +
+ '</option> \
[% END %] \
[% IF ( f1c ) %] \
- <option value="c" selected="selected">c- Terrestrial globe</option> \
+ <option value="c" selected="selected">' +
+ _("c- Terrestrial globe") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Terrestrial globe</option> \
+ <option value="c">' +
+ _("c- Terrestrial globe") +
+ '</option> \
[% END %] \
[% IF ( f1e ) %] \
- <option value="e" selected="selected">e- Earth moon globe</option> \
+ <option value="e" selected="selected">' +
+ _("e- Earth moon globe") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Earth moon globe</option> \
+ <option value="e">' +
+ _("e- Earth moon globe") +
+ '</option> \
[% END %] \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f2">02 Undefined</label></td> \
+ <td><label for="f2">' +
+ _("02 Undefined") +
+ '</label></td> \
<td> \
<select name="f2" id="f2" size="1"> \
[% IF ( f2exclamation ) %] \
- <option value=" " selected="selected">#- Undefined</option> \
+ <option value=" " selected="selected">' +
+ _("#- Undefined") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- Undefined</option> \
+ <option value=" ">' +
+ _("#- Undefined") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f3">03 Color</label></td> \
+ <td><label for="f3">' +
+ _("03 Color") +
+ '</label></td> \
<td> \
<select name="f3" id="f3" size="1"> \
[% IF ( f3a ) %] \
- <option value="a" selected="selected">a- One color</option> \
+ <option value="a" selected="selected">' +
+ _("a- One color") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- One color</option> \
+ <option value="a">' +
+ _("a- One color") +
+ '</option> \
[% END %] \
[% IF ( f3c ) %] \
- <option value="c" selected="selected">c- Multicolored</option> \
+ <option value="c" selected="selected">' +
+ _("c- Multicolored") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Multicolored</option> \
+ <option value="c">' +
+ _("c- Multicolored") +
+ '</option> \
[% END %] \
[% IF ( f3pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f4">04 Physical Medium</label></td> \
+ <td><label for="f4">' +
+ _("04 Physical Medium") +
+ '</label></td> \
<td> \
<select name="f4" id="f4" size="1"> \
[% IF ( f4a ) %] \
- <option value="a" selected="selected">a- Paper</option> \
+ <option value="a" selected="selected">' +
+ _("a- Paper") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Paper</option> \
+ <option value="a">' +
+ _("a- Paper") +
+ '</option> \
[% END %] \
[% IF ( f4b ) %] \
- <option value="b" selected="selected">b- Wood</option> \
+ <option value="b" selected="selected">' +
+ _("b- Wood") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Wood</option> \
+ <option value="b">' +
+ _("b- Wood") +
+ '</option> \
[% END %] \
[% IF ( f4c ) %] \
- <option value="c" selected="selected">c- Stone</option> \
+ <option value="c" selected="selected">' +
+ _("c- Stone") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Stone</option> \
+ <option value="c">' +
+ _("c- Stone") +
+ '</option> \
[% END %] \
[% IF ( f4d ) %] \
- <option value="d" selected="selected">d- Metal</option> \
+ <option value="d" selected="selected">' +
+ _("d- Metal") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Metal</option> \
+ <option value="d">' +
+ _("d- Metal") +
+ '</option> \
[% END %] \
[% IF ( f4e ) %] \
- <option value="e" selected="selected">e- Synthetic</option> \
+ <option value="e" selected="selected">' +
+ _("e- Synthetic") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Synthetic</option> \
+ <option value="e">' +
+ _("e- Synthetic") +
+ '</option> \
[% END %] \
[% IF ( f4f ) %] \
- <option value="f" selected="selected">f- Skin</option> \
+ <option value="f" selected="selected">' +
+ _("f- Skin") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Skin</option> \
+ <option value="f">' +
+ _("f- Skin") +
+ '</option> \
[% END %] \
[% IF ( f4g ) %] \
- <option value="g" selected="selected">g- Textile</option> \
+ <option value="g" selected="selected">' +
+ _("g- Textile") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Textile</option> \
+ <option value="g">' +
+ _("g- Textile") +
+ '</option> \
[% END %] \
[% IF ( f4p ) %] \
- <option value="p" selected="selected">p- Plaster</option> \
+ <option value="p" selected="selected">' +
+ _("p- Plaster") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- Plaster</option> \
+ <option value="p">' +
+ _("p- Plaster") +
+ '</option> \
[% END %] \
[% IF ( f4u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f4z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f4pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f5">05 Type of Reproduction</label></td> \
+ <td><label for="f5">' +
+ _("05 Type of Reproduction") +
+ '</label></td> \
<td> \
<select name="f5" id="f5" size="1"> \
[% IF ( f5f ) %] \
- <option value="f" selected="selected">f- Facsimile</option> \
+ <option value="f" selected="selected">' +
+ _("f- Facsimile") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Facsimile</option> \
+ <option value="f">' +
+ _("f- Facsimile") +
+ '</option> \
[% END %] \
[% IF ( f5n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f5u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f5z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f5pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
case "f":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>f- Tactile Material</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("f- Tactile Material") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select name="f1" id="f1" size="1"> \
[% IF ( f1a ) %] \
- <option value="a" selected="selected">a- Moon</option> \
+ <option value="a" selected="selected">' +
+ _("a- Moon") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Moon</option> \
+ <option value="a">' +
+ _("a- Moon") +
+ '</option> \
[% END %] \
[% IF ( f1b ) %] \
- <option value="b" selected="selected">b- Braille</option> \
+ <option value="b" selected="selected">' +
+ _("b- Braille") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Braille</option> \
+ <option value="b">' +
+ _("b- Braille") +
+ '</option> \
[% END %] \
[% IF ( f1c ) %] \
- <option value="c" selected="selected">c- Combination</option> \
+ <option value="c" selected="selected">' +
+ _("c- Combination") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Combination</option> \
+ <option value="c">' +
+ _("c- Combination") +
+ '</option> \
[% END %] \
[% IF ( f1d ) %] \
- <option value="d" selected="selected">d- Tactile, with no writing system</option> \
+ <option value="d" selected="selected">' +
+ _("d- Tactile, with no writing system") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Tactile, with no writing system</option> \
+ <option value="d">' +
+ _("d- Tactile, with no writing system") +
+ '</option> \
[% END %] \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f2">02 Undefined</label></td> \
+ <td><label for="f2">' +
+ _("02 Undefined") +
+ '</label></td> \
<td> \
<select name="f2" id="f2" size="1"> \
[% IF ( f2exclamation ) %] \
- <option value=" " selected="selected">#- Undefined</option> \
+ <option value=" " selected="selected">' +
+ _("#- Undefined") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- Undefined</option> \
+ <option value=" ">' +
+ _("#- Undefined") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f3">03 Class of braille writing</label></td> \
+ <td><label for="f3">' +
+ _("03 Class of braille writing") +
+ '</label></td> \
<td> \
<select name="f3" id="f3" size="1"> \
[% IF ( f3exclamation ) %] \
- <option value=" " selected="selected">#- No specified class of braille writing</option> \
+ <option value=" " selected="selected">' +
+ _("#- No specified class of braille writing") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- No specified class of braille writing</option> \
+ <option value=" ">' +
+ _("#- No specified class of braille writing") +
+ '</option> \
[% END %] \
[% IF ( f3a ) %] \
- <option value="a" selected="selected">a- Literary braille</option> \
+ <option value="a" selected="selected">' +
+ _("a- Literary braille") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Literary braille</option> \
+ <option value="a">' +
+ _("a- Literary braille") +
+ '</option> \
[% END %] \
[% IF ( f3b ) %] \
- <option value="b" selected="selected">b- Format code braille</option> \
+ <option value="b" selected="selected">' +
+ _("b- Format code braille") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Format code braille</option> \
+ <option value="b">' +
+ _("b- Format code braille") +
+ '</option> \
[% END %] \
[% IF ( f3c ) %] \
- <option value="c" selected="selected">c- Mathematics and scientific braille</option> \
+ <option value="c" selected="selected">' +
+ _("c- Mathematics and scientific braille") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Mathematics and scientific braille</option> \
+ <option value="c">' +
+ _("c- Mathematics and scientific braille") +
+ '</option> \
[% END %] \
[% IF ( f3d ) %] \
- <option value="d" selected="selected">d- Computer braille</option> \
+ <option value="d" selected="selected">' +
+ _("d- Computer braille") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Computer braille</option> \
+ <option value="d">' +
+ _("d- Computer braille") +
+ '</option> \
[% END %] \
[% IF ( f3e ) %] \
- <option value="e" selected="selected">e- Music braille</option> \
+ <option value="e" selected="selected">' +
+ _("e- Music braille") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Music braille</option> \
+ <option value="e">' +
+ _("e- Music braille") +
+ '</option> \
[% END %] \
[% IF ( f3m ) %] \
- <option value="m" selected="selected">m- Multiple braille types</option> \
+ <option value="m" selected="selected">' +
+ _("m- Multiple braille types") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Multiple braille types</option> \
+ <option value="m">' +
+ _("m- Multiple braille types") +
+ '</option> \
[% END %] \
[% IF ( f3n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f3u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f3z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f3pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
- <td><label for="f4">04 Class of braille writing (2nd option)</label></td> \
+ <td><label for="f4">' +
+ _("04 Class of braille writing (2nd option)") +
+ '</label></td> \
<td> \
<select name="f4" id="f4" size="1"> \
[% IF ( f4exclamation ) %] \
- <option value=" " selected="selected">#- No specified class of braille writing</option> \
+ <option value=" " selected="selected">' +
+ _("#- No specified class of braille writing") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- No specified class of braille writing</option> \
+ <option value=" ">' +
+ _("#- No specified class of braille writing") +
+ '</option> \
[% END %] \
[% IF ( f4a ) %] \
- <option value="a" selected="selected">a- Literary braille</option> \
+ <option value="a" selected="selected">' +
+ _("a- Literary braille") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Literary braille</option> \
+ <option value="a">' +
+ _("a- Literary braille") +
+ '</option> \
[% END %] \
[% IF ( f4b ) %] \
- <option value="b" selected="selected">b- Format code braille</option> \
+ <option value="b" selected="selected">' +
+ _("b- Format code braille") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Format code braille</option> \
+ <option value="b">' +
+ _("b- Format code braille") +
+ '</option> \
[% END %] \
[% IF ( f4c ) %] \
- <option value="c" selected="selected">c- Mathematics and scientific braille</option> \
+ <option value="c" selected="selected">' +
+ _("c- Mathematics and scientific braille") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Mathematics and scientific braille</option> \
+ <option value="c">' +
+ _("c- Mathematics and scientific braille") +
+ '</option> \
[% END %] \
[% IF ( f4d ) %] \
- <option value="d" selected="selected">d- Computer braille</option> \
+ <option value="d" selected="selected">' +
+ _("d- Computer braille") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Computer braille</option> \
+ <option value="d">' +
+ _("d- Computer braille") +
+ '</option> \
[% END %] \
[% IF ( f4e ) %] \
- <option value="e" selected="selected">e- Music braille</option> \
+ <option value="e" selected="selected">' +
+ _("e- Music braille") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Music braille</option> \
+ <option value="e">' +
+ _("e- Music braille") +
+ '</option> \
[% END %] \
[% IF ( f4m ) %] \
- <option value="m" selected="selected">m- Multiple braille types</option> \
+ <option value="m" selected="selected">' +
+ _("m- Multiple braille types") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Multiple braille types</option> \
+ <option value="m">' +
+ _("m- Multiple braille types") +
+ '</option> \
[% END %] \
[% IF ( f4n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f4u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f4z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f4pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f5">05 Level of contraction</label></td> \
+ <td><label for="f5">' +
+ _("05 Level of contraction") +
+ '</label></td> \
<td> \
<select name="f5" id="f5" size="1"> \
[% IF ( f5a ) %] \
- <option value="a" selected="selected">a- Uncontracted</option> \
+ <option value="a" selected="selected">' +
+ _("a- Uncontracted") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Uncontracted</option> \
+ <option value="a">' +
+ _("a- Uncontracted") +
+ '</option> \
[% END %] \
[% IF ( f5b ) %] \
- <option value="b" selected="selected">b- Contracted</option> \
+ <option value="b" selected="selected">' +
+ _("b- Contracted") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Contracted</option> \
+ <option value="b">' +
+ _("b- Contracted") +
+ '</option> \
[% END %] \
[% IF ( f5m ) %] \
- <option value="m" selected="selected">m- Combination</option> \
+ <option value="m" selected="selected">' +
+ _("m- Combination") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Combination</option> \
+ <option value="m">' +
+ _("m- Combination") +
+ '</option> \
[% END %] \
[% IF ( f5n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f5u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f5z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f5pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f6">06 Braille music format</label></td> \
+ <td><label for="f6">' +
+ _("06 Braille music format") +
+ '</label></td> \
<td> \
<select name="f6" id="f6" size="1"> \
[% IF ( f6exclamation ) %] \
- <option value=" " selected="selected">#- No specified braille music format</option> \
+ <option value=" " selected="selected">' +
+ _("#- No specified braille music format") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- No specified braille music format</option> \
+ <option value=" ">' +
+ _("#- No specified braille music format") +
+ '</option> \
[% END %] \
[% IF ( f6a ) %] \
- <option value="a" selected="selected">a- Bar over bar</option> \
+ <option value="a" selected="selected">' +
+ _("a- Bar over bar") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Bar over bar</option> \
+ <option value="a">' +
+ _("a- Bar over bar") +
+ '</option> \
[% END %] \
[% IF ( f6b ) %] \
- <option value="b" selected="selected">b- Bar by bar</option> \
+ <option value="b" selected="selected">' +
+ _("b- Bar by bar") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Bar by bar</option> \
+ <option value="b">' +
+ _("b- Bar by bar") +
+ '</option> \
[% END %] \
[% IF ( f6c ) %] \
- <option value="c" selected="selected">c- Line over line</option> \
+ <option value="c" selected="selected">' +
+ _("c- Line over line") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Line over line</option> \
+ <option value="c">' +
+ _("c- Line over line") +
+ '</option> \
[% END %] \
[% IF ( f6d ) %] \
- <option value="d" selected="selected">d- Paragraph</option> \
+ <option value="d" selected="selected">' +
+ _("d- Paragraph") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Paragraph</option> \
+ <option value="d">' +
+ _("d- Paragraph") +
+ '</option> \
[% END %] \
[% IF ( f6e ) %] \
- <option value="e" selected="selected">e- Single line</option> \
+ <option value="e" selected="selected">' +
+ _("e- Single line") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Single line</option> \
+ <option value="e">' +
+ _("e- Single line") +
+ '</option> \
[% END %] \
[% IF ( f6f ) %] \
- <option value="f" selected="selected">f- Section by section</option> \
+ <option value="f" selected="selected">' +
+ _("f- Section by section") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Section by section</option> \
+ <option value="f">' +
+ _("f- Section by section") +
+ '</option> \
[% END %] \
[% IF ( f6g ) %] \
- <option value="g" selected="selected">g- Line by line</option> \
+ <option value="g" selected="selected">' +
+ _("g- Line by line") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Line by line</option> \
+ <option value="g">' +
+ _("g- Line by line") +
+ '</option> \
[% END %] \
[% IF ( f6h ) %] \
- <option value="h" selected="selected">h- Open score</option> \
+ <option value="h" selected="selected">' +
+ _("h- Open score") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Open score</option> \
+ <option value="h">' +
+ _("h- Open score") +
+ '</option> \
[% END %] \
[% IF ( f6i ) %] \
- <option value="i" selected="selected">i- Spanner short form scoring</option> \
+ <option value="i" selected="selected">' +
+ _("i- Spanner short form scoring") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Spanner short form scoring</option> \
+ <option value="i">' +
+ _("i- Spanner short form scoring") +
+ '</option> \
[% END %] \
[% IF ( f6j ) %] \
- <option value="j" selected="selected">j- Short form scoring</option> \
+ <option value="j" selected="selected">' +
+ _("j- Short form scoring") +
+ '</option> \
[% ELSE %] \
- <option value="j">j- Short form scoring</option> \
+ <option value="j">' +
+ _("j- Short form scoring") +
+ '</option> \
[% END %] \
[% IF ( f6k ) %] \
- <option value="k" selected="selected">k- Outline</option> \
+ <option value="k" selected="selected">' +
+ _("k- Outline") +
+ '</option> \
[% ELSE %] \
- <option value="k">k- Outline</option> \
+ <option value="k">' +
+ _("k- Outline") +
+ '</option> \
[% END %] \
[% IF ( f6l ) %] \
- <option value="l" selected="selected">l- Vertical score</option> \
+ <option value="l" selected="selected">' +
+ _("l- Vertical score") +
+ '</option> \
[% ELSE %] \
- <option value="l">l- Vertical score</option> \
+ <option value="l">' +
+ _("l- Vertical score") +
+ '</option> \
[% END %] \
[% IF ( f6n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f6u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f6z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f6pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
- <td><label for="f7">07 Braille music format (2nd option)</label></td> \
+ <td><label for="f7">' +
+ _("07 Braille music format (2nd option)") +
+ '</label></td> \
<td> \
<select name="f7" id="f7" size="1"> \
[% IF ( f7exclamation ) %] \
- <option value=" " selected="selected">#- No specified braille music format</option> \
+ <option value=" " selected="selected">' +
+ _("#- No specified braille music format") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- No specified braille music format</option> \
+ <option value=" ">' +
+ _("#- No specified braille music format") +
+ '</option> \
[% END %] \
[% IF ( f7a ) %] \
- <option value="a" selected="selected">a- Bar over bar</option> \
+ <option value="a" selected="selected">' +
+ _("a- Bar over bar") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Bar over bar</option> \
+ <option value="a">' +
+ _("a- Bar over bar") +
+ '</option> \
[% END %] \
[% IF ( f7b ) %] \
- <option value="b" selected="selected">b- Bar by bar</option> \
+ <option value="b" selected="selected">' +
+ _("b- Bar by bar") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Bar by bar</option> \
+ <option value="b">' +
+ _("b- Bar by bar") +
+ '</option> \
[% END %] \
[% IF ( f7c ) %] \
- <option value="c" selected="selected">c- Line over line</option> \
+ <option value="c" selected="selected">' +
+ _("c- Line over line") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Line over line</option> \
+ <option value="c">' +
+ _("c- Line over line") +
+ '</option> \
[% END %] \
[% IF ( f7d ) %] \
- <option value="d" selected="selected">d- Paragraph</option> \
+ <option value="d" selected="selected">' +
+ _("d- Paragraph") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Paragraph</option> \
+ <option value="d">' +
+ _("d- Paragraph") +
+ '</option> \
[% END %] \
[% IF ( f7e ) %] \
- <option value="e" selected="selected">e- Single line</option> \
+ <option value="e" selected="selected">' +
+ _("e- Single line") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Single line</option> \
+ <option value="e">' +
+ _("e- Single line") +
+ '</option> \
[% END %] \
[% IF ( f7f ) %] \
- <option value="f" selected="selected">f- Section by section</option> \
+ <option value="f" selected="selected">' +
+ _("f- Section by section") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Section by section</option> \
+ <option value="f">' +
+ _("f- Section by section") +
+ '</option> \
[% END %] \
[% IF ( f7g ) %] \
- <option value="g" selected="selected">g- Line by line</option> \
+ <option value="g" selected="selected">' +
+ _("g- Line by line") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Line by line</option> \
+ <option value="g">' +
+ _("g- Line by line") +
+ '</option> \
[% END %] \
[% IF ( f7h ) %] \
- <option value="h" selected="selected">h- Open score</option> \
+ <option value="h" selected="selected">' +
+ _("h- Open score") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Open score</option> \
+ <option value="h">' +
+ _("h- Open score") +
+ '</option> \
[% END %] \
[% IF ( f7i ) %] \
- <option value="i" selected="selected">i- Spanner short form scoring</option> \
+ <option value="i" selected="selected">' +
+ _("i- Spanner short form scoring") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Spanner short form scoring</option> \
+ <option value="i">' +
+ _("i- Spanner short form scoring") +
+ '</option> \
[% END %] \
[% IF ( f7j ) %] \
- <option value="j" selected="selected">j- Short form scoring</option> \
+ <option value="j" selected="selected">' +
+ _("j- Short form scoring") +
+ '</option> \
[% ELSE %] \
- <option value="j">j- Short form scoring</option> \
+ <option value="j">' +
+ _("j- Short form scoring") +
+ '</option> \
[% END %] \
[% IF ( f7k ) %] \
- <option value="k" selected="selected">k- Outline</option> \
+ <option value="k" selected="selected">' +
+ _("k- Outline") +
+ '</option> \
[% ELSE %] \
- <option value="k">k- Outline</option> \
+ <option value="k">' +
+ _("k- Outline") +
+ '</option> \
[% END %] \
[% IF ( f7l ) %] \
- <option value="l" selected="selected">l- Vertical score</option> \
+ <option value="l" selected="selected">' +
+ _("l- Vertical score") +
+ '</option> \
[% ELSE %] \
- <option value="l">l- Vertical score</option> \
+ <option value="l">' +
+ _("l- Vertical score") +
+ '</option> \
[% END %] \
[% IF ( f7n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f7u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f7z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f7pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
- <td><label for="f8">08 Braille music format (3rd option)</label></td> \
+ <td><label for="f8">' +
+ _("08 Braille music format (3rd option)") +
+ '</label></td> \
<td> \
<select name="f8" id="f8" size="1"> \
[% IF ( f8exclamation ) %] \
- <option value=" " selected="selected">#- No specified braille music format</option> \
+ <option value=" " selected="selected">' +
+ _("#- No specified braille music format") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- No specified braille music format</option> \
+ <option value=" ">' +
+ _("#- No specified braille music format") +
+ '</option> \
[% END %] \
[% IF ( f8a ) %] \
- <option value="a" selected="selected">a- Bar over bar</option> \
+ <option value="a" selected="selected">' +
+ _("a- Bar over bar") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Bar over bar</option> \
+ <option value="a">' +
+ _("a- Bar over bar") +
+ '</option> \
[% END %] \
[% IF ( f8b ) %] \
- <option value="b" selected="selected">b- Bar by bar</option> \
+ <option value="b" selected="selected">' +
+ _("b- Bar by bar") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Bar by bar</option> \
+ <option value="b">' +
+ _("b- Bar by bar") +
+ '</option> \
[% END %] \
[% IF ( f8c ) %] \
- <option value="c" selected="selected">c- Line over line</option> \
+ <option value="c" selected="selected">' +
+ _("c- Line over line") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Line over line</option> \
+ <option value="c">' +
+ _("c- Line over line") +
+ '</option> \
[% END %] \
[% IF ( f8d ) %] \
- <option value="d" selected="selected">d- Paragraph</option> \
+ <option value="d" selected="selected">' +
+ _("d- Paragraph") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Paragraph</option> \
+ <option value="d">' +
+ _("d- Paragraph") +
+ '</option> \
[% END %] \
[% IF ( f8e ) %] \
- <option value="e" selected="selected">e- Single line</option> \
+ <option value="e" selected="selected">' +
+ _("e- Single line") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Single line</option> \
+ <option value="e">' +
+ _("e- Single line") +
+ '</option> \
[% END %] \
[% IF ( f8f ) %] \
- <option value="f" selected="selected">f- Section by section</option> \
+ <option value="f" selected="selected">' +
+ _("f- Section by section") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Section by section</option> \
+ <option value="f">' +
+ _("f- Section by section") +
+ '</option> \
[% END %] \
[% IF ( f8g ) %] \
- <option value="g" selected="selected">g- Line by line</option> \
+ <option value="g" selected="selected">' +
+ _("g- Line by line") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Line by line</option> \
+ <option value="g">' +
+ _("g- Line by line") +
+ '</option> \
[% END %] \
[% IF ( f8h ) %] \
- <option value="h" selected="selected">h- Open score</option> \
+ <option value="h" selected="selected">' +
+ _("h- Open score") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Open score</option> \
+ <option value="h">' +
+ _("h- Open score") +
+ '</option> \
[% END %] \
[% IF ( f8i ) %] \
- <option value="i" selected="selected">i- Spanner short form scoring</option> \
+ <option value="i" selected="selected">' +
+ _("i- Spanner short form scoring") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Spanner short form scoring</option> \
+ <option value="i">' +
+ _("i- Spanner short form scoring") +
+ '</option> \
[% END %] \
[% IF ( f8j ) %] \
- <option value="j" selected="selected">j- Short form scoring</option> \
+ <option value="j" selected="selected">' +
+ _("j- Short form scoring") +
+ '</option> \
[% ELSE %] \
- <option value="j">j- Short form scoring</option> \
+ <option value="j">' +
+ _("j- Short form scoring") +
+ '</option> \
[% END %] \
[% IF ( f8k ) %] \
- <option value="k" selected="selected">k- Outline</option> \
+ <option value="k" selected="selected">' +
+ _("k- Outline") +
+ '</option> \
[% ELSE %] \
- <option value="k">k- Outline</option> \
+ <option value="k">' +
+ _("k- Outline") +
+ '</option> \
[% END %] \
[% IF ( f8l ) %] \
- <option value="l" selected="selected">l- Vertical score</option> \
+ <option value="l" selected="selected">' +
+ _("l- Vertical score") +
+ '</option> \
[% ELSE %] \
- <option value="l">l- Vertical score</option> \
+ <option value="l">' +
+ _("l- Vertical score") +
+ '</option> \
[% END %] \
[% IF ( f8n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f8u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f8z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f8pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f9">09 Special physical characteristics</label></td> \
+ <td><label for="f9">' +
+ _("09 Special physical characteristics") +
+ '</label></td> \
<td> \
<select name="f9" id="f9" size="1"> \
[% IF ( f9a ) %] \
- <option value="a" selected="selected">a- Print/braille</option> \
+ <option value="a" selected="selected">' +
+ _("a- Print/braille") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Print/braille</option> \
+ <option value="a">' +
+ _("a- Print/braille") +
+ '</option> \
[% END %] \
[% IF ( f9b ) %] \
- <option value="b" selected="selected">b- Jumbo or enlarged braille</option> \
+ <option value="b" selected="selected">' +
+ _("b- Jumbo or enlarged braille") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Jumbo or enlarged braille</option> \
+ <option value="b">' +
+ _("b- Jumbo or enlarged braille") +
+ '</option> \
[% END %] \
[% IF ( f5n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f9u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f9z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f9pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
case "g":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>g- Projected graphic</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("g- Projected graphic") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select name="f1" id="f1" size="1"> \
[% IF ( f1c ) %] \
- <option value="c" selected="selected">c- Filmstrip cartridge</option> \
+ <option value="c" selected="selected">' +
+ _("c- Filmstrip cartridge") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Filmstrip cartridge</option> \
+ <option value="c">' +
+ _("c- Filmstrip cartridge") +
+ '</option> \
[% END %] \
[% IF ( f1d ) %] \
<!-- NOTE: Library of Congress site says Filmslip, not Filmstrip --> \
- <option value="d" selected="selected">d- Filmslip</option> \
+ <option value="d" selected="selected">' +
+ _("d- Filmslip") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Filmslip</option> \
+ <option value="d">' +
+ _("d- Filmslip") +
+ '</option> \
[% END %] \
[% IF ( f1f ) %] \
- <option value="f" selected="selected">f- Other type of filmstrip</option> \
+ <option value="f" selected="selected">' +
+ _("f- Other type of filmstrip") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Other type of filmstrip</option> \
+ <option value="f">' +
+ _("f- Other type of filmstrip") +
+ '</option> \
[% END %] \
[% IF ( f1o ) %] \
- <option value="o" selected="selected">o- Filmstrip roll</option> \
+ <option value="o" selected="selected">' +
+ _("o- Filmstrip roll") +
+ '</option> \
[% ELSE %] \
- <option value="o">o- Filmstrip roll</option> \
+ <option value="o">' +
+ _("o- Filmstrip roll") +
+ '</option> \
[% END %] \
[% IF ( f1s ) %] \
- <option value="s" selected="selected">s- Slide</option> \
+ <option value="s" selected="selected">' +
+ _("s- Slide") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- Slide</option> \
+ <option value="s">' +
+ _("s- Slide") +
+ '</option> \
[% END %] \
[% IF ( f1t ) %] \
- <option value="t" selected="selected">t- Transparency</option> \
+ <option value="t" selected="selected">' +
+ _("t- Transparency") +
+ '</option> \
[% ELSE %] \
- <option value="t">t- Transparency</option> \
+ <option value="t">' +
+ _("t- Transparency") +
+ '</option> \
[% END %] \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f2">02 Undefined</label></td> \
+ <td><label for="f2">' +
+ _("02 Undefined") +
+ '</label></td> \
<td> \
<select name="f2" id="f2" size="1"> \
[% IF ( f2exclamation ) %] \
- <option value=" " selected="selected">#- Undefined</option> \
+ <option value=" " selected="selected">' +
+ _("#- Undefined") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- Undefined</option> \
+ <option value=" ">' +
+ _("#- Undefined") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f3">03 Color</label></td> \
+ <td><label for="f3">' +
+ _("03 Color") +
+ '</label></td> \
<td> \
<select name="f3" id="f3" size="1"> \
[% IF ( f3a ) %] \
- <option value="a" selected="selected">a- One color</option> \
+ <option value="a" selected="selected">' +
+ _("a- One color") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- One color</option> \
+ <option value="a">' +
+ _("a- One color") +
+ '</option> \
[% END %] \
[% IF ( f3b ) %] \
- <option value="b" selected="selected">b- Black-and-white</option> \
+ <option value="b" selected="selected">' +
+ _("b- Black-and-white") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Black-and-white</option> \
+ <option value="b">' +
+ _("b- Black-and-white") +
+ '</option> \
[% END %] \
[% IF ( f3c ) %] \
- <option value="c" selected="selected">c- Multicolored</option> \
+ <option value="c" selected="selected">' +
+ _("c- Multicolored") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Multicolored</option> \
+ <option value="c">' +
+ _("c- Multicolored") +
+ '</option> \
[% END %] \
[% IF ( f3h ) %] \
- <option value="h" selected="selected">h- Hand colored</option> \
+ <option value="h" selected="selected">' +
+ _("h- Hand colored") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Hand colored</option> \
+ <option value="h">' +
+ _("h- Hand colored") +
+ '</option> \
[% END %] \
[% IF ( f3m ) %] \
- <option value="m" selected="selected">m- Mixed</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed</option> \
+ <option value="m">' +
+ _("m- Mixed") +
+ '</option> \
[% END %] \
[% IF ( f3n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f3u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f3z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f3pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f4">04 Base of emulsion</label></td> \
+ <td><label for="f4">' +
+ _("04 Base of emulsion") +
+ '</label></td> \
<td> \
<select name="f4" id="f4" size="1"> \
[% IF ( f4d ) %] \
- <option value="d" selected="selected">d- Glass</option> \
+ <option value="d" selected="selected">' +
+ _("d- Glass") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Glass</option> \
+ <option value="d">' +
+ _("d- Glass") +
+ '</option> \
[% END %] \
[% IF ( f4e ) %] \
- <option value="e" selected="selected">e- Synthetic</option> \
+ <option value="e" selected="selected">' +
+ _("e- Synthetic") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Synthetic</option> \
+ <option value="e">' +
+ _("e- Synthetic") +
+ '</option> \
[% END %] \
[% IF ( f4j ) %] \
- <option value="j" selected="selected">j- Safety film</option> \
+ <option value="j" selected="selected">' +
+ _("j- Safety film") +
+ '</option> \
[% ELSE %] \
- <option value="j">j- Safety film</option> \
+ <option value="j">' +
+ _("j- Safety film") +
+ '</option> \
[% END %] \
[% IF ( f4k ) %] \
- <option value="k" selected="selected">k- Film base, other than safety film</option> \
+ <option value="k" selected="selected">' +
+ _("k- Film base, other than safety film") +
+ '</option> \
[% ELSE %] \
- <option value="k">k- Film base, other than safety film</option> \
+ <option value="k">' +
+ _("k- Film base, other than safety film") +
+ '</option> \
[% END %] \
[% IF ( f4m ) %] \
- <option value="m" selected="selected">m- Mixed collection</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed collection") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed collection</option> \
+ <option value="m">' +
+ _("m- Mixed collection") +
+ '</option> \
[% END %] \
[% IF ( f4o ) %] \
- <option value="o" selected="selected">o- Paper</option> \
+ <option value="o" selected="selected">' +
+ _("o- Paper") +
+ '</option> \
[% ELSE %] \
- <option value="o">o- Paper</option> \
+ <option value="o">' +
+ _("o- Paper") +
+ '</option> \
[% END %] \
[% IF ( f4u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f4z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f4pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f5">05 Sound on medium or separate</label></td> \
+ <td><label for="f5">' +
+ _("05 Sound on medium or separate") +
+ '</label></td> \
<td> \
<select name="f5" id="f5" size="1"> \
[% IF ( f5exclamation ) %] \
- <option value=" " selected="selected">#- No sound (silent)</option> \
+ <option value=" " selected="selected">' +
+ _("#- No sound (silent)") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- No sound (silent)</option> \
+ <option value=" ">' +
+ _("#- No sound (silent)") +
+ '</option> \
[% END %] \
[% IF ( f5a ) %] \
- <option value="a" selected="selected">a- Sound on medium</option> \
+ <option value="a" selected="selected">' +
+ _("a- Sound on medium") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Sound on medium</option> \
+ <option value="a">' +
+ _("a- Sound on medium") +
+ '</option> \
[% END %] \
[% IF ( f5b ) %] \
- <option value="b" selected="selected">b- Sound separate from medium</option> \
+ <option value="b" selected="selected">' +
+ _("b- Sound separate from medium") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Sound separate from medium</option> \
+ <option value="b">' +
+ _("b- Sound separate from medium") +
+ '</option> \
[% END %] \
[% IF ( f5u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f5pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f6">06 Medium for sound</label></td> \
+ <td><label for="f6">' +
+ _("06 Medium for sound") +
+ '</label></td> \
<td> \
<select name="f6" id="f6" size="1"> \
[% IF ( f6exclamation ) %] \
- <option value=" " selected="selected">#- No sound (silent)</option> \
+ <option value=" " selected="selected">' +
+ _("#- No sound (silent)") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- No sound (silent)</option> \
+ <option value=" ">' +
+ _("#- No sound (silent)") +
+ '</option> \
[% END %] \
[% IF ( f6a ) %] \
- <option value="a" selected="selected">a- Optical sound track on motion picture film</option> \
+ <option value="a" selected="selected">' +
+ _("a- Optical sound track on motion picture film") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Optical sound track on motion picture film</option> \
+ <option value="a">' +
+ _("a- Optical sound track on motion picture film") +
+ '</option> \
[% END %] \
[% IF ( f6b ) %] \
- <option value="b" selected="selected">b- Magnetic sound track on motion picture film</option> \
+ <option value="b" selected="selected">' +
+ _("b- Magnetic sound track on motion picture film") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Magnetic sound track on motion picture film</option> \
+ <option value="b">' +
+ _("b- Magnetic sound track on motion picture film") +
+ '</option> \
[% END %] \
[% IF ( f6c ) %] \
- <option value="c" selected="selected">c- Magnetic audio tape in cartridge</option> \
+ <option value="c" selected="selected">' +
+ _("c- Magnetic audio tape in cartridge") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Magnetic audio tape in cartridge</option> \
+ <option value="c">' +
+ _("c- Magnetic audio tape in cartridge") +
+ '</option> \
[% END %] \
[% IF ( f6d ) %] \
- <option value="d" selected="selected">d- Sound disc</option> \
+ <option value="d" selected="selected">' +
+ _("d- Sound disc") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Sound disc</option> \
+ <option value="d">' +
+ _("d- Sound disc") +
+ '</option> \
[% END %] \
[% IF ( f6e ) %] \
- <option value="e" selected="selected">e- Magnetic audio tape on reel</option> \
+ <option value="e" selected="selected">' +
+ _("e- Magnetic audio tape on reel") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Magnetic audio tape on reel</option> \
+ <option value="e">' +
+ _("e- Magnetic audio tape on reel") +
+ '</option> \
[% END %] \
[% IF ( f6f ) %] \
- <option value="f" selected="selected">f- Magnetic audio tape in cassette</option> \
+ <option value="f" selected="selected">' +
+ _("f- Magnetic audio tape in cassette") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Magnetic audio tape in cassette</option> \
+ <option value="f">' +
+ _("f- Magnetic audio tape in cassette") +
+ '</option> \
[% END %] \
[% IF ( f6g ) %] \
- <option value="g" selected="selected">g- Optical and magnetic sound track on motion picture film</option> \
+ <option value="g" selected="selected">' +
+ _("g- Optical and magnetic sound track on motion picture film") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Optical and magnetic sound track on motion picture film</option> \
+ <option value="g">' +
+ _("g- Optical and magnetic sound track on motion picture film") +
+ '</option> \
[% END %] \
[% IF ( f6h ) %] \
- <option value="h" selected="selected">h- Videotape</option> \
+ <option value="h" selected="selected">' +
+ _("h- Videotape") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Videotape</option> \
+ <option value="h">' +
+ _("h- Videotape") +
+ '</option> \
[% END %] \
[% IF ( f6i ) %] \
- <option value="i" selected="selected">i- Videodisc</option> \
+ <option value="i" selected="selected">' +
+ _("i- Videodisc") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Videodisc</option> \
+ <option value="i">' +
+ _("i- Videodisc") +
+ '</option> \
[% END %] \
[% IF ( f6u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f6z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f6pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f7">07 Dimensions</label></td> \
+ <td><label for="f7">' +
+ _("07 Dimensions") +
+ '</label></td> \
<td> \
<select name="f7" id="f7" size="1"> \
[% IF ( f7a ) %] \
- <option value="a" selected="selected">a- Standard 8mm. film width</option> \
+ <option value="a" selected="selected">' +
+ _("a- Standard 8mm. film width") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Standard 8mm. film width</option> \
+ <option value="a">' +
+ _("a- Standard 8mm. film width") +
+ '</option> \
[% END %] \
[% IF ( f7b ) %] \
- <option value="b" selected="selected">b- Super 8mm./single 8mm. film width</option> \
+ <option value="b" selected="selected">' +
+ _("b- Super 8mm./single 8mm. film width") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Super 8mm./single 8mm. film width</option> \
+ <option value="b">' +
+ _("b- Super 8mm./single 8mm. film width") +
+ '</option> \
[% END %] \
[% IF ( f7c ) %] \
- <option value="c" selected="selected">c- 9.5 mm. film width</option> \
+ <option value="c" selected="selected">' +
+ _("c- 9.5 mm. film width") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- 9.5 mm. film width</option> \
+ <option value="c">' +
+ _("c- 9.5 mm. film width") +
+ '</option> \
[% END %] \
[% IF ( f7d ) %] \
- <option value="d" selected="selected">d- 16 mm. film width</option> \
+ <option value="d" selected="selected">' +
+ _("d- 16 mm. film width") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- 16 mm. film width</option> \
+ <option value="d">' +
+ _("d- 16 mm. film width") +
+ '</option> \
[% END %] \
[% IF ( f7e ) %] \
- <option value="e" selected="selected">e- 28 mm. film width</option> \
+ <option value="e" selected="selected">' +
+ _("e- 28 mm. film width") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- 28 mm. film width</option> \
+ <option value="e">' +
+ _("e- 28 mm. film width") +
+ '</option> \
[% END %] \
[% IF ( f7f ) %] \
- <option value="f" selected="selected">f- 35 mm. film width</option> \
+ <option value="f" selected="selected">' +
+ _("f- 35 mm. film width") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- 35 mm. film width</option> \
+ <option value="f">' +
+ _("f- 35 mm. film width") +
+ '</option> \
[% END %] \
[% IF ( f7g ) %] \
- <option value="g" selected="selected">g- 70 mm. film width</option> \
+ <option value="g" selected="selected">' +
+ _("g- 70 mm. film width") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- 70 mm. film width</option> \
+ <option value="g">' +
+ _("g- 70 mm. film width") +
+ '</option> \
[% END %] \
[% IF ( f7j ) %] \
- <option value="j" selected="selected">j- 2x2 in. or 5x5 cm. slide</option> \
+ <option value="j" selected="selected">' +
+ _("j- 2x2 in. or 5x5 cm. slide") +
+ '</option> \
[% ELSE %] \
- <option value="j">j- 2x2 in. or 5x5 cm. slide</option> \
+ <option value="j">' +
+ _("j- 2x2 in. or 5x5 cm. slide") +
+ '</option> \
[% END %] \
[% IF ( f7k ) %] \
- <option value="k" selected="selected">k- 2 1/4 x 2 1/4 in. or 6x6 cm. slide</option> \
+ <option value="k" selected="selected">' +
+ _("k- 2 1/4 x 2 1/4 in. or 6x6 cm. slide") +
+ '</option> \
[% ELSE %] \
- <option value="k">k- 2 1/4 x 2 1/4 in. or 6x6 cm. slide</option> \
+ <option value="k">' +
+ _("k- 2 1/4 x 2 1/4 in. or 6x6 cm. slide") +
+ '</option> \
[% END %] \
[% IF ( f7s ) %] \
- <option value="s" selected="selected">s- 4x5 in. or 10x13 cm. transparency</option> \
+ <option value="s" selected="selected">' +
+ _("s- 4x5 in. or 10x13 cm. transparency") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- 4x5 in. or 10x13 cm. transparency</option> \
+ <option value="s">' +
+ _("s- 4x5 in. or 10x13 cm. transparency") +
+ '</option> \
[% END %] \
[% IF ( f7t ) %] \
- <option value="t" selected="selected">t- 5x7 in. or 13x18 cm. transparency</option> \
+ <option value="t" selected="selected">' +
+ _("t- 5x7 in. or 13x18 cm. transparency") +
+ '</option> \
[% ELSE %] \
- <option value="t">t- 5x7 in. or 13x18 cm. transparency</option> \
+ <option value="t">' +
+ _("t- 5x7 in. or 13x18 cm. transparency") +
+ '</option> \
[% END %] \
[% IF ( f7v ) %] \
- <option value="v" selected="selected">v- 8x10 in. or 21x26 cm. transparency</option> \
+ <option value="v" selected="selected">' +
+ _("v- 8x10 in. or 21x26 cm. transparency") +
+ '</option> \
[% ELSE %] \
- <option value="v">v- 8x10 in. or 21x26 cm. transparency</option> \
+ <option value="v">' +
+ _("v- 8x10 in. or 21x26 cm. transparency") +
+ '</option> \
[% END %] \
[% IF ( f7w ) %] \
- <option value="w" selected="selected">x- 9x9 in. or 23x23 cm. transparency</option> \
+ <option value="w" selected="selected">' +
+ _("x- 9x9 in. or 23x23 cm. transparency") +
+ '</option> \
[% ELSE %] \
- <option value="w">w- 9x9 in. or 23x23 cm. transparency</option> \
+ <option value="w">' +
+ _("w- 9x9 in. or 23x23 cm. transparency") +
+ '</option> \
[% END %] \
[% IF ( f7x ) %] \
- <option value="x" selected="selected">x- 10x10 in. or 26x26 cm. transparency</option> \
+ <option value="x" selected="selected">' +
+ _("x- 10x10 in. or 26x26 cm. transparency") +
+ '</option> \
[% ELSE %] \
- <option value="x">x- 10x10 in. or 26x26 cm. transparency</option> \
+ <option value="x">' +
+ _("x- 10x10 in. or 26x26 cm. transparency") +
+ '</option> \
[% END %] \
[% IF ( f7y ) %] \
- <option value="y" selected="selected">y- 7x7 in. or 18x18 cm. transparency</option> \
+ <option value="y" selected="selected">' +
+ _("y- 7x7 in. or 18x18 cm. transparency") +
+ '</option> \
[% ELSE %] \
- <option value="y">y- 7x7 in. or 18x18 cm. transparency</option> \
+ <option value="y">' +
+ _("y- 7x7 in. or 18x18 cm. transparency") +
+ '</option> \
[% END %] \
[% IF ( f7u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f7z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f7pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f8">08 Secondary support material</label></td> \
+ <td><label for="f8">' +
+ _("08 Secondary support material") +
+ '</label></td> \
<td> \
<select name="f8" id="f8" size="1"> \
[% IF ( f8exclamation ) %] \
- <option value=" " selected="selected">#- No secondary support</option> \
+ <option value=" " selected="selected">' +
+ _("#- No secondary support") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- No secondary support</option> \
+ <option value=" ">' +
+ _("#- No secondary support") +
+ '</option> \
[% END %] \
[% IF ( f8c ) %] \
- <option value="c" selected="selected">c- Cardboard</option> \
+ <option value="c" selected="selected">' +
+ _("c- Cardboard") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Cardboard</option> \
+ <option value="c">' +
+ _("c- Cardboard") +
+ '</option> \
[% END %] \
[% IF ( f8d ) %] \
- <option value="d" selected="selected">d- Glass</option> \
+ <option value="d" selected="selected">' +
+ _("d- Glass") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Glass</option> \
+ <option value="d">' +
+ _("d- Glass") +
+ '</option> \
[% END %] \
[% IF ( f8e ) %] \
- <option value="e" selected="selected">e- Synthetic</option> \
+ <option value="e" selected="selected">' +
+ _("e- Synthetic") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Synthetic</option> \
+ <option value="e">' +
+ _("e- Synthetic") +
+ '</option> \
[% END %] \
[% IF ( f8h ) %] \
- <option value="h" selected="selected">h- Metal</option> \
+ <option value="h" selected="selected">' +
+ _("h- Metal") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Metal</option> \
+ <option value="h">' +
+ _("h- Metal") +
+ '</option> \
[% END %] \
[% IF ( f8j ) %] \
- <option value="j" selected="selected">j- Metal and glass</option> \
+ <option value="j" selected="selected">' +
+ _("j- Metal and glass") +
+ '</option> \
[% ELSE %] \
- <option value="j">j- Metal and glass</option> \
+ <option value="j">' +
+ _("j- Metal and glass") +
+ '</option> \
[% END %] \
[% IF ( f8k ) %] \
- <option value="k" selected="selected">k- Synthetic and glass</option> \
+ <option value="k" selected="selected">' +
+ _("k- Synthetic and glass") +
+ '</option> \
[% ELSE %] \
- <option value="k">k- Synthetic and glass</option> \
+ <option value="k">' +
+ _("k- Synthetic and glass") +
+ '</option> \
[% END %] \
[% IF ( f8m ) %] \
- <option value="m" selected="selected">m- Mixed collection</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed collection") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed collection</option> \
+ <option value="m">' +
+ _("m- Mixed collection") +
+ '</option> \
[% END %] \
[% IF ( f8u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f8z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f8pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
case "h":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>h- Microform</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("h- Microform") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select id="f1" name="f1" size="1"> \
[% IF ( f1a ) %] \
- <option value="a" selected="selected">a- Aperture card</option> \
+ <option value="a" selected="selected">' +
+ _("a- Aperture card") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Aperture card</option> \
+ <option value="a">' +
+ _("a- Aperture card") +
+ '</option> \
[% END %] \
[% IF ( f1b ) %] \
- <option value="b" selected="selected">b- Microfilm cartridge</option> \
+ <option value="b" selected="selected">' +
+ _("b- Microfilm cartridge") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Microfilm cartridge</option> \
+ <option value="b">' +
+ _("b- Microfilm cartridge") +
+ '</option> \
[% END %] \
[% IF ( f1c ) %] \
- <option value="c" selected="selected">c- Microfilm cassette</option> \
+ <option value="c" selected="selected">' +
+ _("c- Microfilm cassette") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Microfilm cassette</option> \
+ <option value="c">' +
+ _("c- Microfilm cassette") +
+ '</option> \
[% END %] \
[% IF ( f1d ) %] \
- <option value="d" selected="selected">d- Microfilm reel</option> \
+ <option value="d" selected="selected">' +
+ _("d- Microfilm reel") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Microfilm reel</option> \
+ <option value="d">' +
+ _("d- Microfilm reel") +
+ '</option> \
[% END %] \
[% IF ( f1e ) %] \
- <option value="e" selected="selected">e- Microfiche</option> \
+ <option value="e" selected="selected">' +
+ _("e- Microfiche") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Microfiche</option> \
+ <option value="e">' +
+ _("e- Microfiche") +
+ '</option> \
[% END %] \
[% IF ( f1f ) %] \
- <option value="f" selected="selected">f- Microfiche cassette</option> \
+ <option value="f" selected="selected">' +
+ _("f- Microfiche cassette") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Microfiche cassette</option> \
+ <option value="f">' +
+ _("f- Microfiche cassette") +
+ '</option> \
[% END %] \
[% IF ( f1g ) %] \
- <option value="g" selected="selected">g- Microopaque</option> \
+ <option value="g" selected="selected">' +
+ _("g- Microopaque") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Microopaque</option> \
+ <option value="g">' +
+ _("g- Microopaque") +
+ '</option> \
[% END %] \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f2">02 Undefined</label></td> \
+ <td><label for="f2">' +
+ _("02 Undefined") +
+ '</label></td> \
<td> \
<select name="f2" id="f2" size="1"> \
[% IF ( f2exclamation ) %] \
- <option value=" " selected="selected">#- Undefined</option> \
+ <option value=" " selected="selected">' +
+ _("#- Undefined") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- Undefined</option> \
+ <option value=" ">' +
+ _("#- Undefined") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f3">03 Positive/negative aspect</label></td> \
+ <td><label for="f3">' +
+ _("03 Positive/negative aspect") +
+ '</label></td> \
<td> \
<select id="f3" name="f3" size="1"> \
[% IF ( f3a ) %] \
- <option value="a" selected="selected">a- Positive</option> \
+ <option value="a" selected="selected">' +
+ _("a- Positive") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Positive</option> \
+ <option value="a">' +
+ _("a- Positive") +
+ '</option> \
[% END %] \
[% IF ( f3b ) %] \
- <option value="b" selected="selected">b- Negative</option> \
+ <option value="b" selected="selected">' +
+ _("b- Negative") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Negative</option> \
+ <option value="b">' +
+ _("b- Negative") +
+ '</option> \
[% END %] \
[% IF ( f3m ) %] \
- <option value="m" selected="selected">m- Mixed polarity</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed polarity") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed polarity</option> \
+ <option value="m">' +
+ _("m- Mixed polarity") +
+ '</option> \
[% END %] \
[% IF ( f3u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f3pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f4">04 Dimensions</label></td> \
+ <td><label for="f4">' +
+ _("04 Dimensions") +
+ '</label></td> \
<td> \
<select id="f4" name="f4" size="1"> \
[% IF ( f4a ) %] \
- <option value="a" selected="selected">a- 8 mm. microfilm</option> \
+ <option value="a" selected="selected">' +
+ _("a- 8 mm. microfilm") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- 8 mm. microfilm</option> \
+ <option value="a">' +
+ _("a- 8 mm. microfilm") +
+ '</option> \
[% END %] \
[% IF ( f4d ) %] \
- <option value="d" selected="selected">d- 16 mm. microfilm</option> \
+ <option value="d" selected="selected">' +
+ _("d- 16 mm. microfilm") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- 16 mm. microfilm</option> \
+ <option value="d">' +
+ _("d- 16 mm. microfilm") +
+ '</option> \
[% END %] \
[% IF ( f4f ) %] \
- <option value="f" selected="selected">f- 35 mm. microfilm</option> \
+ <option value="f" selected="selected">' +
+ _("f- 35 mm. microfilm") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- 35 mm. microfilm</option> \
+ <option value="f">' +
+ _("f- 35 mm. microfilm") +
+ '</option> \
[% END %] \
[% IF ( f4g ) %] \
- <option value="g" selected="selected">g- 70 mm. microfilm</option> \
+ <option value="g" selected="selected">' +
+ _("g- 70 mm. microfilm") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- 70 mm. microfilm</option> \
+ <option value="g">' +
+ _("g- 70 mm. microfilm") +
+ '</option> \
[% END %] \
[% IF ( f4h ) %] \
- <option value="h" selected="selected">h- 105 mm. microfilm</option> \
+ <option value="h" selected="selected">' +
+ _("h- 105 mm. microfilm") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- 105 mm. microfilm</option> \
+ <option value="h">' +
+ _("h- 105 mm. microfilm") +
+ '</option> \
[% END %] \
[% IF ( f4l ) %] \
- <option value="l" selected="selected">l- 3x5 in. or 8x13 cm. microfiche, microopaque etc.</option> \
+ <option value="l" selected="selected">' +
+ _("l- 3x5 in. or 8x13 cm. microfiche, microopaque etc.") +
+ '</option> \
[% ELSE %] \
- <option value="l">l- 3x5 in. or 8x13 cm. microfiche, microopaque etc.</option> \
+ <option value="l">' +
+ _("l- 3x5 in. or 8x13 cm. microfiche, microopaque etc.") +
+ '</option> \
[% END %] \
[% IF ( f4m ) %] \
- <option value="m" selected="selected">m- 4x6 in. or 11x15 cm. microfiche, microopaque etc.</option> \
+ <option value="m" selected="selected">' +
+ _("m- 4x6 in. or 11x15 cm. microfiche, microopaque etc.") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- 4x6 in. or 11x15 cm. microfiche, microopaque etc.</option> \
+ <option value="m">' +
+ _("m- 4x6 in. or 11x15 cm. microfiche, microopaque etc.") +
+ '</option> \
[% END %] \
[% IF ( f4o ) %] \
- <option value="o" selected="selected">o- 6x9 in. or 16x23 microfiche, microopaque etc.</option> \
+ <option value="o" selected="selected">' +
+ _("o- 6x9 in. or 16x23 microfiche, microopaque etc.") +
+ '</option> \
[% ELSE %] \
- <option value="o">o- 6x9 in. or 16x23 microfiche, microopaque etc.</option> \
+ <option value="o">' +
+ _("o- 6x9 in. or 16x23 microfiche, microopaque etc.") +
+ '</option> \
[% END %] \
[% IF ( f4p ) %] \
- <option value="p" selected="selected">p- 3 1/4 x 7 3/8 in. or 9x19 cm. aperture card</option> \
+ <option value="p" selected="selected">' +
+ _("p- 3 1/4 x 7 3/8 in. or 9x19 cm. aperture card") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- 3 1/4 x 7 3/8 in. or 9x19 cm. aperture card</option> \
+ <option value="p">' +
+ _("p- 3 1/4 x 7 3/8 in. or 9x19 cm. aperture card") +
+ '</option> \
[% END %] \
[% IF ( f4u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f4z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f4pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f5">05 Reduction ratio range</label></td> \
+ <td><label for="f5">' +
+ _("05 Reduction ratio range") +
+ '</label></td> \
<td> \
<select id="f5" name="f5" size="1"> \
[% IF ( f5a ) %] \
- <option value="a" selected="selected">a- Low reduction ratio</option> \
+ <option value="a" selected="selected">' +
+ _("a- Low reduction ratio") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Low reduction ratio</option> \
+ <option value="a">' +
+ _("a- Low reduction ratio") +
+ '</option> \
[% END %] \
[% IF ( f5b ) %] \
- <option value="b" selected="selected">b- Normal reduction</option> \
+ <option value="b" selected="selected">' +
+ _("b- Normal reduction") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Normal reduction</option> \
+ <option value="b">' +
+ _("b- Normal reduction") +
+ '</option> \
[% END %] \
[% IF ( f5c ) %] \
- <option value="c" selected="selected">c- High reduction</option> \
+ <option value="c" selected="selected">' +
+ _("c- High reduction") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- High reduction</option> \
+ <option value="c">' +
+ _("c- High reduction") +
+ '</option> \
[% END %] \
[% IF ( f5d ) %] \
- <option value="d" selected="selected">d- Very high reduction</option> \
+ <option value="d" selected="selected">' +
+ _("d- Very high reduction") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Very high reduction</option> \
+ <option value="d">' +
+ _("d- Very high reduction") +
+ '</option> \
[% END %] \
[% IF ( f5e ) %] \
- <option value="e" selected="selected">e- Ultra high reduction</option> \
+ <option value="e" selected="selected">' +
+ _("e- Ultra high reduction") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Ultra high reduction</option> \
+ <option value="e">' +
+ _("e- Ultra high reduction") +
+ '</option> \
[% END %] \
[% IF ( f5u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f5v ) %] \
- <option value="v" selected="selected">v- Reduction rate varies</option> \
+ <option value="v" selected="selected">' +
+ _("v- Reduction rate varies") +
+ '</option> \
[% ELSE %] \
- <option value="v">v- Reduction rate varies</option> \
+ <option value="v">' +
+ _("v- Reduction rate varies") +
+ '</option> \
[% END %] \
[% IF ( f5pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f6">06-08 Reduction ratio</label> <br /><I>(three digits, pad with zero as needed, <br />or ||| for no attempt to code)</i></td> \
+ <td><label for="f6">' +
+ _("06-08 Reduction ratio") +
+ '</label> <br /><I>(three digits, pad with zero as needed, <br />or ||| for no attempt to code)</i></td> \
<td><input type="text" size=3 name="f6" id = "f6" value="[% f6 %][% f7 %][% f8 %]"> - 001-999</input> \
</td> \
</td> \
<tr> \
- <td><label for="f7">09 Color</label></td> \
+ <td><label for="f7">' +
+ _("09 Color") +
+ '</label></td> \
<td> \
<select id="f7" name="f7" size="1"> \
[% IF ( f7b ) %] \
- <option value="b" selected="selected">b- Black-and-white</option> \
+ <option value="b" selected="selected">' +
+ _("b- Black-and-white") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Black-and-white</option> \
+ <option value="b">' +
+ _("b- Black-and-white") +
+ '</option> \
[% END %] \
[% IF ( f7c ) %] \
- <option value="c" selected="selected">c- Multicolored</option> \
+ <option value="c" selected="selected">' +
+ _("c- Multicolored") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Multicolored</option> \
+ <option value="c">' +
+ _("c- Multicolored") +
+ '</option> \
[% END %] \
[% IF ( f7m ) %] \
- <option value="m" selected="selected">m- Mixed</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed</option> \
+ <option value="m">' +
+ _("m- Mixed") +
+ '</option> \
[% END %] \
[% IF ( f7u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f7z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f7pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f8">10 Emulsion on film</label></td> \
+ <td><label for="f8">' +
+ _("10 Emulsion on film") +
+ '</label></td> \
<td> \
<select id="f8" name="f8" size="1"> \
[% IF ( f8a ) %] \
- <option value="a" selected="selected">a- Silver halide</option> \
+ <option value="a" selected="selected">' +
+ _("a- Silver halide") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Silver halide</option> \
+ <option value="a">' +
+ _("a- Silver halide") +
+ '</option> \
[% END %] \
[% IF ( f8b ) %] \
- <option value="b" selected="selected">b- Diazo</option> \
+ <option value="b" selected="selected">' +
+ _("b- Diazo") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Diazo</option> \
+ <option value="b">' +
+ _("b- Diazo") +
+ '</option> \
[% END %] \
[% IF ( f8c ) %] \
- <option value="c" selected="selected">c- Vesicular</option> \
+ <option value="c" selected="selected">' +
+ _("c- Vesicular") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Vesicular</option> \
+ <option value="c">' +
+ _("c- Vesicular") +
+ '</option> \
[% END %] \
[% IF ( f8m ) %] \
- <option value="m" selected="selected">m- Mixed emulsion</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed emulsion") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed emulsion</option> \
+ <option value="m">' +
+ _("m- Mixed emulsion") +
+ '</option> \
[% END %] \
[% IF ( f8n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f8u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f8z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f8pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f9">11 Generation</label></td> \
+ <td><label for="f9">' +
+ _("11 Generation") +
+ '</label></td> \
<td> \
<select id="f9" name="f9" size="1"> \
[% IF ( f9a ) %] \
- <option value="a" selected="selected">a- First generation (master)</option> \
+ <option value="a" selected="selected">' +
+ _("a- First generation (master)") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- First generation (master)</option> \
+ <option value="a">' +
+ _("a- First generation (master)") +
+ '</option> \
[% END %] \
[% IF ( f9b ) %] \
- <option value="b" selected="selected">b- Printing master</option> \
+ <option value="b" selected="selected">' +
+ _("b- Printing master") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Printing master</option> \
+ <option value="b">' +
+ _("b- Printing master") +
+ '</option> \
[% END %] \
[% IF ( f9c ) %] \
- <option value="c" selected="selected">c- Service copy</option> \
+ <option value="c" selected="selected">' +
+ _("c- Service copy") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Service copy</option> \
+ <option value="c">' +
+ _("c- Service copy") +
+ '</option> \
[% END %] \
[% IF ( f9m ) %] \
- <option value="m" selected="selected">m- Mixed generation</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed generation") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed generation</option> \
+ <option value="m">' +
+ _("m- Mixed generation") +
+ '</option> \
[% END %] \
[% IF ( f9u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f9pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f10">12 Base of film</label></td> \
+ <td><label for="f10">' +
+ _("12 Base of film") +
+ '</label></td> \
<td> \
<select id="f10" name="f10" size="1"> \
[% IF ( f10a ) %] \
- <option value="a" selected="selected">a- Safety base, undetermined</option> \
+ <option value="a" selected="selected">' +
+ _("a- Safety base, undetermined") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Safety base, undetermined</option> \
+ <option value="a">' +
+ _("a- Safety base, undetermined") +
+ '</option> \
[% END %] \
[% IF ( f10c ) %] \
- <option value="c" selected="selected">c- Safety base, acetate undetermined</option> \
+ <option value="c" selected="selected">' +
+ _("c- Safety base, acetate undetermined") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Safety base, acetate undetermined</option> \
+ <option value="c">' +
+ _("c- Safety base, acetate undetermined") +
+ '</option> \
[% END %] \
[% IF ( f10d ) %] \
- <option value="d" selected="selected">d- Safety base, diacetate</option> \
+ <option value="d" selected="selected">' +
+ _("d- Safety base, diacetate") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Safety base, diacetate</option> \
+ <option value="d">' +
+ _("d- Safety base, diacetate") +
+ '</option> \
[% END %] \
[% IF ( f10i ) %] \
- <option value="i" selected="selected">i- Nitrate base</option> \
+ <option value="i" selected="selected">' +
+ _("i- Nitrate base") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Nitrate base</option> \
+ <option value="i">' +
+ _("i- Nitrate base") +
+ '</option> \
[% END %] \
[% IF ( f10m ) %] \
- <option value="m" selected="selected">m- Mixed base (nitrate and safety)</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed base (nitrate and safety)") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed base (nitrate and safety)</option> \
+ <option value="m">' +
+ _("m- Mixed base (nitrate and safety)") +
+ '</option> \
[% END %] \
[% IF ( f10n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f10p ) %] \
- <option value="p" selected="selected">p- Safety base, polyester</option> \
+ <option value="p" selected="selected">' +
+ _("p- Safety base, polyester") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- Safety base, polyester</option> \
+ <option value="p">' +
+ _("p- Safety base, polyester") +
+ '</option> \
[% END %] \
[% IF ( f10r ) %] \
- <option value="r" selected="selected">r- Safety base, mixed</option> \
+ <option value="r" selected="selected">' +
+ _("r- Safety base, mixed") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- Safety base, mixed</option> \
+ <option value="r">' +
+ _("r- Safety base, mixed") +
+ '</option> \
[% END %] \
[% IF ( f10t ) %] \
- <option value="t" selected="selected">t- Safety base, triacetate</option> \
+ <option value="t" selected="selected">' +
+ _("t- Safety base, triacetate") +
+ '</option> \
[% ELSE %] \
- <option value="t">t- Safety base, triacetate</option> \
+ <option value="t">' +
+ _("t- Safety base, triacetate") +
+ '</option> \
[% END %] \
[% IF ( f10u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f10z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f10pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
case "k":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>k- Nonprojected graphic</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("k- Nonprojected graphic") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select name="f1" id="f1" size="1"> \
[% IF ( f1c ) %] \
- <option value="c" selected="selected">c- Collage</option> \
+ <option value="c" selected="selected">' +
+ _("c- Collage") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Collage</option> \
+ <option value="c">' +
+ _("c- Collage") +
+ '</option> \
[% END %] \
[% IF ( f1d ) %] \
- <option value="d" selected="selected">d- Drawing</option> \
+ <option value="d" selected="selected">' +
+ _("d- Drawing") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Drawing</option> \
+ <option value="d">' +
+ _("d- Drawing") +
+ '</option> \
[% END %] \
[% IF ( f1e ) %] \
- <option value="e" selected="selected">e- Painting</option> \
+ <option value="e" selected="selected">' +
+ _("e- Painting") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Painting</option> \
+ <option value="e">' +
+ _("e- Painting") +
+ '</option> \
[% END %] \
[% IF ( f1f ) %] \
- <option value="f" selected="selected">f- Photomechanical print</option> \
+ <option value="f" selected="selected">' +
+ _("f- Photomechanical print") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Photomechanical print</option> \
+ <option value="f">' +
+ _("f- Photomechanical print") +
+ '</option> \
[% END %] \
[% IF ( f1g ) %] \
- <option value="g" selected="selected">g- Photonegative</option> \
+ <option value="g" selected="selected">' +
+ _("g- Photonegative") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Photonegative</option> \
+ <option value="g">' +
+ _("g- Photonegative") +
+ '</option> \
[% END %] \
[% IF ( f1h ) %] \
- <option value="h" selected="selected">h- Photoprint</option> \
+ <option value="h" selected="selected">' +
+ _("h- Photoprint") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Photoprint</option> \
+ <option value="h">' +
+ _("h- Photoprint") +
+ '</option> \
[% END %] \
[% IF ( f1i ) %] \
- <option value="i" selected="selected">i- Picture</option> \
+ <option value="i" selected="selected">' +
+ _("i- Picture") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Picture</option> \
+ <option value="i">' +
+ _("i- Picture") +
+ '</option> \
[% END %] \
[% IF ( f1j ) %] \
- <option value="j" selected="selected">j- Print</option> \
+ <option value="j" selected="selected">' +
+ _("j- Print") +
+ '</option> \
[% ELSE %] \
- <option value="j">j- Print</option> \
+ <option value="j">' +
+ _("j- Print") +
+ '</option> \
[% END %] \
[% IF ( f1l ) %] \
- <option value="l" selected="selected">l- Technical drawing</option> \
+ <option value="l" selected="selected">' +
+ _("l- Technical drawing") +
+ '</option> \
[% ELSE %] \
- <option value="l">l- Technical drawing</option> \
+ <option value="l">' +
+ _("l- Technical drawing") +
+ '</option> \
[% END %] \
[% IF ( f1n ) %] \
- <option value="n" selected="selected">n- Chart</option> \
+ <option value="n" selected="selected">' +
+ _("n- Chart") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Chart</option> \
+ <option value="n">' +
+ _("n- Chart") +
+ '</option> \
[% END %] \
[% IF ( f1o ) %] \
- <option value="o" selected="selected">o- Flash card</option> \
+ <option value="o" selected="selected">' +
+ _("o- Flash card") +
+ '</option> \
[% ELSE %] \
- <option value="o">o- Flash card</option> \
+ <option value="o">' +
+ _("o- Flash card") +
+ '</option> \
[% END %] \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f2">02 Undefined</label></td> \
+ <td><label for="f2">' +
+ _("02 Undefined") +
+ '</label></td> \
<td> \
<select name="f2" id="f2" size="1"> \
[% IF ( f2exclamation ) %] \
- <option value=" " selected="selected">#- Undefined</option> \
+ <option value=" " selected="selected">' +
+ _("#- Undefined") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- Undefined</option> \
+ <option value=" ">' +
+ _("#- Undefined") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f3">03 Color</label></td> \
+ <td><label for="f3">' +
+ _("03 Color") +
+ '</label></td> \
<td> \
<select name="f3" id="f3" size="1"> \
[% IF ( f3a ) %] \
- <option value="a" selected="selected">a- One color</option> \
+ <option value="a" selected="selected">' +
+ _("a- One color") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- One color</option> \
+ <option value="a">' +
+ _("a- One color") +
+ '</option> \
[% END %] \
[% IF ( f3b ) %] \
- <option value="b" selected="selected">b- Black-and-white</option> \
+ <option value="b" selected="selected">' +
+ _("b- Black-and-white") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Black-and-white</option> \
+ <option value="b">' +
+ _("b- Black-and-white") +
+ '</option> \
[% END %] \
[% IF ( f3c ) %] \
- <option value="c" selected="selected">c- Multicolored</option> \
+ <option value="c" selected="selected">' +
+ _("c- Multicolored") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Multicolored</option> \
+ <option value="c">' +
+ _("c- Multicolored") +
+ '</option> \
[% END %] \
[% IF ( f3h ) %] \
- <option value="h" selected="selected">h- Hand colored</option> \
+ <option value="h" selected="selected">' +
+ _("h- Hand colored") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Hand colored</option> \
+ <option value="h">' +
+ _("h- Hand colored") +
+ '</option> \
[% END %] \
[% IF ( f3m ) %] \
- <option value="m" selected="selected">m- Mixed</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed</option> \
+ <option value="m">' +
+ _("m- Mixed") +
+ '</option> \
[% END %] \
[% IF ( f3u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f3z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f3pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f4">04 Primary support material</label></td> \
+ <td><label for="f4">' +
+ _("04 Primary support material") +
+ '</label></td> \
<td> \
<select name="f4" id="f4" size="1"> \
[% IF ( f4a ) %] \
- <option value="a" selected="selected">a- Canvas</option> \
+ <option value="a" selected="selected">' +
+ _("a- Canvas") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Canvas</option> \
+ <option value="a">' +
+ _("a- Canvas") +
+ '</option> \
[% END %] \
[% IF ( f4b ) %] \
- <option value="b" selected="selected">b- Bristol board</option> \
+ <option value="b" selected="selected">' +
+ _("b- Bristol board") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Bristol board</option> \
+ <option value="b">' +
+ _("b- Bristol board") +
+ '</option> \
[% END %] \
[% IF ( f4c ) %] \
- <option value="c" selected="selected">c- Cardboard/illustration board</option> \
+ <option value="c" selected="selected">' +
+ _("c- Cardboard/illustration board") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Cardboard/illustration board</option> \
+ <option value="c">' +
+ _("c- Cardboard/illustration board") +
+ '</option> \
[% END %] \
[% IF ( f4d ) %] \
- <option value="d" selected="selected">d- Glass</option> \
+ <option value="d" selected="selected">' +
+ _("d- Glass") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Glass</option> \
+ <option value="d">' +
+ _("d- Glass") +
+ '</option> \
[% END %] \
[% IF ( f4e ) %] \
- <option value="e" selected="selected">e- Synthetic</option> \
+ <option value="e" selected="selected">' +
+ _("e- Synthetic") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Synthetic</option> \
+ <option value="e">' +
+ _("e- Synthetic") +
+ '</option> \
[% END %] \
[% IF ( f4f ) %] \
- <option value="f" selected="selected">f- Skin</option> \
+ <option value="f" selected="selected">' +
+ _("f- Skin") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Skin</option> \
+ <option value="f">' +
+ _("f- Skin") +
+ '</option> \
[% END %] \
[% IF ( f4g ) %] \
- <option value="g" selected="selected">g- Textile</option> \
+ <option value="g" selected="selected">' +
+ _("g- Textile") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Textile</option> \
+ <option value="g">' +
+ _("g- Textile") +
+ '</option> \
[% END %] \
[% IF ( f4h ) %] \
- <option value="h" selected="selected">h- Metal</option> \
+ <option value="h" selected="selected">' +
+ _("h- Metal") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Metal</option> \
+ <option value="h">' +
+ _("h- Metal") +
+ '</option> \
[% END %] \
[% IF ( f4m ) %] \
- <option value="m" selected="selected">m- Mixed collection</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed collection") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed collection</option> \
+ <option value="m">' +
+ _("m- Mixed collection") +
+ '</option> \
[% END %] \
[% IF ( f4o ) %] \
- <option value="o" selected="selected">o- Paper</option> \
+ <option value="o" selected="selected">' +
+ _("o- Paper") +
+ '</option> \
[% ELSE %] \
- <option value="o">o- Paper</option> \
+ <option value="o">' +
+ _("o- Paper") +
+ '</option> \
[% END %] \
[% IF ( f4p ) %] \
- <option value="p" selected="selected">p- Plaster</option> \
+ <option value="p" selected="selected">' +
+ _("p- Plaster") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- Plaster</option> \
+ <option value="p">' +
+ _("p- Plaster") +
+ '</option> \
[% END %] \
[% IF ( f4q ) %] \
- <option value="q" selected="selected">q- Hardboard</option> \
+ <option value="q" selected="selected">' +
+ _("q- Hardboard") +
+ '</option> \
[% ELSE %] \
- <option value="q">q- Hardboard</option> \
+ <option value="q">' +
+ _("q- Hardboard") +
+ '</option> \
[% END %] \
[% IF ( f4r ) %] \
- <option value="r" selected="selected">r- Porcelain</option> \
+ <option value="r" selected="selected">' +
+ _("r- Porcelain") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- Porcelain</option> \
+ <option value="r">' +
+ _("r- Porcelain") +
+ '</option> \
[% END %] \
[% IF ( f4s ) %] \
- <option value="s" selected="selected">s- Stone</option> \
+ <option value="s" selected="selected">' +
+ _("s- Stone") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- Stone</option> \
+ <option value="s">' +
+ _("s- Stone") +
+ '</option> \
[% END %] \
[% IF ( f4t ) %] \
- <option value="t" selected="selected">t- Wood</option> \
+ <option value="t" selected="selected">' +
+ _("t- Wood") +
+ '</option> \
[% ELSE %] \
- <option value="t">t- Wood</option> \
+ <option value="t">' +
+ _("t- Wood") +
+ '</option> \
[% END %] \
[% IF ( f4u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f4z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f4pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f5">05 Secondary support material</label></td> \
+ <td><label for="f5">' +
+ _("05 Secondary support material") +
+ '</label></td> \
<td> \
<select name="f5" id="f5" size="1"> \
[% IF ( f5exclamation ) %] \
- <option value=" " selected="selected">#- No attempt to code</option> \
+ <option value=" " selected="selected">' +
+ _("#- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- No attempt to code</option> \
+ <option value=" ">' +
+ _("#- No attempt to code") +
+ '</option> \
[% END %] \
[% IF ( f5a ) %] \
- <option value="a" selected="selected">a- Canvas</option> \
+ <option value="a" selected="selected">' +
+ _("a- Canvas") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Canvas</option> \
+ <option value="a">' +
+ _("a- Canvas") +
+ '</option> \
[% END %] \
[% IF ( f5b ) %] \
- <option value="b" selected="selected">b- Bristol board</option> \
+ <option value="b" selected="selected">' +
+ _("b- Bristol board") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Bristol board</option> \
+ <option value="b">' +
+ _("b- Bristol board") +
+ '</option> \
[% END %] \
[% IF ( f5c ) %] \
- <option value="c" selected="selected">c- Cardboard/illustration board</option> \
+ <option value="c" selected="selected">' +
+ _("c- Cardboard/illustration board") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Cardboard/illustration board</option> \
+ <option value="c">' +
+ _("c- Cardboard/illustration board") +
+ '</option> \
[% END %] \
[% IF ( f5d ) %] \
- <option value="d" selected="selected">d- Glass</option> \
+ <option value="d" selected="selected">' +
+ _("d- Glass") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Glass</option> \
+ <option value="d">' +
+ _("d- Glass") +
+ '</option> \
[% END %] \
[% IF ( f5e ) %] \
- <option value="e" selected="selected">e- Synthetic</option> \
+ <option value="e" selected="selected">' +
+ _("e- Synthetic") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Synthetic</option> \
+ <option value="e">' +
+ _("e- Synthetic") +
+ '</option> \
[% END %] \
[% IF ( f5f ) %] \
- <option value="f" selected="selected">f- Skin</option> \
+ <option value="f" selected="selected">' +
+ _("f- Skin") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Skin</option> \
+ <option value="f">' +
+ _("f- Skin") +
+ '</option> \
[% END %] \
[% IF ( f5g ) %] \
- <option value="g" selected="selected">g- Textile</option> \
+ <option value="g" selected="selected">' +
+ _("g- Textile") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Textile</option> \
+ <option value="g">' +
+ _("g- Textile") +
+ '</option> \
[% END %] \
[% IF ( f5h ) %] \
- <option value="h" selected="selected">h- Metal</option> \
+ <option value="h" selected="selected">' +
+ _("h- Metal") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Metal</option> \
+ <option value="h">' +
+ _("h- Metal") +
+ '</option> \
[% END %] \
[% IF ( f5m ) %] \
- <option value="m" selected="selected">m- Mixed collection</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed collection") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed collection</option> \
+ <option value="m">' +
+ _("m- Mixed collection") +
+ '</option> \
[% END %] \
[% IF ( f5o ) %] \
- <option value="o" selected="selected">o- Paper</option> \
+ <option value="o" selected="selected">' +
+ _("o- Paper") +
+ '</option> \
[% ELSE %] \
- <option value="o">o- Paper</option> \
+ <option value="o">' +
+ _("o- Paper") +
+ '</option> \
[% END %] \
[% IF ( f5p ) %] \
- <option value="p" selected="selected">p- Plaster</option> \
+ <option value="p" selected="selected">' +
+ _("p- Plaster") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- Plaster</option> \
+ <option value="p">' +
+ _("p- Plaster") +
+ '</option> \
[% END %] \
[% IF ( f5q ) %] \
- <option value="q" selected="selected">q- Hardboard</option> \
+ <option value="q" selected="selected">' +
+ _("q- Hardboard") +
+ '</option> \
[% ELSE %] \
- <option value="q">q- Hardboard</option> \
+ <option value="q">' +
+ _("q- Hardboard") +
+ '</option> \
[% END %] \
[% IF ( f5r ) %] \
- <option value="r" selected="selected">r- Porcelain</option> \
+ <option value="r" selected="selected">' +
+ _("r- Porcelain") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- Porcelain</option> \
+ <option value="r">' +
+ _("r- Porcelain") +
+ '</option> \
[% END %] \
[% IF ( f5s ) %] \
- <option value="s" selected="selected">s- Stone</option> \
+ <option value="s" selected="selected">' +
+ _("s- Stone") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- Stone</option> \
+ <option value="s">' +
+ _("s- Stone") +
+ '</option> \
[% END %] \
[% IF ( f5t ) %] \
- <option value="t" selected="selected">t- Wood</option> \
+ <option value="t" selected="selected">' +
+ _("t- Wood") +
+ '</option> \
[% ELSE %] \
- <option value="t">t- Wood</option> \
+ <option value="t">' +
+ _("t- Wood") +
+ '</option> \
[% END %] \
[% IF ( f5u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f5z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f5pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
case "m":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>m- Motion Picture</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("m- Motion Picture") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select name="f1" id="f1" size="1"> \
[% IF ( f1c ) %] \
- <option value="c" selected="selected">c- Film cartridge</option> \
+ <option value="c" selected="selected">' +
+ _("c- Film cartridge") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Film cartridge</option> \
+ <option value="c">' +
+ _("c- Film cartridge") +
+ '</option> \
[% END %] \
[% IF ( f1f ) %] \
- <option value="f" selected="selected">f- Film cassette</option> \
+ <option value="f" selected="selected">' +
+ _("f- Film cassette") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Film cassette</option> \
+ <option value="f">' +
+ _("f- Film cassette") +
+ '</option> \
[% END %] \
[% IF ( f1r ) %] \
- <option value="r" selected="selected">r- Film reel</option> \
+ <option value="r" selected="selected">' +
+ _("r- Film reel") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- Film reel</option> \
+ <option value="r">' +
+ _("r- Film reel") +
+ '</option> \
[% END %] \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f2">02 Undefined</label></td> \
+ <td><label for="f2">' +
+ _("02 Undefined") +
+ '</label></td> \
<td> \
<select name="f2" id="f2" size="1"> \
[% IF ( f2exclamation ) %] \
- <option value=" " selected="selected">#- Undefined</option> \
+ <option value=" " selected="selected">' +
+ _("#- Undefined") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- Undefined</option> \
+ <option value=" ">' +
+ _("#- Undefined") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f3">03 Color</label></td> \
+ <td><label for="f3">' +
+ _("03 Color") +
+ '</label></td> \
<td> \
<select name="f3" id="f3" size="1"> \
[% IF ( f3b ) %] \
- <option value="b" selected="selected">b- Black-and-white</option> \
+ <option value="b" selected="selected">' +
+ _("b- Black-and-white") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Black-and-white</option> \
+ <option value="b">' +
+ _("b- Black-and-white") +
+ '</option> \
[% END %] \
[% IF ( f3c ) %] \
- <option value="c" selected="selected">c- Multicolored</option> \
+ <option value="c" selected="selected">' +
+ _("c- Multicolored") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Multicolored</option> \
+ <option value="c">' +
+ _("c- Multicolored") +
+ '</option> \
[% END %] \
[% IF ( f3h ) %] \
- <option value="h" selected="selected">h- Hand colored</option> \
+ <option value="h" selected="selected">' +
+ _("h- Hand colored") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Hand colored</option> \
+ <option value="h">' +
+ _("h- Hand colored") +
+ '</option> \
[% END %] \
[% IF ( f3m ) %] \
- <option value="m" selected="selected">m- Mixed</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed</option> \
+ <option value="m">' +
+ _("m- Mixed") +
+ '</option> \
[% END %] \
[% IF ( f3n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f3u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f3z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f3pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f4">04 Motion picture presentation format</label></td> \
+ <td><label for="f4">' +
+ _("04 Motion picture presentation format") +
+ '</label></td> \
<td> \
<select name="f4" id="f4" size="1"> \
[% IF ( f4a ) %] \
- <option value="a" selected="selected">a- Standard sound aperture (reduced frame)</option> \
+ <option value="a" selected="selected">' +
+ _("a- Standard sound aperture (reduced frame)") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Standard sound aperture (reduced frame)</option> \
+ <option value="a">' +
+ _("a- Standard sound aperture (reduced frame)") +
+ '</option> \
[% END %] \
[% IF ( f4b ) %] \
- <option value="b" selected="selected">b- Nonanamorphic (wide-screen)</option> \
+ <option value="b" selected="selected">' +
+ _("b- Nonanamorphic (wide-screen)") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Nonanamorphic (wide-screen)</option> \
+ <option value="b">' +
+ _("b- Nonanamorphic (wide-screen)") +
+ '</option> \
[% END %] \
[% IF ( f4c ) %] \
- <option value="c" selected="selected">c- 3D</option> \
+ <option value="c" selected="selected">' +
+ _("c- 3D") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- 3D</option> \
+ <option value="c">' +
+ _("c- 3D") +
+ '</option> \
[% END %] \
[% IF ( f4d ) %] \
- <option value="d" selected="selected">d- Anamorphic (wide-screen)</option> \
+ <option value="d" selected="selected">' +
+ _("d- Anamorphic (wide-screen)") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Anamorphic (wide-screen)</option> \
+ <option value="d">' +
+ _("d- Anamorphic (wide-screen)") +
+ '</option> \
[% END %] \
[% IF ( f4e ) %] \
- <option value="e" selected="selected">e- Other wide-screen format</option> \
+ <option value="e" selected="selected">' +
+ _("e- Other wide-screen format") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Other wide-screen format</option> \
+ <option value="e">' +
+ _("e- Other wide-screen format") +
+ '</option> \
[% END %] \
[% IF ( f4f ) %] \
- <option value="f" selected="selected">f- Standard silent aperture (full frame)</option> \
+ <option value="f" selected="selected">' +
+ _("f- Standard silent aperture (full frame)") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Standard silent aperture (full frame)</option> \
+ <option value="f">' +
+ _("f- Standard silent aperture (full frame)") +
+ '</option> \
[% END %] \
[% IF ( f4u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f4z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f4pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f5">05 Sound on medium or separate</label></td> \
+ <td><label for="f5">' +
+ _("05 Sound on medium or separate") +
+ '</label></td> \
<td> \
<select name="f5" id="f5" size="1"> \
[% IF ( f5exclamation ) %] \
- <option value=" " selected="selected">#- No sound (silent)</option> \
+ <option value=" " selected="selected">' +
+ _("#- No sound (silent)") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- No sound (silent)</option> \
+ <option value=" ">' +
+ _("#- No sound (silent)") +
+ '</option> \
[% END %] \
[% IF ( f5a ) %] \
- <option value="a" selected="selected">a- Sound on medium</option> \
+ <option value="a" selected="selected">' +
+ _("a- Sound on medium") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Sound on medium</option> \
+ <option value="a">' +
+ _("a- Sound on medium") +
+ '</option> \
[% END %] \
[% IF ( f5b ) %] \
- <option value="b" selected="selected">b- Sound separate from medium</option> \
+ <option value="b" selected="selected">' +
+ _("b- Sound separate from medium") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Sound separate from medium</option> \
+ <option value="b">' +
+ _("b- Sound separate from medium") +
+ '</option> \
[% END %] \
[% IF ( f5u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f5pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f6">06 Medium for sound</label></td> \
+ <td><label for="f6">' +
+ _("06 Medium for sound") +
+ '</label></td> \
<td> \
<select name="f6" id="f6" size="1"> \
[% IF ( f6exclamation ) %] \
- <option value=" " selected="selected">#- No sound (silent)</option> \
+ <option value=" " selected="selected">' +
+ _("#- No sound (silent)") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- No sound (silent)</option> \
+ <option value=" ">' +
+ _("#- No sound (silent)") +
+ '</option> \
[% END %] \
[% IF ( f6a ) %] \
- <option value="a" selected="selected">a- Optical sound track on motion picture film</option> \
+ <option value="a" selected="selected">' +
+ _("a- Optical sound track on motion picture film") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Optical sound track on motion picture film</option> \
+ <option value="a">' +
+ _("a- Optical sound track on motion picture film") +
+ '</option> \
[% END %] \
[% IF ( f6b ) %] \
- <option value="b" selected="selected">b- Magnetic sound track on motion picture film</option> \
+ <option value="b" selected="selected">' +
+ _("b- Magnetic sound track on motion picture film") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Magnetic sound track on motion picture film</option> \
+ <option value="b">' +
+ _("b- Magnetic sound track on motion picture film") +
+ '</option> \
[% END %] \
[% IF ( f5c ) %] \
- <option value="c" selected="selected">c- Magnetic audio tape in cartridge</option> \
+ <option value="c" selected="selected">' +
+ _("c- Magnetic audio tape in cartridge") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Magnetic audio tape in cartridge</option> \
+ <option value="c">' +
+ _("c- Magnetic audio tape in cartridge") +
+ '</option> \
[% END %] \
[% IF ( f6d ) %] \
- <option value="d" selected="selected">d- Sound disc</option> \
+ <option value="d" selected="selected">' +
+ _("d- Sound disc") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Sound disc</option> \
+ <option value="d">' +
+ _("d- Sound disc") +
+ '</option> \
[% END %] \
[% IF ( f6e ) %] \
- <option value="e" selected="selected">e- Magnetic audio tape on reel</option> \
+ <option value="e" selected="selected">' +
+ _("e- Magnetic audio tape on reel") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Magnetic audio tape on reel</option> \
+ <option value="e">' +
+ _("e- Magnetic audio tape on reel") +
+ '</option> \
[% END %] \
[% IF ( f6f ) %] \
- <option value="f" selected="selected">f- Magnetic audio tape in cassette</option> \
+ <option value="f" selected="selected">' +
+ _("f- Magnetic audio tape in cassette") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Magnetic audio tape in cassette</option> \
+ <option value="f">' +
+ _("f- Magnetic audio tape in cassette") +
+ '</option> \
[% END %] \
[% IF ( f6g ) %] \
- <option value="g" selected="selected">g- Optical and magnetic sound track on motion picture film</option> \
+ <option value="g" selected="selected">' +
+ _("g- Optical and magnetic sound track on motion picture film") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Optical and magnetic sound track on motion picture film</option> \
+ <option value="g">' +
+ _("g- Optical and magnetic sound track on motion picture film") +
+ '</option> \
[% END %] \
[% IF ( f6h ) %] \
- <option value="h" selected="selected">h- Videotape</option> \
+ <option value="h" selected="selected">' +
+ _("h- Videotape") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Videotape</option> \
+ <option value="h">' +
+ _("h- Videotape") +
+ '</option> \
[% END %] \
[% IF ( f6i ) %] \
- <option value="i" selected="selected">i- Videodisc</option> \
+ <option value="i" selected="selected">' +
+ _("i- Videodisc") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Videodisc</option> \
+ <option value="i">' +
+ _("i- Videodisc") +
+ '</option> \
[% END %] \
[% IF ( f6u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f6z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f6pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f7">07 Dimensions</label></td> \
+ <td><label for="f7">' +
+ _("07 Dimensions") +
+ '</label></td> \
<td> \
<select name="f7" id="f7" size="1"> \
[% IF ( f7a ) %] \
- <option value="a" selected="selected">a- Standard 8mm.</option> \
+ <option value="a" selected="selected">' +
+ _("a- Standard 8mm.") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Standard 8mm.</option> \
+ <option value="a">' +
+ _("a- Standard 8mm.") +
+ '</option> \
[% END %] \
[% IF ( f7b ) %] \
- <option value="b" selected="selected">b- Super 8mm./single 8mm.</option> \
+ <option value="b" selected="selected">' +
+ _("b- Super 8mm./single 8mm.") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Super 8mm./single 8mm.</option> \
+ <option value="b">' +
+ _("b- Super 8mm./single 8mm.") +
+ '</option> \
[% END %] \
[% IF ( f7c ) %] \
- <option value="c" selected="selected">c- 9.5 mm.</option> \
+ <option value="c" selected="selected">' +
+ _("c- 9.5 mm.") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- 9.5 mm.</option> \
+ <option value="c">' +
+ _("c- 9.5 mm.") +
+ '</option> \
[% END %] \
[% IF ( f7d ) %] \
- <option value="d" selected="selected">d- 16 mm.</option> \
+ <option value="d" selected="selected">' +
+ _("d- 16 mm.") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- 16 mm.</option> \
+ <option value="d">' +
+ _("d- 16 mm.") +
+ '</option> \
[% END %] \
[% IF ( f7e ) %] \
- <option value="e" selected="selected">e- 28 mm.</option> \
+ <option value="e" selected="selected">' +
+ _("e- 28 mm.") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- 28 mm.</option> \
+ <option value="e">' +
+ _("e- 28 mm.") +
+ '</option> \
[% END %] \
[% IF ( f7f ) %] \
- <option value="f" selected="selected">f- 35 mm.</option> \
+ <option value="f" selected="selected">' +
+ _("f- 35 mm.") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- 35 mm.</option> \
+ <option value="f">' +
+ _("f- 35 mm.") +
+ '</option> \
[% END %] \
[% IF ( f7g ) %] \
- <option value="g" selected="selected">g- 70 mm.</option> \
+ <option value="g" selected="selected">' +
+ _("g- 70 mm.") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- 70 mm.</option> \
+ <option value="g">' +
+ _("g- 70 mm.") +
+ '</option> \
[% END %] \
[% IF ( f7u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f7z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f7pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f8">08 Configuration of playback channels</label></td> \
+ <td><label for="f8">' +
+ _("08 Configuration of playback channels") +
+ '</label></td> \
<td> \
<select name="f8" id="f8" size="1"> \
[% IF ( f8k ) %] \
- <option value="k" selected="selected">k- Mixed</option> \
+ <option value="k" selected="selected">' +
+ _("k- Mixed") +
+ '</option> \
[% ELSE %] \
- <option value="k">k- Mixed</option> \
+ <option value="k">' +
+ _("k- Mixed") +
+ '</option> \
[% END %] \
[% IF ( f8m ) %] \
- <option value="m" selected="selected">m- Monaural</option> \
+ <option value="m" selected="selected">' +
+ _("m- Monaural") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Monaural</option> \
+ <option value="m">' +
+ _("m- Monaural") +
+ '</option> \
[% END %] \
[% IF ( f8n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f8q ) %] \
- <option value="q" selected="selected">q- Quadraphonic, multichannel, or surround</option> \
+ <option value="q" selected="selected">' +
+ _("q- Quadraphonic, multichannel, or surround") +
+ '</option> \
[% ELSE %] \
- <option value="q">q- Quadraphonic, multichannel, or surround</option> \
+ <option value="q">' +
+ _("q- Quadraphonic, multichannel, or surround") +
+ '</option> \
[% END %] \
[% IF ( f8s ) %] \
- <option value="s" selected="selected">s- Stereophonic</option> \
+ <option value="s" selected="selected">' +
+ _("s- Stereophonic") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- Stereophonic</option> \
+ <option value="s">' +
+ _("s- Stereophonic") +
+ '</option> \
[% END %] \
[% IF ( f8u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f8z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f8pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f9">09 Production elements</label></td> \
+ <td><label for="f9">' +
+ _("09 Production elements") +
+ '</label></td> \
<td> \
<select name="f9" id="f9" size="1"> \
[% IF ( f9a ) %] \
- <option value="a" selected="selected">a- Workprint</option> \
+ <option value="a" selected="selected">' +
+ _("a- Workprint") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Workprint</option> \
+ <option value="a">' +
+ _("a- Workprint") +
+ '</option> \
[% END %] \
[% IF ( f9b ) %] \
- <option value="b" selected="selected">b- Trims</option> \
+ <option value="b" selected="selected">' +
+ _("b- Trims") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Trims</option> \
+ <option value="b">' +
+ _("b- Trims") +
+ '</option> \
[% END %] \
[% IF ( f9c ) %] \
- <option value="c" selected="selected">c- Outtakes</option> \
+ <option value="c" selected="selected">' +
+ _("c- Outtakes") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Outtakes</option> \
+ <option value="c">' +
+ _("c- Outtakes") +
+ '</option> \
[% END %] \
[% IF ( f9d ) %] \
- <option value="d" selected="selected">d- Rushes</option> \
+ <option value="d" selected="selected">' +
+ _("d- Rushes") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Rushes</option> \
+ <option value="d">' +
+ _("d- Rushes") +
+ '</option> \
[% END %] \
[% IF ( f9e ) %] \
- <option value="e" selected="selected">e- Mixing tracks</option> \
+ <option value="e" selected="selected">' +
+ _("e- Mixing tracks") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Mixing tracks</option> \
+ <option value="e">' +
+ _("e- Mixing tracks") +
+ '</option> \
[% END %] \
[% IF ( f9f ) %] \
- <option value="f" selected="selected">f- Title bands/inter-title rolls</option> \
+ <option value="f" selected="selected">' +
+ _("f- Title bands/inter-title rolls") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Title bands/inter-title rolls</option> \
+ <option value="f">' +
+ _("f- Title bands/inter-title rolls") +
+ '</option> \
[% END %] \
[% IF ( f9g ) %] \
- <option value="g" selected="selected">g- Production rolls</option> \
+ <option value="g" selected="selected">' +
+ _("g- Production rolls") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Production rolls</option> \
+ <option value="g">' +
+ _("g- Production rolls") +
+ '</option> \
[% END %] \
[% IF ( f9n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f9z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f9pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f10">10 Positive/negative aspect</label></td> \
+ <td><label for="f10">' +
+ _("10 Positive/negative aspect") +
+ '</label></td> \
<td> \
<select name="f10" id="f10" size="1"> \
[% IF ( f10a ) %] \
- <option value="a" selected="selected">a- Positive</option> \
+ <option value="a" selected="selected">' +
+ _("a- Positive") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Positive</option> \
+ <option value="a">' +
+ _("a- Positive") +
+ '</option> \
[% END %] \
[% IF ( f10b ) %] \
- <option value="b" selected="selected">b- Negative</option> \
+ <option value="b" selected="selected">' +
+ _("b- Negative") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Negative</option> \
+ <option value="b">' +
+ _("b- Negative") +
+ '</option> \
[% END %] \
[% IF ( f10n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f10u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f10z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f10pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f11">11 Generation</label></td> \
+ <td><label for="f11">' +
+ _("11 Generation") +
+ '</label></td> \
<td> \
<select name="f11" id="f11" size="1"> \
[% IF ( f11d ) %] \
- <option value="d" selected="selected">d- Duplicate</option> \
+ <option value="d" selected="selected">' +
+ _("d- Duplicate") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Duplicate</option> \
+ <option value="d">' +
+ _("d- Duplicate") +
+ '</option> \
[% END %] \
[% IF ( f11e ) %] \
- <option value="e" selected="selected">e- Master</option> \
+ <option value="e" selected="selected">' +
+ _("e- Master") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Master</option> \
+ <option value="e">' +
+ _("e- Master") +
+ '</option> \
[% END %] \
[% IF ( f11o ) %] \
- <option value="o" selected="selected">o- Original</option> \
+ <option value="o" selected="selected">' +
+ _("o- Original") +
+ '</option> \
[% ELSE %] \
- <option value="o">o- Original</option> \
+ <option value="o">' +
+ _("o- Original") +
+ '</option> \
[% END %] \
[% IF ( f11r ) %] \
- <option value="r" selected="selected">r- Reference print/viewing copy</option> \
+ <option value="r" selected="selected">' +
+ _("r- Reference print/viewing copy") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- Reference print/viewing copy</option> \
+ <option value="r">' +
+ _("r- Reference print/viewing copy") +
+ '</option> \
[% END %] \
[% IF ( f11u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f11z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f11pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f12">12 Base of film</label></td> \
+ <td><label for="f12">' +
+ _("12 Base of film") +
+ '</label></td> \
<td> \
<select id="f12" name="f12" size="1"> \
[% IF ( f12a ) %] \
- <option value="a" selected="selected">a- Safety base, undetermined</option> \
+ <option value="a" selected="selected">' +
+ _("a- Safety base, undetermined") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Safety base, undetermined</option> \
+ <option value="a">' +
+ _("a- Safety base, undetermined") +
+ '</option> \
[% END %] \
[% IF ( f12c ) %] \
- <option value="c" selected="selected">c- Safety base, acetate undetermined</option> \
+ <option value="c" selected="selected">' +
+ _("c- Safety base, acetate undetermined") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Safety base, acetate undetermined</option> \
+ <option value="c">' +
+ _("c- Safety base, acetate undetermined") +
+ '</option> \
[% END %] \
[% IF ( f12d ) %] \
- <option value="d" selected="selected">d- Safety base, diacetate</option> \
+ <option value="d" selected="selected">' +
+ _("d- Safety base, diacetate") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Safety base, diacetate</option> \
+ <option value="d">' +
+ _("d- Safety base, diacetate") +
+ '</option> \
[% END %] \
[% IF ( f12i ) %] \
- <option value="i" selected="selected">i- Nitrate base</option> \
+ <option value="i" selected="selected">' +
+ _("i- Nitrate base") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Nitrate base</option> \
+ <option value="i">' +
+ _("i- Nitrate base") +
+ '</option> \
[% END %] \
[% IF ( f12m ) %] \
- <option value="m" selected="selected">m- Mixed base (nitrate and safety)</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed base (nitrate and safety)") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed base (nitrate and safety)</option> \
+ <option value="m">' +
+ _("m- Mixed base (nitrate and safety)") +
+ '</option> \
[% END %] \
[% IF ( f12n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f12p ) %] \
- <option value="p" selected="selected">p- Safety base, polyester</option> \
+ <option value="p" selected="selected">' +
+ _("p- Safety base, polyester") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- Safety base, polyester</option> \
+ <option value="p">' +
+ _("p- Safety base, polyester") +
+ '</option> \
[% END %] \
[% IF ( f12r ) %] \
- <option value="r" selected="selected">r- Safety base, mixed</option> \
+ <option value="r" selected="selected">' +
+ _("r- Safety base, mixed") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- Safety base, mixed</option> \
+ <option value="r">' +
+ _("r- Safety base, mixed") +
+ '</option> \
[% END %] \
[% IF ( f12t ) %] \
- <option value="t" selected="selected">t- Safety base, triacetate</option> \
+ <option value="t" selected="selected">' +
+ _("t- Safety base, triacetate") +
+ '</option> \
[% ELSE %] \
- <option value="t">t- Safety base, triacetate</option> \
+ <option value="t">' +
+ _("t- Safety base, triacetate") +
+ '</option> \
[% END %] \
[% IF ( f12u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f12z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f12pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f13">13 Refined categories of color</label></td> \
+ <td><label for="f13">' +
+ _("13 Refined categories of color") +
+ '</label></td> \
<td> \
<select id="f13" name="f13" size="1"> \
[% IF ( f13a ) %] \
- <option value="a" selected="selected">a- 3 layer color</option> \
+ <option value="a" selected="selected">' +
+ _("a- 3 layer color") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- 3 layer color</option> \
+ <option value="a">' +
+ _("a- 3 layer color") +
+ '</option> \
[% END %] \
[% IF ( f13b ) %] \
- <option value="b" selected="selected">b- 2 color, single strip</option> \
+ <option value="b" selected="selected">' +
+ _("b- 2 color, single strip") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- 2 color, single strip</option> \
+ <option value="b">' +
+ _("b- 2 color, single strip") +
+ '</option> \
[% END %] \
[% IF ( f13c ) %] \
- <option value="c" selected="selected">c- Undetermined 2 color</option> \
+ <option value="c" selected="selected">' +
+ _("c- Undetermined 2 color") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Undetermined 2 color</option> \
+ <option value="c">' +
+ _("c- Undetermined 2 color") +
+ '</option> \
[% END %] \
[% IF ( f13d ) %] \
- <option value="d" selected="selected">d- Undetermined 3 color</option> \
+ <option value="d" selected="selected">' +
+ _("d- Undetermined 3 color") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Undetermined 3 color</option> \
+ <option value="d">' +
+ _("d- Undetermined 3 color") +
+ '</option> \
[% END %] \
[% IF ( f13e ) %] \
- <option value="e" selected="selected">e- 3 strip color</option> \
+ <option value="e" selected="selected">' +
+ _("e- 3 strip color") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- 3 strip color</option> \
+ <option value="e">' +
+ _("e- 3 strip color") +
+ '</option> \
[% END %] \
[% IF ( f13f ) %] \
- <option value="f" selected="selected">f- 2 strip color</option> \
+ <option value="f" selected="selected">' +
+ _("f- 2 strip color") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- 2 strip color</option> \
+ <option value="f">' +
+ _("f- 2 strip color") +
+ '</option> \
[% END %] \
[% IF ( f13g ) %] \
- <option value="g" selected="selected">g- Red strip</option> \
+ <option value="g" selected="selected">' +
+ _("g- Red strip") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Red strip</option> \
+ <option value="g">' +
+ _("g- Red strip") +
+ '</option> \
[% END %] \
[% IF ( f13h ) %] \
- <option value="h" selected="selected">h- Blue or green strip</option> \
+ <option value="h" selected="selected">' +
+ _("h- Blue or green strip") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Blue or green strip</option> \
+ <option value="h">' +
+ _("h- Blue or green strip") +
+ '</option> \
[% END %] \
[% IF ( f13i ) %] \
- <option value="i" selected="selected">i- Cyan strip</option> \
+ <option value="i" selected="selected">' +
+ _("i- Cyan strip") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Cyan strip</option> \
+ <option value="i">' +
+ _("i- Cyan strip") +
+ '</option> \
[% END %] \
[% IF ( f13j ) %] \
- <option value="j" selected="selected">j- Magenta strip</option> \
+ <option value="j" selected="selected">' +
+ _("j- Magenta strip") +
+ '</option> \
[% ELSE %] \
- <option value="j">j- Magenta strip</option> \
+ <option value="j">' +
+ _("j- Magenta strip") +
+ '</option> \
[% END %] \
[% IF ( f13k ) %] \
- <option value="k" selected="selected">k- Yellow strip</option> \
+ <option value="k" selected="selected">' +
+ _("k- Yellow strip") +
+ '</option> \
[% ELSE %] \
- <option value="k">k- Yellow strip</option> \
+ <option value="k">' +
+ _("k- Yellow strip") +
+ '</option> \
[% END %] \
[% IF ( f13l ) %] \
- <option value="l" selected="selected">l- S E N 2</option> \
+ <option value="l" selected="selected">' +
+ _("l- S E N 2") +
+ '</option> \
[% ELSE %] \
- <option value="l">l- S E N 2</option> \
+ <option value="l">' +
+ _("l- S E N 2") +
+ '</option> \
[% END %] \
[% IF ( f13m ) %] \
- <option value="m" selected="selected">m- S E N 3</option> \
+ <option value="m" selected="selected">' +
+ _("m- S E N 3") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- S E N 3</option> \
+ <option value="m">' +
+ _("m- S E N 3") +
+ '</option> \
[% END %] \
[% IF ( f13n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f13p ) %] \
- <option value="p" selected="selected">p- Sepia tone</option> \
+ <option value="p" selected="selected">' +
+ _("p- Sepia tone") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- Sepia tone</option> \
+ <option value="p">' +
+ _("p- Sepia tone") +
+ '</option> \
[% END %] \
[% IF ( f13q ) %] \
- <option value="q" selected="selected">q- Other tone</option> \
+ <option value="q" selected="selected">' +
+ _("q- Other tone") +
+ '</option> \
[% ELSE %] \
- <option value="q">q- Other tone</option> \
+ <option value="q">' +
+ _("q- Other tone") +
+ '</option> \
[% END %] \
[% IF ( f13r ) %] \
- <option value="r" selected="selected">r- Tint</option> \
+ <option value="r" selected="selected">' +
+ _("r- Tint") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- Tint</option> \
+ <option value="r">' +
+ _("r- Tint") +
+ '</option> \
[% END %] \
[% IF ( f13s ) %] \
- <option value="s" selected="selected">s- Tinted and toned</option> \
+ <option value="s" selected="selected">' +
+ _("s- Tinted and toned") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- Tinted and toned</option> \
+ <option value="s">' +
+ _("s- Tinted and toned") +
+ '</option> \
[% END %] \
[% IF ( f13t ) %] \
- <option value="t" selected="selected">t- Stencil color</option> \
+ <option value="t" selected="selected">' +
+ _("t- Stencil color") +
+ '</option> \
[% ELSE %] \
- <option value="t">t- Stencil color</option> \
+ <option value="t">' +
+ _("t- Stencil color") +
+ '</option> \
[% END %] \
[% IF ( f13u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f13v ) %] \
- <option value="v" selected="selected">v- Hand colored</option> \
+ <option value="v" selected="selected">' +
+ _("v- Hand colored") +
+ '</option> \
[% ELSE %] \
- <option value="v">v- Hand colored</option> \
+ <option value="v">' +
+ _("v- Hand colored") +
+ '</option> \
[% END %] \
[% IF ( f13z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f13pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</td> \
<tr> \
- <td><label for="f14">14 Kind of color stock or print</label></td> \
+ <td><label for="f14">' +
+ _("14 Kind of color stock or print") +
+ '</label></td> \
<td> \
<select name="f14" id="f14" size="1"> \
[% IF ( f14a ) %] \
- <option value="a" selected="selected">a- Imbibition dye transfer prints</option> \
+ <option value="a" selected="selected">' +
+ _("a- Imbibition dye transfer prints") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Imbibition dye transfer prints</option> \
+ <option value="a">' +
+ _("a- Imbibition dye transfer prints") +
+ '</option> \
[% END %] \
[% IF ( f14b ) %] \
- <option value="b" selected="selected">b- Three-layer stock</option> \
+ <option value="b" selected="selected">' +
+ _("b- Three-layer stock") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Three-layer stock</option> \
+ <option value="b">' +
+ _("b- Three-layer stock") +
+ '</option> \
[% END %] \
[% IF ( f14c ) %] \
- <option value="c" selected="selected">c- Three layer stock, low fade</option> \
+ <option value="c" selected="selected">' +
+ _("c- Three layer stock, low fade") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Three layer stock, low fade</option> \
+ <option value="c">' +
+ _("c- Three layer stock, low fade") +
+ '</option> \
[% END %] \
[% IF ( f14d ) %] \
- <option value="d" selected="selected">d- Duplitized stock</option> \
+ <option value="d" selected="selected">' +
+ _("d- Duplitized stock") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Duplitized stock</option> \
+ <option value="d">' +
+ _("d- Duplitized stock") +
+ '</option> \
[% END %] \
[% IF ( f14n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f14u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f14z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f14pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
- <td><label for="f15">15 Deterioration stage</label></td> \
+ <td><label for="f15">' +
+ _("15 Deterioration stage") +
+ '</label></td> \
<td> \
<select name="f15" id="f15" size="1"> \
[% IF ( f15a ) %] \
- <option value="a" selected="selected">a- None apparent</option> \
+ <option value="a" selected="selected">' +
+ _("a- None apparent") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- None apparent</option> \
+ <option value="a">' +
+ _("a- None apparent") +
+ '</option> \
[% END %] \
[% IF ( f15b ) %] \
- <option value="b" selected="selected">b- Nitrate: suspicious odor</option> \
+ <option value="b" selected="selected">' +
+ _("b- Nitrate: suspicious odor") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Nitrate: suspicious odor</option> \
+ <option value="b">' +
+ _("b- Nitrate: suspicious odor") +
+ '</option> \
[% END %] \
[% IF ( f15c ) %] \
- <option value="c" selected="selected">c- Nitrate: pungent odor</option> \
+ <option value="c" selected="selected">' +
+ _("c- Nitrate: pungent odor") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Nitrate: pungent odor</option> \
+ <option value="c">' +
+ _("c- Nitrate: pungent odor") +
+ '</option> \
[% END %] \
[% IF ( f15d ) %] \
- <option value="d" selected="selected">d- Nitrate: brownish, discoloration, fading, dusty</option> \
+ <option value="d" selected="selected">' +
+ _("d- Nitrate: brownish, discoloration, fading, dusty") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Nitrate: brownish, discoloration, fading, dusty</option> \
+ <option value="d">' +
+ _("d- Nitrate: brownish, discoloration, fading, dusty") +
+ '</option> \
[% END %] \
[% IF ( f15e ) %] \
- <option value="e" selected="selected">e- Nitrate: sticky</option> \
+ <option value="e" selected="selected">' +
+ _("e- Nitrate: sticky") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Nitrate: sticky</option> \
+ <option value="e">' +
+ _("e- Nitrate: sticky") +
+ '</option> \
[% END %] \
[% IF ( f15f ) %] \
- <option value="f" selected="selected">f- Nitrate: frothy, bubbles, blisters</option> \
+ <option value="f" selected="selected">' +
+ _("f- Nitrate: frothy, bubbles, blisters") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Nitrate: frothy, bubbles, blisters</option> \
+ <option value="f">' +
+ _("f- Nitrate: frothy, bubbles, blisters") +
+ '</option> \
[% END %] \
[% IF ( f15g ) %] \
- <option value="g" selected="selected">g- Nitrate: congealed</option> \
+ <option value="g" selected="selected">' +
+ _("g- Nitrate: congealed") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Nitrate: congealed</option> \
+ <option value="g">' +
+ _("g- Nitrate: congealed") +
+ '</option> \
[% END %] \
[% IF ( f15h ) %] \
- <option value="h" selected="selected">h- Nitrate: powder</option> \
+ <option value="h" selected="selected">' +
+ _("h- Nitrate: powder") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Nitrate: powder</option> \
+ <option value="h">' +
+ _("h- Nitrate: powder") +
+ '</option> \
[% END %] \
[% IF ( f15k ) %] \
- <option value="k" selected="selected">k- Non-nitrate: detectable deterioration</option> \
+ <option value="k" selected="selected">' +
+ _("k- Non-nitrate: detectable deterioration") +
+ '</option> \
[% ELSE %] \
- <option value="k">k- Non-nitrate: detectable deterioration</option> \
+ <option value="k">' +
+ _("k- Non-nitrate: detectable deterioration") +
+ '</option> \
[% END %] \
[% IF ( f15l ) %] \
- <option value="l" selected="selected">l- Non-nitrate: advanced deterioration</option> \
+ <option value="l" selected="selected">' +
+ _("l- Non-nitrate: advanced deterioration") +
+ '</option> \
[% ELSE %] \
- <option value="l">l- Non-nitrate: advanced deterioration</option> \
+ <option value="l">' +
+ _("l- Non-nitrate: advanced deterioration") +
+ '</option> \
[% END %] \
[% IF ( f15m ) %] \
- <option value="m" selected="selected">m- Non-nitrate: disaster</option> \
+ <option value="m" selected="selected">' +
+ _("m- Non-nitrate: disaster") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Non-nitrate: disaster</option> \
+ <option value="m">' +
+ _("m- Non-nitrate: disaster") +
+ '</option> \
[% END %] \
[% IF ( f15pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
- <td><label for="f16">16 Completeness</label></td> \
+ <td><label for="f16">' +
+ _("16 Completeness") +
+ '</label></td> \
<td> \
<select name="f16" id="f16" size="1"> \
[% IF ( f16c ) %] \
- <option value="c" selected="selected">c- Complete</option> \
+ <option value="c" selected="selected">' +
+ _("c- Complete") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Complete</option> \
+ <option value="c">' +
+ _("c- Complete") +
+ '</option> \
[% END %] \
[% IF ( f16i ) %] \
- <option value="i" selected="selected">i- Incomplete</option> \
+ <option value="i" selected="selected">' +
+ _("i- Incomplete") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Incomplete</option> \
+ <option value="i">' +
+ _("i- Incomplete") +
+ '</option> \
[% END %] \
[% IF ( f16n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f16u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f16pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f17">17-22 Film inspection date</label><br /><I>(YYYYMM; use up to 6 - for unknown <br />or | for no attempt to code)</i></td> \
+ <td><label for="f17">' +
+ _("17-22 Film inspection date") +
+ '</label><br /><I>(YYYYMM; use up to 6 - for unknown <br />or | for no attempt to code)</i></td> \
<td><input type="text" size=6 name="f17" id = "f17" value="[% f17 %][% f18 %][% f19 %][% f20 %][% f21 %][% f22 %]">- Date</input> \
</td> \
</td> \
case "o":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>o- Kit</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("o- Kit") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select id="f1" name="f1" size="1"> \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
case "q":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>q- Notated music</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("q- Notated music") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select id="f1" name="f1" size="1"> \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
case "r":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>r- Remote-sensing image</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("r- Remote-sensing image") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select name="f1" id="f1" size="1"> \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f2">02 Undefined</label></td> \
+ <td><label for="f2">' +
+ _("02 Undefined") +
+ '</label></td> \
<td> \
<select name="f2" id="f2" size="1"> \
[% IF ( f2exclamation ) %] \
- <option value=" " selected="selected">#- Undefined</option> \
+ <option value=" " selected="selected">' +
+ _("#- Undefined") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- Undefined</option> \
+ <option value=" ">' +
+ _("#- Undefined") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f3">03 Altitude of sensor</label></td> \
+ <td><label for="f3">' +
+ _("03 Altitude of sensor") +
+ '</label></td> \
<td> \
<select name="f3" id="f3" size="1"> \
[% IF ( f3a ) %] \
- <option value="a" selected="selected">a- Surface</option> \
+ <option value="a" selected="selected">' +
+ _("a- Surface") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Surface</option> \
+ <option value="a">' +
+ _("a- Surface") +
+ '</option> \
[% END %] \
[% IF ( f3b ) %] \
- <option value="b" selected="selected">b- Airborne</option> \
+ <option value="b" selected="selected">' +
+ _("b- Airborne") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Airborne</option> \
+ <option value="b">' +
+ _("b- Airborne") +
+ '</option> \
[% END %] \
[% IF ( f3c ) %] \
- <option value="c" selected="selected">c- Spaceborne</option> \
+ <option value="c" selected="selected">' +
+ _("c- Spaceborne") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Spaceborne</option> \
+ <option value="c">' +
+ _("c- Spaceborne") +
+ '</option> \
[% END %] \
[% IF ( f3n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f3u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f3z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f3pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f4">04 Attitude of sensor</label></td> \
+ <td><label for="f4">' +
+ _("04 Attitude of sensor") +
+ '</label></td> \
<td> \
<select name="f4" id="f4" size="1"> \
[% IF ( f4a ) %] \
- <option value="a" selected="selected">a- Low oblique</option> \
+ <option value="a" selected="selected">' +
+ _("a- Low oblique") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Low oblique</option> \
+ <option value="a">' +
+ _("a- Low oblique") +
+ '</option> \
[% END %] \
[% IF ( f4b ) %] \
- <option value="b" selected="selected">b- High oblique</option> \
+ <option value="b" selected="selected">' +
+ _("b- High oblique") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- High oblique</option> \
+ <option value="b">' +
+ _("b- High oblique") +
+ '</option> \
[% END %] \
[% IF ( f4c ) %] \
- <option value="c" selected="selected">c- Vertical</option> \
+ <option value="c" selected="selected">' +
+ _("c- Vertical") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- vertical</option> \
+ <option value="c">' +
+ _("c- vertical") +
+ '</option> \
[% END %] \
[% IF ( f4n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f4u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f4pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f5">05 Cloud cover</label></td> \
+ <td><label for="f5">' +
+ _("05 Cloud cover") +
+ '</label></td> \
<td> \
<select name="f5" id="f5" size="1"> \
[% IF ( f5a ) %] \
- <option value="0" selected="selected">0- 0-9%</option> \
+ <option value="0" selected="selected">' +
+ _("0- 0-9%") +
+ '</option> \
[% ELSE %] \
- <option value="0">0- 0-9%</option> \
+ <option value="0">' +
+ _("0- 0-9%") +
+ '</option> \
[% END %] \
[% IF ( f5b ) %] \
- <option value="1" selected="selected">1- 10-19%</option> \
+ <option value="1" selected="selected">' +
+ _("1- 10-19%") +
+ '</option> \
[% ELSE %] \
- <option value="1">1- 10-19%</option> \
+ <option value="1">' +
+ _("1- 10-19%") +
+ '</option> \
[% END %] \
[% IF ( f5c ) %] \
- <option value="2" selected="selected">2- 20-29%</option> \
+ <option value="2" selected="selected">' +
+ _("2- 20-29%") +
+ '</option> \
[% ELSE %] \
- <option value="2">2- 20-29%</option> \
+ <option value="2">' +
+ _("2- 20-29%") +
+ '</option> \
[% END %] \
[% IF ( f5d ) %] \
- <option value="3" selected="selected">3- 30-39%</option> \
+ <option value="3" selected="selected">' +
+ _("3- 30-39%") +
+ '</option> \
[% ELSE %] \
- <option value="3">3- 30-39%</option> \
+ <option value="3">' +
+ _("3- 30-39%") +
+ '</option> \
[% END %] \
[% IF ( f5e ) %] \
- <option value="4" selected="selected">4- 40-49%</option> \
+ <option value="4" selected="selected">' +
+ _("4- 40-49%") +
+ '</option> \
[% ELSE %] \
- <option value="4">4- 40-49%</option> \
+ <option value="4">' +
+ _("4- 40-49%") +
+ '</option> \
[% END %] \
[% IF ( f5f ) %] \
- <option value="5" selected="selected">5- 50-59%</option> \
+ <option value="5" selected="selected">' +
+ _("5- 50-59%") +
+ '</option> \
[% ELSE %] \
- <option value="5">5- 50-59%</option> \
+ <option value="5">' +
+ _("5- 50-59%") +
+ '</option> \
[% END %] \
[% IF ( f5g ) %] \
- <option value="6" selected="selected">6- 60-69%</option> \
+ <option value="6" selected="selected">' +
+ _("6- 60-69%") +
+ '</option> \
[% ELSE %] \
- <option value="6">6- 60-69%</option> \
+ <option value="6">' +
+ _("6- 60-69%") +
+ '</option> \
[% END %] \
[% IF ( f5h ) %] \
- <option value="7" selected="selected">7- 70-79%</option> \
+ <option value="7" selected="selected">' +
+ _("7- 70-79%") +
+ '</option> \
[% ELSE %] \
- <option value="7">7- 70-79%</option> \
+ <option value="7">' +
+ _("7- 70-79%") +
+ '</option> \
[% END %] \
[% IF ( f5i ) %] \
- <option value="8" selected="selected">8- 80-89%</option> \
+ <option value="8" selected="selected">' +
+ _("8- 80-89%") +
+ '</option> \
[% ELSE %] \
- <option value="8">8- 80-89%</option> \
+ <option value="8">' +
+ _("8- 80-89%") +
+ '</option> \
[% END %] \
[% IF ( f5j ) %] \
- <option value="9" selected="selected">9- 90-100%</option> \
+ <option value="9" selected="selected">' +
+ _("9- 90-100%") +
+ '</option> \
[% ELSE %] \
- <option value="9">9- 90-100%</option> \
+ <option value="9">' +
+ _("9- 90-100%") +
+ '</option> \
[% END %] \
[% IF ( f5n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f5u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f5pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f6">06 Platform construction type</label></td> \
+ <td><label for="f6">' +
+ _("06 Platform construction type") +
+ '</label></td> \
<td> \
<select name="f6" id="f6" size="1"> \
[% IF ( f6a ) %] \
- <option value="a" selected="selected">a- Balloon</option> \
+ <option value="a" selected="selected">' +
+ _("a- Balloon") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Balloon</option> \
+ <option value="a">' +
+ _("a- Balloon") +
+ '</option> \
[% END %] \
[% IF ( f6b ) %] \
- <option value="b" selected="selected">b- Aircraft--low altitude</option> \
+ <option value="b" selected="selected">' +
+ _("b- Aircraft--low altitude") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Aircraft--low altitude</option> \
+ <option value="b">' +
+ _("b- Aircraft--low altitude") +
+ '</option> \
[% END %] \
[% IF ( f6c ) %] \
- <option value="c" selected="selected">c- Aircraft--medium altitude</option> \
+ <option value="c" selected="selected">' +
+ _("c- Aircraft--medium altitude") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Aircraft--medium altitude</option> \
+ <option value="c">' +
+ _("c- Aircraft--medium altitude") +
+ '</option> \
[% END %] \
[% IF ( f6d ) %] \
- <option value="d" selected="selected">d- Aircraft--high altitude</option> \
+ <option value="d" selected="selected">' +
+ _("d- Aircraft--high altitude") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Aircraft--high altitude</option> \
+ <option value="d">' +
+ _("d- Aircraft--high altitude") +
+ '</option> \
[% END %] \
[% IF ( f6e ) %] \
- <option value="e" selected="selected">e- Manned spacecraft</option> \
+ <option value="e" selected="selected">' +
+ _("e- Manned spacecraft") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Manned spacecraft</option> \
+ <option value="e">' +
+ _("e- Manned spacecraft") +
+ '</option> \
[% END %] \
[% IF ( f6f ) %] \
- <option value="f" selected="selected">f- Unmanned spacecraft</option> \
+ <option value="f" selected="selected">' +
+ _("f- Unmanned spacecraft") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Unmanned spacecraft</option> \
+ <option value="f">' +
+ _("f- Unmanned spacecraft") +
+ '</option> \
[% END %] \
[% IF ( f6g ) %] \
- <option value="g" selected="selected">g- Land-based remote-sensing device</option> \
+ <option value="g" selected="selected">' +
+ _("g- Land-based remote-sensing device") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Land-based remote-sensing device</option> \
+ <option value="g">' +
+ _("g- Land-based remote-sensing device") +
+ '</option> \
[% END %] \
[% IF ( f6h ) %] \
- <option value="h" selected="selected">h- Water surface-based remote-sensing device</option> \
+ <option value="h" selected="selected">' +
+ _("h- Water surface-based remote-sensing device") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Water surface-based remote-sensing device</option> \
+ <option value="h">' +
+ _("h- Water surface-based remote-sensing device") +
+ '</option> \
[% END %] \
[% IF ( f6i ) %] \
- <option value="i" selected="selected">i- Submersible remote-sensing device</option> \
+ <option value="i" selected="selected">' +
+ _("i- Submersible remote-sensing device") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Submersible remote-sensing device</option> \
+ <option value="i">' +
+ _("i- Submersible remote-sensing device") +
+ '</option> \
[% END %] \
[% IF ( f6n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f6u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f6z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f6pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f7">07 Platform use category</label></td> \
+ <td><label for="f7">' +
+ _("07 Platform use category") +
+ '</label></td> \
<td> \
<select name="f7" id="f7" size="1"> \
[% IF ( f7a ) %] \
- <option value="a" selected="selected">a- Meteorological</option> \
+ <option value="a" selected="selected">' +
+ _("a- Meteorological") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Meteorological</option> \
+ <option value="a">' +
+ _("a- Meteorological") +
+ '</option> \
[% END %] \
[% IF ( f7b ) %] \
- <option value="b" selected="selected">b- Surface observing</option> \
+ <option value="b" selected="selected">' +
+ _("b- Surface observing") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Surface observing</option> \
+ <option value="b">' +
+ _("b- Surface observing") +
+ '</option> \
[% END %] \
[% IF ( f7c ) %] \
- <option value="c" selected="selected">c- Space observing</option> \
+ <option value="c" selected="selected">' +
+ _("c- Space observing") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Space observing</option> \
+ <option value="c">' +
+ _("c- Space observing") +
+ '</option> \
[% END %] \
[% IF ( f7m ) %] \
- <option value="m" selected="selected">m- Mixed uses</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed uses") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed uses</option> \
+ <option value="m">' +
+ _("m- Mixed uses") +
+ '</option> \
[% END %] \
[% IF ( f7n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f7u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f7z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f7pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f8">08 Sensor type</label></td> \
+ <td><label for="f8">' +
+ _("08 Sensor type") +
+ '</label></td> \
<td> \
<select name="f8" id="f8" size="1"> \
[% IF ( f8a ) %] \
- <option value="a" selected="selected">a- Active</option> \
+ <option value="a" selected="selected">' +
+ _("a- Active") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Active</option> \
+ <option value="a">' +
+ _("a- Active") +
+ '</option> \
[% END %] \
[% IF ( f8b ) %] \
- <option value="b" selected="selected">b- Passive</option> \
+ <option value="b" selected="selected">' +
+ _("b- Passive") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Passive</option> \
+ <option value="b">' +
+ _("b- Passive") +
+ '</option> \
[% END %] \
[% IF ( f8u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f8z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f8pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f9">09-10 Data type</label></td> \
+ <td><label for="f9">' +
+ _("09-10 Data type") +
+ '</label></td> \
<td> \
<select name="f9" id="f9" size="1"> \
[% IF ( f9a ) %] \
- <option value="aa" selected="selected">aa- Visible light</option> \
+ <option value="aa" selected="selected">' +
+ _("aa- Visible light") +
+ '</option> \
[% ELSE %] \
- <option value="aa">aa- Visible light</option> \
+ <option value="aa">' +
+ _("aa- Visible light") +
+ '</option> \
[% END %] \
[% IF ( f9b ) %] \
- <option value="da" selected="selected">da- Near infrared</option> \
+ <option value="da" selected="selected">' +
+ _("da- Near infrared") +
+ '</option> \
[% ELSE %] \
- <option value="da">da- Near infrared</option> \
+ <option value="da">' +
+ _("da- Near infrared") +
+ '</option> \
[% END %] \
[% IF ( f9c ) %] \
- <option value="db" selected="selected">db- Middle infrared</option> \
+ <option value="db" selected="selected">' +
+ _("db- Middle infrared") +
+ '</option> \
[% ELSE %] \
- <option value="db">db- Middle infrared</option> \
+ <option value="db">' +
+ _("db- Middle infrared") +
+ '</option> \
[% END %] \
[% IF ( f9d ) %] \
- <option value="dc" selected="selected">dc- Far infrared</option> \
+ <option value="dc" selected="selected">' +
+ _("dc- Far infrared") +
+ '</option> \
[% ELSE %] \
- <option value="dc">dc- Far infrared</option> \
+ <option value="dc">' +
+ _("dc- Far infrared") +
+ '</option> \
[% END %] \
[% IF ( f9e ) %] \
- <option value="dd" selected="selected">dd- Thermal infrared</option> \
+ <option value="dd" selected="selected">' +
+ _("dd- Thermal infrared") +
+ '</option> \
[% ELSE %] \
- <option value="dd">dd- Thermal infrared</option> \
+ <option value="dd">' +
+ _("dd- Thermal infrared") +
+ '</option> \
[% END %] \
[% IF ( f9f ) %] \
- <option value="de" selected="selected">de- Shortwave infrared (SWIR)</option> \
+ <option value="de" selected="selected">' +
+ _("de- Shortwave infrared (SWIR)") +
+ '</option> \
[% ELSE %] \
- <option value="de">de- Shortwave infrared (SWIR)</option> \
+ <option value="de">' +
+ _("de- Shortwave infrared (SWIR)") +
+ '</option> \
[% END %] \
[% IF ( f9g ) %] \
- <option value="df" selected="selected">df- Reflective infrared</option> \
+ <option value="df" selected="selected">' +
+ _("df- Reflective infrared") +
+ '</option> \
[% ELSE %] \
- <option value="df">df- Reflective infrared</option> \
+ <option value="df">' +
+ _("df- Reflective infrared") +
+ '</option> \
[% END %] \
[% IF ( f9h ) %] \
- <option value="dv" selected="selected">dv- Combinations</option> \
+ <option value="dv" selected="selected">' +
+ _("dv- Combinations") +
+ '</option> \
[% ELSE %] \
- <option value="dv">dv- Combinations</option> \
+ <option value="dv">' +
+ _("dv- Combinations") +
+ '</option> \
[% END %] \
[% IF ( f9i ) %] \
- <option value="dz" selected="selected">dz- Other infrared data</option> \
+ <option value="dz" selected="selected">' +
+ _("dz- Other infrared data") +
+ '</option> \
[% ELSE %] \
- <option value="dz">dz- Other infrared data</option> \
+ <option value="dz">' +
+ _("dz- Other infrared data") +
+ '</option> \
[% END %] \
[% IF ( f9j ) %] \
- <option value="ga" selected="selected">ga- Sidelooking airborne radar (SLAR)</option> \
+ <option value="ga" selected="selected">' +
+ _("ga- Sidelooking airborne radar (SLAR)") +
+ '</option> \
[% ELSE %] \
- <option value="ga">ga- Sidelooking airborne radar (SLAR)</option> \
+ <option value="ga">' +
+ _("ga- Sidelooking airborne radar (SLAR)") +
+ '</option> \
[% END %] \
[% IF ( f9k ) %] \
- <option value="gb" selected="selected">gb- Synthetic aperture airborne radar (SAR)-Single frequency</option> \
+ <option value="gb" selected="selected">' +
+ _("gb- Synthetic aperture airborne radar (SAR)-Single frequency") +
+ '</option> \
[% ELSE %] \
- <option value="gb">gb- Synthetic aperture airborne radar (SAR)-Single frequency</option> \
+ <option value="gb">' +
+ _("gb- Synthetic aperture airborne radar (SAR)-Single frequency") +
+ '</option> \
[% END %] \
[% IF ( f9l ) %] \
- <option value="gc" selected="selected">gc- SAR-multi-frequency (multichannel)</option> \
+ <option value="gc" selected="selected">' +
+ _("gc- SAR-multi-frequency (multichannel)") +
+ '</option> \
[% ELSE %] \
- <option value="gc">gc- SAR-multi-frequency (multichannel)</option> \
+ <option value="gc">' +
+ _("gc- SAR-multi-frequency (multichannel)") +
+ '</option> \
[% END %] \
[% IF ( f9m ) %] \
- <option value="gd" selected="selected">gd- SAR-like polarization</option> \
+ <option value="gd" selected="selected">' +
+ _("gd- SAR-like polarization") +
+ '</option> \
[% ELSE %] \
- <option value="gd">gd- SAR-like polarization</option> \
+ <option value="gd">' +
+ _("gd- SAR-like polarization") +
+ '</option> \
[% END %] \
[% IF ( f9n ) %] \
- <option value="ge" selected="selected">ge- SAR-cross polarization</option> \
+ <option value="ge" selected="selected">' +
+ _("ge- SAR-cross polarization") +
+ '</option> \
[% ELSE %] \
- <option value="ge">ge- SAR-cross polarization</option> \
+ <option value="ge">' +
+ _("ge- SAR-cross polarization") +
+ '</option> \
[% END %] \
[% IF ( f9o ) %] \
- <option value="gf" selected="selected">gf- Infometric SAR</option> \
+ <option value="gf" selected="selected">' +
+ _("gf- Infometric SAR") +
+ '</option> \
[% ELSE %] \
- <option value="gf">gf- Infometric SAR</option> \
+ <option value="gf">' +
+ _("gf- Infometric SAR") +
+ '</option> \
[% END %] \
[% IF ( f9p ) %] \
- <option value="gg" selected="selected">gg- polarmetric SAR</option> \
+ <option value="gg" selected="selected">' +
+ _("gg- polarmetric SAR") +
+ '</option> \
[% ELSE %] \
- <option value="gg">gg- polarmetric SAR</option> \
+ <option value="gg">' +
+ _("gg- polarmetric SAR") +
+ '</option> \
[% END %] \
[% IF ( f9q ) %] \
- <option value="gu" selected="selected">gu- Passive microwave mapping</option> \
+ <option value="gu" selected="selected">' +
+ _("gu- Passive microwave mapping") +
+ '</option> \
[% ELSE %] \
- <option value="gu">gu- Passive microwave mapping</option> \
+ <option value="gu">' +
+ _("gu- Passive microwave mapping") +
+ '</option> \
[% END %] \
[% IF ( f9r ) %] \
- <option value="gz" selected="selected">gz- Other microwave data</option> \
+ <option value="gz" selected="selected">' +
+ _("gz- Other microwave data") +
+ '</option> \
[% ELSE %] \
- <option value="gz">gz- Other microwave data</option> \
+ <option value="gz">' +
+ _("gz- Other microwave data") +
+ '</option> \
[% END %] \
[% IF ( f9s ) %] \
- <option value="ja" selected="selected">ja- Far ultraviolet</option> \
+ <option value="ja" selected="selected">' +
+ _("ja- Far ultraviolet") +
+ '</option> \
[% ELSE %] \
- <option value="ja">ja- Far ultraviolet</option> \
+ <option value="ja">' +
+ _("ja- Far ultraviolet") +
+ '</option> \
[% END %] \
[% IF ( f9t ) %] \
- <option value="jb" selected="selected">jb- Middle ultraviolet</option> \
+ <option value="jb" selected="selected">' +
+ _("jb- Middle ultraviolet") +
+ '</option> \
[% ELSE %] \
- <option value="jb">jb- Middle ultraviolet</option> \
+ <option value="jb">' +
+ _("jb- Middle ultraviolet") +
+ '</option> \
[% END %] \
[% IF ( f9u ) %] \
- <option value="jc" selected="selected">jc- Near ultraviolet</option> \
+ <option value="jc" selected="selected">' +
+ _("jc- Near ultraviolet") +
+ '</option> \
[% ELSE %] \
- <option value="jc">jc- Near ultraviolet</option> \
+ <option value="jc">' +
+ _("jc- Near ultraviolet") +
+ '</option> \
[% END %] \
[% IF ( f9v ) %] \
- <option value="jv" selected="selected">jv- Ultraviolet combinations</option> \
+ <option value="jv" selected="selected">' +
+ _("jv- Ultraviolet combinations") +
+ '</option> \
[% ELSE %] \
- <option value="jv">jv- Ultraviolet combinations</option> \
+ <option value="jv">' +
+ _("jv- Ultraviolet combinations") +
+ '</option> \
[% END %] \
[% IF ( f9w ) %] \
- <option value="jz" selected="selected">jz- Other ultraviolet data</option> \
+ <option value="jz" selected="selected">' +
+ _("jz- Other ultraviolet data") +
+ '</option> \
[% ELSE %] \
- <option value="jz">jz- Other ultraviolet data</option> \
+ <option value="jz">' +
+ _("jz- Other ultraviolet data") +
+ '</option> \
[% END %] \
[% IF ( f9x ) %] \
- <option value="ma" selected="selected">ma- Multi-spectral, multidata</option> \
+ <option value="ma" selected="selected">' +
+ _("ma- Multi-spectral, multidata") +
+ '</option> \
[% ELSE %] \
- <option value="ma">ma- Multi-spectral, multidata</option> \
+ <option value="ma">' +
+ _("ma- Multi-spectral, multidata") +
+ '</option> \
[% END %] \
[% IF ( f9y ) %] \
- <option value="mb" selected="selected">mb- Multi-temporal</option> \
+ <option value="mb" selected="selected">' +
+ _("mb- Multi-temporal") +
+ '</option> \
[% ELSE %] \
- <option value="mb">mb- Multi-temporal</option> \
+ <option value="mb">' +
+ _("mb- Multi-temporal") +
+ '</option> \
[% END %] \
[% IF ( f9z ) %] \
- <option value="mm" selected="selected">mm- Combination of various data types</option> \
+ <option value="mm" selected="selected">' +
+ _("mm- Combination of various data types") +
+ '</option> \
[% ELSE %] \
- <option value="mm">mm- Combination of various data types</option> \
+ <option value="mm">' +
+ _("mm- Combination of various data types") +
+ '</option> \
[% END %] \
[% IF ( f9a1 ) %] \
- <option value="nn" selected="selected">nn- Not applicable</option> \
+ <option value="nn" selected="selected">' +
+ _("nn- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="nn">nn- Not applicable</option> \
+ <option value="nn">' +
+ _("nn- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f9a2 ) %] \
- <option value="pa" selected="selected">pa- Sonar--water depth</option> \
+ <option value="pa" selected="selected">' +
+ _("pa- Sonar--water depth") +
+ '</option> \
[% ELSE %] \
- <option value="pa">pa- Sonar--water depth</option> \
+ <option value="pa">' +
+ _("pa- Sonar--water depth") +
+ '</option> \
[% END %] \
[% IF ( f9a3 ) %] \
- <option value="pb" selected="selected">pb- Sonar--bottom topography images, sidescan</option> \
+ <option value="pb" selected="selected">' +
+ _("pb- Sonar--bottom topography images, sidescan") +
+ '</option> \
[% ELSE %] \
- <option value="pb">pb- Sonar--bottom topography images, sidescan</option> \
+ <option value="pb">' +
+ _("pb- Sonar--bottom topography images, sidescan") +
+ '</option> \
[% END %] \
[% IF ( f9a4 ) %] \
- <option value="pc" selected="selected">pc- Sonar--bottom topography, near-surface</option> \
+ <option value="pc" selected="selected">' +
+ _("pc- Sonar--bottom topography, near-surface") +
+ '</option> \
[% ELSE %] \
- <option value="pc">pc- Sonar--bottom topography, near-surface</option> \
+ <option value="pc">' +
+ _("pc- Sonar--bottom topography, near-surface") +
+ '</option> \
[% END %] \
[% IF ( f9a5 ) %] \
- <option value="pd" selected="selected">pd- Sonar--bottom topography, near-bottom</option> \
+ <option value="pd" selected="selected">' +
+ _("pd- Sonar--bottom topography, near-bottom") +
+ '</option> \
[% ELSE %] \
- <option value="pd">pd- Sonar--bottom topography, near-bottom</option> \
+ <option value="pd">' +
+ _("pd- Sonar--bottom topography, near-bottom") +
+ '</option> \
[% END %] \
[% IF ( f9a6 ) %] \
- <option value="pe" selected="selected">pe- Seismic surveys</option> \
+ <option value="pe" selected="selected">' +
+ _("pe- Seismic surveys") +
+ '</option> \
[% ELSE %] \
- <option value="pe">pe- Seismic surveys</option> \
+ <option value="pe">' +
+ _("pe- Seismic surveys") +
+ '</option> \
[% END %] \
[% IF ( f9a7 ) %] \
- <option value="pz" selected="selected">pz- Other acoustical data</option> \
+ <option value="pz" selected="selected">' +
+ _("pz- Other acoustical data") +
+ '</option> \
[% ELSE %] \
- <option value="pz">pz- Other acoustical data</option> \
+ <option value="pz">' +
+ _("pz- Other acoustical data") +
+ '</option> \
[% END %] \
[% IF ( f9a8 ) %] \
- <option value="ra" selected="selected">ra- Gravity anomalies (general)</option> \
+ <option value="ra" selected="selected">' +
+ _("ra- Gravity anomalies (general)") +
+ '</option> \
[% ELSE %] \
- <option value="ra">ra- Gravity anomalies (general)</option> \
+ <option value="ra">' +
+ _("ra- Gravity anomalies (general)") +
+ '</option> \
[% END %] \
[% IF ( f9a9 ) %] \
- <option value="rb" selected="selected">rb- Free-air</option> \
+ <option value="rb" selected="selected">' +
+ _("rb- Free-air") +
+ '</option> \
[% ELSE %] \
- <option value="rb">rb- Free-air</option> \
+ <option value="rb">' +
+ _("rb- Free-air") +
+ '</option> \
[% END %] \
[% IF ( f9a10 ) %] \
- <option value="rc" selected="selected">rc- Bouger</option> \
+ <option value="rc" selected="selected">' +
+ _("rc- Bouger") +
+ '</option> \
[% ELSE %] \
- <option value="rc">rc- Bouger</option> \
+ <option value="rc">' +
+ _("rc- Bouger") +
+ '</option> \
[% END %] \
[% IF ( f9a11 ) %] \
- <option value="rd" selected="selected">rd- Isostatic</option> \
+ <option value="rd" selected="selected">' +
+ _("rd- Isostatic") +
+ '</option> \
[% ELSE %] \
- <option value="rd">rd- Isostatic</option> \
+ <option value="rd">' +
+ _("rd- Isostatic") +
+ '</option> \
[% END %] \
[% IF ( f9a12 ) %] \
- <option value="sa" selected="selected">sa- Magnetic field</option> \
+ <option value="sa" selected="selected">' +
+ _("sa- Magnetic field") +
+ '</option> \
[% ELSE %] \
- <option value="sa">sa- Magnetic field</option> \
+ <option value="sa">' +
+ _("sa- Magnetic field") +
+ '</option> \
[% END %] \
[% IF ( f9a13 ) %] \
- <option value="ta" selected="selected">ta- radiometric surveys</option> \
+ <option value="ta" selected="selected">' +
+ _("ta- radiometric surveys") +
+ '</option> \
[% ELSE %] \
- <option value="ta">ta- radiometric surveys</option> \
+ <option value="ta">' +
+ _("ta- radiometric surveys") +
+ '</option> \
[% END %] \
[% IF ( f9a14 ) %] \
- <option value="uu" selected="selected">uu- Unknown</option> \
+ <option value="uu" selected="selected">' +
+ _("uu- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="uu">uu- Unknown</option> \
+ <option value="uu">' +
+ _("uu- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f9a15 ) %] \
- <option value="zz" selected="selected">zz- Other</option> \
+ <option value="zz" selected="selected">' +
+ _("zz- Other") +
+ '</option> \
[% ELSE %] \
- <option value="zz">zz- Other</option> \
+ <option value="zz">' +
+ _("zz- Other") +
+ '</option> \
[% END %] \
[% IF ( f9a16 ) %] \
- <option value="||" selected="selected">||- No attempt to code</option> \
+ <option value="||" selected="selected">' +
+ _("||- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="||">||- No attempt to code</option> \
+ <option value="||">' +
+ _("||- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
case "s":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>s- Sound recording</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("s- Sound recording") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select name="f1" id="f1" size="1"> \
[% IF ( f1d ) %] \
- <option value="d" selected="selected">d- Sound disc</option> \
+ <option value="d" selected="selected">' +
+ _("d- Sound disc") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Sound disc</option> \
+ <option value="d">' +
+ _("d- Sound disc") +
+ '</option> \
[% END %] \
[% IF ( f1e ) %] \
- <option value="e" selected="selected">e- Cylinder</option> \
+ <option value="e" selected="selected">' +
+ _("e- Cylinder") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Cylinder</option> \
+ <option value="e">' +
+ _("e- Cylinder") +
+ '</option> \
[% END %] \
[% IF ( f1g ) %] \
- <option value="g" selected="selected">g- Sound cartridge</option> \
+ <option value="g" selected="selected">' +
+ _("g- Sound cartridge") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Sound cartridge</option> \
+ <option value="g">' +
+ _("g- Sound cartridge") +
+ '</option> \
[% END %] \
[% IF ( f1i ) %] \
- <option value="i" selected="selected">i- Sound-track film</option> \
+ <option value="i" selected="selected">' +
+ _("i- Sound-track film") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Sound-track film</option> \
+ <option value="i">' +
+ _("i- Sound-track film") +
+ '</option> \
[% END %] \
[% IF ( f1q ) %] \
- <option value="q" selected="selected">q- Roll</option> \
+ <option value="q" selected="selected">' +
+ _("q- Roll") +
+ '</option> \
[% ELSE %] \
- <option value="q">q- Roll</option> \
+ <option value="q">' +
+ _("q- Roll") +
+ '</option> \
[% END %] \
[% IF ( f1s ) %] \
- <option value="s" selected="selected">s- Sound cassette</option> \
+ <option value="s" selected="selected">' +
+ _("s- Sound cassette") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- Sound cassette</option> \
+ <option value="s">' +
+ _("s- Sound cassette") +
+ '</option> \
[% END %] \
[% IF ( f1t ) %] \
- <option value="t" selected="selected">t- Sound-tape reel/option> \
+ <option value="t" selected="selected">' +
+ _("t- Sound-tape reel") +
+ '</option> \
[% ELSE %] \
- <option value="t">t- Sound-tape reel</option> \
+ <option value="t">' +
+ _("t- Sound-tape reel") +
+ '</option> \
[% END %] \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1w ) %] \
- <option value="w" selected="selected">w- Wire recording</option> \
+ <option value="w" selected="selected">' +
+ _("w- Wire recording") +
+ '</option> \
[% ELSE %] \
- <option value="w">w- Wire recording</option> \
+ <option value="w">' +
+ _("w- Wire recording") +
+ '</option> \
[% END %] \
[% IF ( f1z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f2">02 Undefined</label></td> \
+ <td><label for="f2">' +
+ _("02 Undefined") +
+ '</label></td> \
<td> \
<select name="f2" id="f2" size="1"> \
[% IF ( f2exclamation ) %] \
- <option value=" " selected="selected">#- Undefined</option> \
+ <option value=" " selected="selected">' +
+ _("#- Undefined") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- Undefined</option> \
+ <option value=" ">' +
+ _("#- Undefined") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f3">03 Speed</label></td> \
+ <td><label for="f3">' +
+ _("03 Speed") +
+ '</label></td> \
<td> \
<select name="f3" id="f3" size="1"> \
[% IF ( f3a ) %] \
- <option value="a" selected="selected">a- 16 rpm (discs)</option> \
+ <option value="a" selected="selected">' +
+ _("a- 16 rpm (discs)") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- 16 rpm (discs)</option> \
+ <option value="a">' +
+ _("a- 16 rpm (discs)") +
+ '</option> \
[% END %] \
[% IF ( f3b ) %] \
- <option value="b" selected="selected">b- 33 1/3 rpm (discs)</option> \
+ <option value="b" selected="selected">' +
+ _("b- 33 1/3 rpm (discs)") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- 33 1/3 rpm (discs)</option> \
+ <option value="b">' +
+ _("b- 33 1/3 rpm (discs)") +
+ '</option> \
[% END %] \
[% IF ( f3c ) %] \
- <option value="c" selected="selected">c- 45 rpm (discs)</option> \
+ <option value="c" selected="selected">' +
+ _("c- 45 rpm (discs)") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- 45 rpm (discs)</option> \
+ <option value="c">' +
+ _("c- 45 rpm (discs)") +
+ '</option> \
[% END %] \
[% IF ( f3d ) %] \
- <option value="d" selected="selected">d- 78 rpm (discs)</option> \
+ <option value="d" selected="selected">' +
+ _("d- 78 rpm (discs)") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- 78 rpm (discs)</option> \
+ <option value="d">' +
+ _("d- 78 rpm (discs)") +
+ '</option> \
[% END %] \
[% IF ( f3e ) %] \
- <option value="e" selected="selected">e- 8 rpm (discs)</option> \
+ <option value="e" selected="selected">' +
+ _("e- 8 rpm (discs)") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- 8 rpm (discs)</option> \
+ <option value="e">' +
+ _("e- 8 rpm (discs)") +
+ '</option> \
[% END %] \
[% IF ( f3f ) %] \
- <option value="f" selected="selected">f- 1.4 m. per second (discs)</option> \
+ <option value="f" selected="selected">' +
+ _("f- 1.4 m. per second (discs)") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- 1.4 m. per second (discs)</option> \
+ <option value="f">' +
+ _("f- 1.4 m. per second (discs)") +
+ '</option> \
[% END %] \
[% IF ( f3h ) %] \
- <option value="h" selected="selected">h- 120 rpm (cylinders)</option> \
+ <option value="h" selected="selected">' +
+ _("h- 120 rpm (cylinders)") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- 120 rpm (cylinders)</option> \
+ <option value="h">' +
+ _("h- 120 rpm (cylinders)") +
+ '</option> \
[% END %] \
[% IF ( f3i ) %] \
- <option value="i" selected="selected">i- 160 rpm (cylinders)</option> \
+ <option value="i" selected="selected">' +
+ _("i- 160 rpm (cylinders)") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- 160 rpm (cylinders)</option> \
+ <option value="i">' +
+ _("i- 160 rpm (cylinders)") +
+ '</option> \
[% END %] \
[% IF ( f3k ) %] \
- <option value="k" selected="selected">k- 15/16 ips (tapes)</option> \
+ <option value="k" selected="selected">' +
+ _("k- 15/16 ips (tapes)") +
+ '</option> \
[% ELSE %] \
- <option value="k">k- 15/16 ips (tapes)</option> \
+ <option value="k">' +
+ _("k- 15/16 ips (tapes)") +
+ '</option> \
[% END %] \
[% IF ( f3l ) %] \
- <option value="l" selected="selected">l- 1 7/8 ips (tapes)</option> \
+ <option value="l" selected="selected">' +
+ _("l- 1 7/8 ips (tapes)") +
+ '</option> \
[% ELSE %] \
- <option value="l">l- 1 7/8 ips (tapes)</option> \
+ <option value="l">' +
+ _("l- 1 7/8 ips (tapes)") +
+ '</option> \
[% END %] \
[% IF ( f3m ) %] \
- <option value="m" selected="selected">m- 3 3/4 ips (tapes)</option> \
+ <option value="m" selected="selected">' +
+ _("m- 3 3/4 ips (tapes)") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- 3/34 ips (tapes)</option> \
+ <option value="m">' +
+ _("m- 3/34 ips (tapes)") +
+ '</option> \
[% END %] \
[% IF ( f3o ) %] \
- <option value="o" selected="selected">o- 7 1/2 ips (tapes)</option> \
+ <option value="o" selected="selected">' +
+ _("o- 7 1/2 ips (tapes)") +
+ '</option> \
[% ELSE %] \
- <option value="o">o- 7 1/2 ips (tapes)</option> \
+ <option value="o">' +
+ _("o- 7 1/2 ips (tapes)") +
+ '</option> \
[% END %] \
[% IF ( f3p ) %] \
- <option value="p" selected="selected">p- 15 ips (tapes)</option> \
+ <option value="p" selected="selected">' +
+ _("p- 15 ips (tapes)") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- 15 ips (tapes)</option> \
+ <option value="p">' +
+ _("p- 15 ips (tapes)") +
+ '</option> \
[% END %] \
[% IF ( f3r ) %] \
- <option value="r" selected="selected">r- 30 ips (tapes)</option> \
+ <option value="r" selected="selected">' +
+ _("r- 30 ips (tapes)") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- 30 ips (tapes)</option> \
+ <option value="r">' +
+ _("r- 30 ips (tapes)") +
+ '</option> \
[% END %] \
[% IF ( f3u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f3z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f3pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f4">04 Configuration of playback channels</label></td> \
+ <td><label for="f4">' +
+ _("04 Configuration of playback channels") +
+ '</label></td> \
<td> \
<select name="f4" id="f4" size="1"> \
[% IF ( f4m ) %] \
- <option value="m" selected="selected">m- Monaural</option> \
+ <option value="m" selected="selected">' +
+ _("m- Monaural") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Monaural</option> \
+ <option value="m">' +
+ _("m- Monaural") +
+ '</option> \
[% END %] \
[% IF ( f4q ) %] \
- <option value="q" selected="selected">q- Quadraphonic</option> \
+ <option value="q" selected="selected">' +
+ _("q- Quadraphonic") +
+ '</option> \
[% ELSE %] \
- <option value="q">q- Quadraphonic</option> \
+ <option value="q">' +
+ _("q- Quadraphonic") +
+ '</option> \
[% END %] \
[% IF ( f4s ) %] \
- <option value="s" selected="selected">s- Stereophonic</option> \
+ <option value="s" selected="selected">' +
+ _("s- Stereophonic") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- Stereophonic</option> \
+ <option value="s">' +
+ _("s- Stereophonic") +
+ '</option> \
[% END %] \
[% IF ( f4u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f4z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f4pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f5">05 Groove width/groove pitch</label></td> \
+ <td><label for="f5">' +
+ _("05 Groove width/groove pitch") +
+ '</label></td> \
<td> \
<select name="f5" id="f5" size="1"> \
[% IF ( f5m ) %] \
- <option value="m" selected="selected">m- Microgroove/fine</option> \
+ <option value="m" selected="selected">' +
+ _("m- Microgroove/fine") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Microgroove/fine</option> \
+ <option value="m">' +
+ _("m- Microgroove/fine") +
+ '</option> \
[% END %] \
[% IF ( f5n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f5s ) %] \
- <option value="s" selected="selected">s- Coarse/standard</option> \
+ <option value="s" selected="selected">' +
+ _("s- Coarse/standard") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- Coarse/standard</option> \
+ <option value="s">' +
+ _("s- Coarse/standard") +
+ '</option> \
[% END %] \
[% IF ( f5u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f5z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f5pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f6">06 Dimensions</label></td> \
+ <td><label for="f6">' +
+ _("06 Dimensions") +
+ '</label></td> \
<td> \
<select name="f6" id="f6" size="1"> \
[% IF ( f6a ) %] \
- <option value="a" selected="selected">a- 3 in. diameter</option> \
+ <option value="a" selected="selected">' +
+ _("a- 3 in. diameter") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- 3 in. diameter</option> \
+ <option value="a">' +
+ _("a- 3 in. diameter") +
+ '</option> \
[% END %] \
[% IF ( f6b ) %] \
- <option value="b" selected="selected">b- 5 in. diameter</option> \
+ <option value="b" selected="selected">' +
+ _("b- 5 in. diameter") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- 5 in. diameter</option> \
+ <option value="b">' +
+ _("b- 5 in. diameter") +
+ '</option> \
[% END %] \
[% IF ( f6c ) %] \
- <option value="c" selected="selected">c- 7 in. diameter</option> \
+ <option value="c" selected="selected">' +
+ _("c- 7 in. diameter") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- 7 in. diameter</option> \
+ <option value="c">' +
+ _("c- 7 in. diameter") +
+ '</option> \
[% END %] \
[% IF ( f6d ) %] \
- <option value="d" selected="selected">d- 10 in. diameter</option> \
+ <option value="d" selected="selected">' +
+ _("d- 10 in. diameter") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- 10 in. diameter</option> \
+ <option value="d">' +
+ _("d- 10 in. diameter") +
+ '</option> \
[% END %] \
[% IF ( f6e ) %] \
- <option value="e" selected="selected">e- 12 in. diameter</option> \
+ <option value="e" selected="selected">' +
+ _("e- 12 in. diameter") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- 12 in. diameter</option> \
+ <option value="e">' +
+ _("e- 12 in. diameter") +
+ '</option> \
[% END %] \
[% IF ( f6f ) %] \
- <option value="f" selected="selected">f- 16 in. diameter</option> \
+ <option value="f" selected="selected">' +
+ _("f- 16 in. diameter") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- 16 in. diameter</option> \
+ <option value="f">' +
+ _("f- 16 in. diameter") +
+ '</option> \
[% END %] \
[% IF ( f6g ) %] \
- <option value="g" selected="selected">g- 4 3/4 in. or 12 cm. diameter</option> \
+ <option value="g" selected="selected">' +
+ _("g- 4 3/4 in. or 12 cm. diameter") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- 4 3/4 in. or 12 cm. diameter</option> \
+ <option value="g">' +
+ _("g- 4 3/4 in. or 12 cm. diameter") +
+ '</option> \
[% END %] \
[% IF ( f6j ) %] \
- <option value="j" selected="selected">j- 3 7/8 x 2 1/2 in.</option> \
+ <option value="j" selected="selected">' +
+ _("j- 3 7/8 x 2 1/2 in.") +
+ '</option> \
[% ELSE %] \
- <option value="j">j- 3 7/8 x 2 1/2 in.</option> \
+ <option value="j">' +
+ _("j- 3 7/8 x 2 1/2 in.") +
+ '</option> \
[% END %] \
[% IF ( f6n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f6o ) %] \
- <option value="o" selected="selected">o- 5 1/4 x 3 7/8 in.</option> \
+ <option value="o" selected="selected">' +
+ _("o- 5 1/4 x 3 7/8 in.") +
+ '</option> \
[% ELSE %] \
- <option value="o">o- 5 1/4 x 3 7/8 in.</option> \
+ <option value="o">' +
+ _("o- 5 1/4 x 3 7/8 in.") +
+ '</option> \
[% END %] \
[% IF ( f6s ) %] \
- <option value="s" selected="selected">s- 2 3/4 x 4 in.</option> \
+ <option value="s" selected="selected">' +
+ _("s- 2 3/4 x 4 in.") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- 2 3/4 x 4 in.</option> \
+ <option value="s">' +
+ _("s- 2 3/4 x 4 in.") +
+ '</option> \
[% END %] \
[% IF ( f6u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f6z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f6pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f7">07 Tape width</label></td> \
+ <td><label for="f7">' +
+ _("07 Tape width") +
+ '</label></td> \
<td> \
<select name="f7" id="f7" size="1"> \
[% IF ( f7l ) %] \
- <option value="l" selected="selected">l- 1/8 in.</option> \
+ <option value="l" selected="selected">' +
+ _("l- 1/8 in.") +
+ '</option> \
[% ELSE %] \
- <option value="l">l- 1/8 in.</option> \
+ <option value="l">' +
+ _("l- 1/8 in.") +
+ '</option> \
[% END %] \
[% IF ( f7m ) %] \
- <option value="m" selected="selected">m- 1/4 in.</option> \
+ <option value="m" selected="selected">' +
+ _("m- 1/4 in.") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- 1/4 in.</option> \
+ <option value="m">' +
+ _("m- 1/4 in.") +
+ '</option> \
[% END %] \
[% IF ( f7n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f7o ) %] \
- <option value="o" selected="selected">o- 1/2 in.</option> \
+ <option value="o" selected="selected">' +
+ _("o- 1/2 in.") +
+ '</option> \
[% ELSE %] \
- <option value="o">o- 1/2 in.</option> \
+ <option value="o">' +
+ _("o- 1/2 in.") +
+ '</option> \
[% END %] \
[% IF ( f7p ) %] \
- <option value="p" selected="selected">p- 1 in.</option> \
+ <option value="p" selected="selected">' +
+ _("p- 1 in.") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- 1 in.</option> \
+ <option value="p">' +
+ _("p- 1 in.") +
+ '</option> \
[% END %] \
[% IF ( f7u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f7z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f7pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f8">08 Tape Configuration</label></td> \
+ <td><label for="f8">' +
+ _("08 Tape Configuration") +
+ '</label></td> \
<td> \
<select name="f8" id="f8" size="1"> \
[% IF ( f8a ) %] \
- <option value="a" selected="selected">a- Full (1) track</option> \
+ <option value="a" selected="selected">' +
+ _("a- Full (1) track") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Full (1) track</option> \
+ <option value="a">' +
+ _("a- Full (1) track") +
+ '</option> \
[% END %] \
[% IF ( f8b ) %] \
- <option value="b" selected="selected">b- Half (2) track</option> \
+ <option value="b" selected="selected">' +
+ _("b- Half (2) track") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Half (2) track</option> \
+ <option value="b">' +
+ _("b- Half (2) track") +
+ '</option> \
[% END %] \
[% IF ( f8c ) %] \
- <option value="c" selected="selected">c- Quarter (4) track</option> \
+ <option value="c" selected="selected">' +
+ _("c- Quarter (4) track") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Quarter (4) track</option> \
+ <option value="c">' +
+ _("c- Quarter (4) track") +
+ '</option> \
[% END %] \
[% IF ( f8d ) %] \
- <option value="d" selected="selected">d- Eight track</option> \
+ <option value="d" selected="selected">' +
+ _("d- Eight track") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Eight track</option> \
+ <option value="d">' +
+ _("d- Eight track") +
+ '</option> \
[% END %] \
[% IF ( f8e ) %] \
- <option value="e" selected="selected">e- Twelve track</option> \
+ <option value="e" selected="selected">' +
+ _("e- Twelve track") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Twelve track</option> \
+ <option value="e">' +
+ _("e- Twelve track") +
+ '</option> \
[% END %] \
[% IF ( f8f ) %] \
- <option value="f" selected="selected">f- Sixteen track</option> \
+ <option value="f" selected="selected">' +
+ _("f- Sixteen track") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Sixteen track</option> \
+ <option value="f">' +
+ _("f- Sixteen track") +
+ '</option> \
[% END %] \
[% IF ( f8n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f8u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f8z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f8pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f9">09 Kind of disc, cylinder or tape</label></td> \
+ <td><label for="f9">' +
+ _("09 Kind of disc, cylinder or tape") +
+ '</label></td> \
<td> \
<select name="f9" id="f9" size="1"> \
[% IF ( f9a ) %] \
- <option value="a" selected="selected">a- Master tape</option> \
+ <option value="a" selected="selected">' +
+ _("a- Master tape") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Master tape</option> \
+ <option value="a">' +
+ _("a- Master tape") +
+ '</option> \
[% END %] \
[% IF ( f9b ) %] \
- <option value="b" selected="selected">b- Tape duplication master</option> \
+ <option value="b" selected="selected">' +
+ _("b- Tape duplication master") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Tape duplication master</option> \
+ <option value="b">' +
+ _("b- Tape duplication master") +
+ '</option> \
[% END %] \
[% IF ( f9d ) %] \
- <option value="d" selected="selected">d- Disc master (negative)</option> \
+ <option value="d" selected="selected">' +
+ _("d- Disc master (negative)") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Disc master (negative)</option> \
+ <option value="d">' +
+ _("d- Disc master (negative)") +
+ '</option> \
[% END %] \
[% IF ( f9i ) %] \
- <option value="i" selected="selected">i- Instantaneous (recorded on the spot)</option> \
+ <option value="i" selected="selected">' +
+ _("i- Instantaneous (recorded on the spot)") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Instantaneous (recorded on the spot)</option> \
+ <option value="i">' +
+ _("i- Instantaneous (recorded on the spot)") +
+ '</option> \
[% END %] \
[% IF ( f9m ) %] \
- <option value="m" selected="selected">m- Mass-produced</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mass-produced") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mass-produced</option> \
+ <option value="m">' +
+ _("m- Mass-produced") +
+ '</option> \
[% END %] \
[% IF ( f9n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f9r ) %] \
- <option value="r" selected="selected">r- Mother (positive)</option> \
+ <option value="r" selected="selected">' +
+ _("r- Mother (positive)") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- Mother (positive)</option> \
+ <option value="r">' +
+ _("r- Mother (positive)") +
+ '</option> \
[% END %] \
[% IF ( f9s ) %] \
- <option value="s" selected="selected">s- Stamper (negative)</option> \
+ <option value="s" selected="selected">' +
+ _("s- Stamper (negative)") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- Stamper (negative)</option> \
+ <option value="s">' +
+ _("s- Stamper (negative)") +
+ '</option> \
[% END %] \
[% IF ( f9t ) %] \
- <option value="t" selected="selected">t- Test pressing</option> \
+ <option value="t" selected="selected">' +
+ _("t- Test pressing") +
+ '</option> \
[% ELSE %] \
- <option value="t">t- Test pressing</option> \
+ <option value="t">' +
+ _("t- Test pressing") +
+ '</option> \
[% END %] \
[% IF ( f9u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f9z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f9pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f10">10 Kind of material</label></td> \
+ <td><label for="f10">' +
+ _("10 Kind of material") +
+ '</label></td> \
<td> \
<select name="f10" id="f10" size="1"> \
[% IF ( f10a ) %] \
- <option value="a" selected="selected">a- Lacquer coating</option> \
+ <option value="a" selected="selected">' +
+ _("a- Lacquer coating") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Lacquer coating</option> \
+ <option value="a">' +
+ _("a- Lacquer coating") +
+ '</option> \
[% END %] \
[% IF ( f10b ) %] \
- <option value="b" selected="selected">b- Cellulose nitrate</option> \
+ <option value="b" selected="selected">' +
+ _("b- Cellulose nitrate") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Cellulose nitrate</option> \
+ <option value="b">' +
+ _("b- Cellulose nitrate") +
+ '</option> \
[% END %] \
[% IF ( f10c ) %] \
- <option value="c" selected="selected">c- Acetate tape with ferrous oxide</option> \
+ <option value="c" selected="selected">' +
+ _("c- Acetate tape with ferrous oxide") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Acetate tape with ferrous oxide</option> \
+ <option value="c">' +
+ _("c- Acetate tape with ferrous oxide") +
+ '</option> \
[% END %] \
[% IF ( f10g ) %] \
- <option value="g" selected="selected">g- Glass with lacquer</option> \
+ <option value="g" selected="selected">' +
+ _("g- Glass with lacquer") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Glass with lacquer</option> \
+ <option value="g">' +
+ _("g- Glass with lacquer") +
+ '</option> \
[% END %] \
[% IF ( f10i ) %] \
- <option value="i" selected="selected">i- Aluminum with lacquer</option> \
+ <option value="i" selected="selected">' +
+ _("i- Aluminum with lacquer") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Aluminum with lacquer</option> \
+ <option value="i">' +
+ _("i- Aluminum with lacquer") +
+ '</option> \
[% END %] \
[% IF ( f10l ) %] \
- <option value="l" selected="selected">l- Metal</option> \
+ <option value="l" selected="selected">' +
+ _("l- Metal") +
+ '</option> \
[% ELSE %] \
- <option value="l">l- Metal</option> \
+ <option value="l">' +
+ _("l- Metal") +
+ '</option> \
[% END %] \
[% IF ( f10m ) %] \
- <option value="m" selected="selected">m- Plastic with metal</option> \
+ <option value="m" selected="selected">' +
+ _("m- Plastic with metal") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Plastic with metal</option> \
+ <option value="m">' +
+ _("m- Plastic with metal") +
+ '</option> \
[% END %] \
[% IF ( f10p ) %] \
- <option value="p" selected="selected">p- Plastic</option> \
+ <option value="p" selected="selected">' +
+ _("p- Plastic") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- Plastic</option> \
+ <option value="p">' +
+ _("p- Plastic") +
+ '</option> \
[% END %] \
[% IF ( f10r ) %] \
- <option value="r" selected="selected">r- Paper with lacquer or ferrous oxide</option> \
+ <option value="r" selected="selected">' +
+ _("r- Paper with lacquer or ferrous oxide") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- Paper with lacquer or ferrous oxide</option> \
+ <option value="r">' +
+ _("r- Paper with lacquer or ferrous oxide") +
+ '</option> \
[% END %] \
[% IF ( f10s ) %] \
- <option value="s" selected="selected">s- Shellac</option> \
+ <option value="s" selected="selected">' +
+ _("s- Shellac") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- Shellac</option> \
+ <option value="s">' +
+ _("s- Shellac") +
+ '</option> \
[% END %] \
[% IF ( f10w ) %] \
- <option value="w" selected="selected">w- Wax</option> \
+ <option value="w" selected="selected">' +
+ _("w- Wax") +
+ '</option> \
[% ELSE %] \
- <option value="w">w- Wax</option> \
+ <option value="w">' +
+ _("w- Wax") +
+ '</option> \
[% END %] \
[% IF ( f10u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f10z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f10pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f11">11 Kind of cutting</label></td> \
+ <td><label for="f11">' +
+ _("11 Kind of cutting") +
+ '</label></td> \
<td> \
<select name="f11" id="f11" size="1"> \
[% IF ( f11h ) %] \
- <option value="h" selected="selected">h- Hill-and-dale cutting</option> \
+ <option value="h" selected="selected">' +
+ _("h- Hill-and-dale cutting") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Hill-and-dale cutting</option> \
+ <option value="h">' +
+ _("h- Hill-and-dale cutting") +
+ '</option> \
[% END %] \
[% IF ( f11l ) %] \
- <option value="l" selected="selected">l- Lateral or combined cutting</option> \
+ <option value="l" selected="selected">' +
+ _("l- Lateral or combined cutting") +
+ '</option> \
[% ELSE %] \
- <option value="l">l- Lateral or combined cutting</option> \
+ <option value="l">' +
+ _("l- Lateral or combined cutting") +
+ '</option> \
[% END %] \
[% IF ( f11n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f11u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f11pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f12">12 Special playback characteristics</label></td> \
+ <td><label for="f12">' +
+ _("12 Special playback characteristics") +
+ '</label></td> \
<td> \
<select name="f12" id="f12" size="1"> \
[% IF ( f12a ) %] \
- <option value="a" selected="selected">a- NAB standard</option> \
+ <option value="a" selected="selected">' +
+ _("a- NAB standard") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- NAB standard</option> \
+ <option value="a">' +
+ _("a- NAB standard") +
+ '</option> \
[% END %] \
[% IF ( f12b ) %] \
- <option value="b" selected="selected">b- CCIR standard</option> \
+ <option value="b" selected="selected">' +
+ _("b- CCIR standard") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- CCIR standard</option> \
+ <option value="b">' +
+ _("b- CCIR standard") +
+ '</option> \
[% END %] \
[% IF ( f12c ) %] \
- <option value="c" selected="selected">c- Dolby-B encoded</option> \
+ <option value="c" selected="selected">' +
+ _("c- Dolby-B encoded") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Dolby-B encoded</option> \
+ <option value="c">' +
+ _("c- Dolby-B encoded") +
+ '</option> \
[% END %] \
[% IF ( f12d ) %] \
- <option value="d" selected="selected">d- dbx encoded</option> \
+ <option value="d" selected="selected">' +
+ _("d- dbx encoded") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- dbx encoded</option> \
+ <option value="d">' +
+ _("d- dbx encoded") +
+ '</option> \
[% END %] \
[% IF ( f12e ) %] \
- <option value="e" selected="selected">e- Digital recording</option> \
+ <option value="e" selected="selected">' +
+ _("e- Digital recording") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Digital recording</option> \
+ <option value="e">' +
+ _("e- Digital recording") +
+ '</option> \
[% END %] \
[% IF ( f12f ) %] \
- <option value="f" selected="selected">f- Dolby-A encoded</option> \
+ <option value="f" selected="selected">' +
+ _("f- Dolby-A encoded") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Dolby-A encoded</option> \
+ <option value="f">' +
+ _("f- Dolby-A encoded") +
+ '</option> \
[% END %] \
[% IF ( f12g ) %] \
- <option value="g" selected="selected">g- Dolby-C encoded</option> \
+ <option value="g" selected="selected">' +
+ _("g- Dolby-C encoded") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Dolby-C encoded</option> \
+ <option value="g">' +
+ _("g- Dolby-C encoded") +
+ '</option> \
[% END %] \
[% IF ( f12h ) %] \
- <option value="h" selected="selected">h- CX encoded</option> \
+ <option value="h" selected="selected">' +
+ _("h- CX encoded") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- CX encoded</option> \
+ <option value="h">' +
+ _("h- CX encoded") +
+ '</option> \
[% END %] \
[% IF ( f12n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f12u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f12z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f12pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f13">13 Capture and storage technique</label></td> \
+ <td><label for="f13">' +
+ _("13 Capture and storage technique") +
+ '</label></td> \
<td> \
<select name="f13" id="f13" size="1"> \
[% IF ( f13a ) %] \
- <option value="a" selected="selected">a- Acoustical capture, direct storage</option> \
+ <option value="a" selected="selected">' +
+ _("a- Acoustical capture, direct storage") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Acoustical capture, direct storage</option> \
+ <option value="a">' +
+ _("a- Acoustical capture, direct storage") +
+ '</option> \
[% END %] \
[% IF ( f13b ) %] \
- <option value="b" selected="selected">b- Direct storage, not acoustical</option> \
+ <option value="b" selected="selected">' +
+ _("b- Direct storage, not acoustical") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Direct storage, not acoustical</option> \
+ <option value="b">' +
+ _("b- Direct storage, not acoustical") +
+ '</option> \
[% END %] \
[% IF ( f13d ) %] \
- <option value="d" selected="selected">d- Digital storage</option> \
+ <option value="d" selected="selected">' +
+ _("d- Digital storage") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Digital storage</option> \
+ <option value="d">' +
+ _("d- Digital storage") +
+ '</option> \
[% END %] \
[% IF ( f13e ) %] \
- <option value="e" selected="selected">e- Analog electrical storage</option> \
+ <option value="e" selected="selected">' +
+ _("e- Analog electrical storage") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Analog electrical storage</option> \
+ <option value="e">' +
+ _("e- Analog electrical storage") +
+ '</option> \
[% END %] \
[% IF ( f13u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f3z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f13pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
case "t":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>t- Text</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("t- Text") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select id="f1" name="f1" size="1"> \
[% IF ( f1a ) %] \
- <option value="a" selected="selected">a- Regular print</option> \
+ <option value="a" selected="selected">' +
+ _("a- Regular print") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Regular print</option> \
+ <option value="a">' +
+ _("a- Regular print") +
+ '</option> \
[% END %] \
[% IF ( f1b ) %] \
- <option value="b" selected="selected">b- Large print</option> \
+ <option value="b" selected="selected">' +
+ _("b- Large print") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Large print </option> \
+ <option value="b">' +
+ _("b- Large print ") +
+ '</option> \
[% END %] \
[% IF ( f1c ) %] \
- <option value="c" selected="selected">c- Braille</option> \
+ <option value="c" selected="selected">' +
+ _("c- Braille") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Braille</option> \
+ <option value="c">' +
+ _("c- Braille") +
+ '</option> \
[% END %] \
[% IF ( f1d ) %] \
- <option value="d" selected="selected">d- Loose-leaf</option> \
+ <option value="d" selected="selected">' +
+ _("d- Loose-leaf") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Loose-leaf</option> \
+ <option value="d">' +
+ _("d- Loose-leaf") +
+ '</option> \
[% END %] \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
case "v":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>v- Videorecording</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("v- Videorecording") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select name="f1" id="f1" size="1"> \
[% IF ( f1c ) %] \
- <option value="c" selected="selected">c- Videocartridge</option> \
+ <option value="c" selected="selected">' +
+ _("c- Videocartridge") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Videocartridge</option> \
+ <option value="c">' +
+ _("c- Videocartridge") +
+ '</option> \
[% END %] \
[% IF ( f1d ) %] \
- <option value="d" selected="selected">d- Videodisc</option> \
+ <option value="d" selected="selected">' +
+ _("d- Videodisc") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Videodisc</option> \
+ <option value="d">' +
+ _("d- Videodisc") +
+ '</option> \
[% END %] \
[% IF ( f1f ) %] \
- <option value="f" selected="selected">f- Videocassette</option> \
+ <option value="f" selected="selected">' +
+ _("f- Videocassette") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Videocassette</option> \
+ <option value="f">' +
+ _("f- Videocassette") +
+ '</option> \
[% END %] \
[% IF ( f1r ) %] \
- <option value="r" selected="selected">r- Videoreel</option> \
+ <option value="r" selected="selected">' +
+ _("r- Videoreel") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- Videoreel</option> \
+ <option value="r">' +
+ _("r- Videoreel") +
+ '</option> \
[% END %] \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f2">02 Undefined</label></td> \
+ <td><label for="f2">' +
+ _("02 Undefined") +
+ '</label></td> \
<td> \
<select name="f2" id="f2" size="1"> \
[% IF ( f2exclamation ) %] \
- <option value=" " selected="selected">#- Undefined</option> \
+ <option value=" " selected="selected">' +
+ _("#- Undefined") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- Undefined</option> \
+ <option value=" ">' +
+ _("#- Undefined") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f3">03 Color</label></td> \
+ <td><label for="f3">' +
+ _("03 Color") +
+ '</label></td> \
<td> \
<select name="f3" id="f3" size="1"> \
[% IF ( f3a ) %] \
- <option value="a" selected="selected">a- One color</option> \
+ <option value="a" selected="selected">' +
+ _("a- One color") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- One color</option> \
+ <option value="a">' +
+ _("a- One color") +
+ '</option> \
[% END %] \
[% IF ( f3b ) %] \
- <option value="b" selected="selected">b- Black-and-white</option> \
+ <option value="b" selected="selected">' +
+ _("b- Black-and-white") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Black-and-white</option> \
+ <option value="b">' +
+ _("b- Black-and-white") +
+ '</option> \
[% END %] \
[% IF ( f3c ) %] \
- <option value="c" selected="selected">c- Multicolored</option> \
+ <option value="c" selected="selected">' +
+ _("c- Multicolored") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Multicolored</option> \
+ <option value="c">' +
+ _("c- Multicolored") +
+ '</option> \
[% END %] \
[% IF ( f3m ) %] \
- <option value="m" selected="selected">m- Mixed</option> \
+ <option value="m" selected="selected">' +
+ _("m- Mixed") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Mixed</option> \
+ <option value="m">' +
+ _("m- Mixed") +
+ '</option> \
[% END %] \
[% IF ( f3n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f3u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f3z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f3pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f4">04 Videorecording format</label></td> \
+ <td><label for="f4">' +
+ _("04 Videorecording format") +
+ '</label></td> \
<td> \
<select name="f4" id="f4" size="1"> \
[% IF ( f4a ) %] \
- <option value="a" selected="selected">a- Beta (1/2 in., videocassette)</option> \
+ <option value="a" selected="selected">' +
+ _("a- Beta (1/2 in., videocassette)") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Beta (1/2 in., videocassette)</option> \
+ <option value="a">' +
+ _("a- Beta (1/2 in., videocassette)") +
+ '</option> \
[% END %] \
[% IF ( f4b ) %] \
- <option value="b" selected="selected">b- VHS (1/2 in., videocassette)</option> \
+ <option value="b" selected="selected">' +
+ _("b- VHS (1/2 in., videocassette)") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- VHS (1/2 in., videocassette)</option> \
+ <option value="b">' +
+ _("b- VHS (1/2 in., videocassette)") +
+ '</option> \
[% END %] \
[% IF ( f4c ) %] \
- <option value="c" selected="selected">c- U-matic (3/4 in., videocassette)</option> \
+ <option value="c" selected="selected">' +
+ _("c- U-matic (3/4 in., videocassette)") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- U-matic (3/4 in., videocassette)</option> \
+ <option value="c">' +
+ _("c- U-matic (3/4 in., videocassette)") +
+ '</option> \
[% END %] \
[% IF ( f4d ) %] \
- <option value="d" selected="selected">d- EIAJ (1/2 in., reel)</option> \
+ <option value="d" selected="selected">' +
+ _("d- EIAJ (1/2 in., reel)") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- EIAJ (1/2 in., reel)</option> \
+ <option value="d">' +
+ _("d- EIAJ (1/2 in., reel)") +
+ '</option> \
[% END %] \
[% IF ( f4e ) %] \
- <option value="e" selected="selected">e- Type C (1 in., reel)</option> \
+ <option value="e" selected="selected">' +
+ _("e- Type C (1 in., reel)") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Type C (1 in., reel)</option> \
+ <option value="e">' +
+ _("e- Type C (1 in., reel)") +
+ '</option> \
[% END %] \
[% IF ( f4f ) %] \
- <option value="f" selected="selected">f- Quadruplex (1 in. or 2 in., reel)</option> \
+ <option value="f" selected="selected">' +
+ _("f- Quadruplex (1 in. or 2 in., reel)") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Quadruplex (1 in. or 2 in., reel)</option> \
+ <option value="f">' +
+ _("f- Quadruplex (1 in. or 2 in., reel)") +
+ '</option> \
[% END %] \
[% IF ( f4g ) %] \
- <option value="g" selected="selected">g- Laserdisc)</option> \
+ <option value="g" selected="selected">' +
+ _("g- Laserdisc)") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Laserdisc</option> \
+ <option value="g">' +
+ _("g- Laserdisc") +
+ '</option> \
[% END %] \
[% IF ( f4h ) %] \
- <option value="h" selected="selected">h- CED (Capacitance Electronic Disc) videodisc</option> \
+ <option value="h" selected="selected">' +
+ _("h- CED (Capacitance Electronic Disc) videodisc") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- CED (Capacitance Electronic Disc) videodisc</option> \
+ <option value="h">' +
+ _("h- CED (Capacitance Electronic Disc) videodisc") +
+ '</option> \
[% END %] \
[% IF ( f4i ) %] \
- <option value="i" selected="selected">i- Betacam (1/2 in., videocassette)</option> \
+ <option value="i" selected="selected">' +
+ _("i- Betacam (1/2 in., videocassette)") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Betacam (1/2 in., videocassette)</option> \
+ <option value="i">' +
+ _("i- Betacam (1/2 in., videocassette)") +
+ '</option> \
[% END %] \
[% IF ( f4j ) %] \
- <option value="j" selected="selected">j- Betacam SP (1/2 in., videocassette)</option> \
+ <option value="j" selected="selected">' +
+ _("j- Betacam SP (1/2 in., videocassette)") +
+ '</option> \
[% ELSE %] \
- <option value="j">j- Betacam SP (1/2 in., videocassette)</option> \
+ <option value="j">' +
+ _("j- Betacam SP (1/2 in., videocassette)") +
+ '</option> \
[% END %] \
[% IF ( f4k ) %] \
- <option value="k" selected="selected">k- Super-VHS (1/2 in., videocassette)</option> \
+ <option value="k" selected="selected">' +
+ _("k- Super-VHS (1/2 in., videocassette)") +
+ '</option> \
[% ELSE %] \
- <option value="k">k- Super-VHS (1/2 in., videocassette)</option> \
+ <option value="k">' +
+ _("k- Super-VHS (1/2 in., videocassette)") +
+ '</option> \
[% END %] \
[% IF ( f4m ) %] \
- <option value="m" selected="selected">m- M-II (1/2 in., videocassette)</option> \
+ <option value="m" selected="selected">' +
+ _("m- M-II (1/2 in., videocassette)") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- M-II (1/2 in., videocassette)</option> \
+ <option value="m">' +
+ _("m- M-II (1/2 in., videocassette)") +
+ '</option> \
[% END %] \
[% IF ( f4o ) %] \
- <option value="o" selected="selected">o- D-2 (3/4 in., videocassette)</option> \
+ <option value="o" selected="selected">' +
+ _("o- D-2 (3/4 in., videocassette)") +
+ '</option> \
[% ELSE %] \
- <option value="o">o- D-2 (3/4 in., videocassette)</option> \
+ <option value="o">' +
+ _("o- D-2 (3/4 in., videocassette)") +
+ '</option> \
[% END %] \
[% IF ( f4p ) %] \
- <option value="p" selected="selected">p- 8 mm.</option> \
+ <option value="p" selected="selected">' +
+ _("p- 8 mm.") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- 8 mm.</option> \
+ <option value="p">' +
+ _("p- 8 mm.") +
+ '</option> \
[% END %] \
[% IF ( f4q ) %] \
- <option value="q" selected="selected">q- Hi-8 mm.</option> \
+ <option value="q" selected="selected">' +
+ _("q- Hi-8 mm.") +
+ '</option> \
[% ELSE %] \
- <option value="q">q- Hi-8 mm.</option> \
+ <option value="q">' +
+ _("q- Hi-8 mm.") +
+ '</option> \
[% END %] \
[% IF ( f4s ) %] \
- <option value="s" selected="selected">s- Blu-ray disc</option> \
+ <option value="s" selected="selected">' +
+ _("s- Blu-ray disc") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- Blu-ray disc</option> \
+ <option value="s">' +
+ _("s- Blu-ray disc") +
+ '</option> \
[% END %] \
[% IF ( f4u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f4v ) %] \
- <option value="v" selected="selected">v- DVD</option> \
+ <option value="v" selected="selected">' +
+ _("v- DVD") +
+ '</option> \
[% ELSE %] \
- <option value="v">v- DVD</option> \
+ <option value="v">' +
+ _("v- DVD") +
+ '</option> \
[% END %] \
[% IF ( f4z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f4pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f5">05 Sound on medium or separate</label></td> \
+ <td><label for="f5">' +
+ _("05 Sound on medium or separate") +
+ '</label></td> \
<td> \
<select name="f5" id="f5" size="1"> \
[% IF ( f5exclamation ) %] \
- <option value=" " selected="selected">#- No sound (silent)</option> \
+ <option value=" " selected="selected">' +
+ _("#- No sound (silent)") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- No sound (silent)</option> \
+ <option value=" ">' +
+ _("#- No sound (silent)") +
+ '</option> \
[% END %] \
[% IF ( f5a ) %] \
- <option value="a" selected="selected">a- Sound on medium</option> \
+ <option value="a" selected="selected">' +
+ _("a- Sound on medium") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Sound on medium</option> \
+ <option value="a">' +
+ _("a- Sound on medium") +
+ '</option> \
[% END %] \
[% IF ( f5b ) %] \
- <option value="b" selected="selected">b- Sound separate from medium</option> \
+ <option value="b" selected="selected">' +
+ _("b- Sound separate from medium") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Sound separate from medium</option> \
+ <option value="b">' +
+ _("b- Sound separate from medium") +
+ '</option> \
[% END %] \
[% IF ( f5u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f5pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f6">06 Medium for sound</label></td> \
+ <td><label for="f6">' +
+ _("06 Medium for sound") +
+ '</label></td> \
<td> \
<select name="f6" id="f6" size="1"> \
[% IF ( f6exclamation ) %] \
- <option value=" " selected="selected">#- No sound (silent)</option> \
+ <option value=" " selected="selected">' +
+ _("#- No sound (silent)") +
+ '</option> \
[% ELSE %] \
- <option value=" ">#- No sound (silent)</option> \
+ <option value=" ">' +
+ _("#- No sound (silent)") +
+ '</option> \
[% END %] \
[% IF ( f6a ) %] \
- <option value="a" selected="selected">a- Optical sound track on motion picture film</option> \
+ <option value="a" selected="selected">' +
+ _("a- Optical sound track on motion picture film") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- Optical sound track on motion picture film</option> \
+ <option value="a">' +
+ _("a- Optical sound track on motion picture film") +
+ '</option> \
[% END %] \
[% IF ( f6b ) %] \
- <option value="b" selected="selected">b- Magnetic sound track on motion picture film</option> \
+ <option value="b" selected="selected">' +
+ _("b- Magnetic sound track on motion picture film") +
+ '</option> \
[% ELSE %] \
- <option value="b">b- Magnetic sound track on motion picture film</option> \
+ <option value="b">' +
+ _("b- Magnetic sound track on motion picture film") +
+ '</option> \
[% END %] \
[% IF ( f6c ) %] \
- <option value="c" selected="selected">c- Magnetic audio tape in cartridge</option> \
+ <option value="c" selected="selected">' +
+ _("c- Magnetic audio tape in cartridge") +
+ '</option> \
[% ELSE %] \
- <option value="c">c- Magnetic audio tape in cartridge</option> \
+ <option value="c">' +
+ _("c- Magnetic audio tape in cartridge") +
+ '</option> \
[% END %] \
[% IF ( f6d ) %] \
- <option value="d" selected="selected">d- Sound disc</option> \
+ <option value="d" selected="selected">' +
+ _("d- Sound disc") +
+ '</option> \
[% ELSE %] \
- <option value="d">d- Sound disc</option> \
+ <option value="d">' +
+ _("d- Sound disc") +
+ '</option> \
[% END %] \
[% IF ( f6e ) %] \
- <option value="e" selected="selected">e- Magnetic audio tape on reel</option> \
+ <option value="e" selected="selected">' +
+ _("e- Magnetic audio tape on reel") +
+ '</option> \
[% ELSE %] \
- <option value="e">e- Magnetic audio tape on reel</option> \
+ <option value="e">' +
+ _("e- Magnetic audio tape on reel") +
+ '</option> \
[% END %] \
[% IF ( f6f ) %] \
- <option value="f" selected="selected">f- Magnetic audio tape in cassette</option> \
+ <option value="f" selected="selected">' +
+ _("f- Magnetic audio tape in cassette") +
+ '</option> \
[% ELSE %] \
- <option value="f">f- Magnetic audio tape in cassette</option> \
+ <option value="f">' +
+ _("f- Magnetic audio tape in cassette") +
+ '</option> \
[% END %] \
[% IF ( f6g ) %] \
- <option value="g" selected="selected">g- Optical and magnetic sound track on motion picture film</option> \
+ <option value="g" selected="selected">' +
+ _("g- Optical and magnetic sound track on motion picture film") +
+ '</option> \
[% ELSE %] \
- <option value="g">g- Optical and magnetic sound track on motion picture film</option> \
+ <option value="g">' +
+ _("g- Optical and magnetic sound track on motion picture film") +
+ '</option> \
[% END %] \
[% IF ( f6h ) %] \
- <option value="h" selected="selected">h- Videotape</option> \
+ <option value="h" selected="selected">' +
+ _("h- Videotape") +
+ '</option> \
[% ELSE %] \
- <option value="h">h- Videotape</option> \
+ <option value="h">' +
+ _("h- Videotape") +
+ '</option> \
[% END %] \
[% IF ( f6i ) %] \
- <option value="i" selected="selected">i- Videodisc</option> \
+ <option value="i" selected="selected">' +
+ _("i- Videodisc") +
+ '</option> \
[% ELSE %] \
- <option value="i">i- Videodisc</option> \
+ <option value="i">' +
+ _("i- Videodisc") +
+ '</option> \
[% END %] \
[% IF ( f6u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f6z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f6pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f7">07 Dimensions</label></td> \
+ <td><label for="f7">' +
+ _("07 Dimensions") +
+ '</label></td> \
<td> \
<select name="f7" id="f7" size="1"> \
[% IF ( f7a ) %] \
- <option value="a" selected="selected">a- 8 mm.</option> \
+ <option value="a" selected="selected">' +
+ _("a- 8 mm.") +
+ '</option> \
[% ELSE %] \
- <option value="a">a- 8 mm.</option> \
+ <option value="a">' +
+ _("a- 8 mm.") +
+ '</option> \
[% END %] \
[% IF ( f7m ) %] \
- <option value="m" selected="selected">m- 1/4 in.</option> \
+ <option value="m" selected="selected">' +
+ _("m- 1/4 in.") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- 1/4 in.</option> \
+ <option value="m">' +
+ _("m- 1/4 in.") +
+ '</option> \
[% END %] \
[% IF ( f7o ) %] \
- <option value="o" selected="selected">o- 1/2 in.</option> \
+ <option value="o" selected="selected">' +
+ _("o- 1/2 in.") +
+ '</option> \
[% ELSE %] \
- <option value="o">o- 1/2 in.</option> \
+ <option value="o">' +
+ _("o- 1/2 in.") +
+ '</option> \
[% END %] \
[% IF ( f7p ) %] \
- <option value="p" selected="selected">p- 1 in.</option> \
+ <option value="p" selected="selected">' +
+ _("p- 1 in.") +
+ '</option> \
[% ELSE %] \
- <option value="p">p- 1 in.</option> \
+ <option value="p">' +
+ _("p- 1 in.") +
+ '</option> \
[% END %] \
[% IF ( f7q ) %] \
- <option value="q" selected="selected">q- 2 in.</option> \
+ <option value="q" selected="selected">' +
+ _("q- 2 in.") +
+ '</option> \
[% ELSE %] \
- <option value="q">q- 2 in.</option> \
+ <option value="q">' +
+ _("q- 2 in.") +
+ '</option> \
[% END %] \
[% IF ( f7r ) %] \
- <option value="r" selected="selected">r- 3/4 in.</option> \
+ <option value="r" selected="selected">' +
+ _("r- 3/4 in.") +
+ '</option> \
[% ELSE %] \
- <option value="r">r- 3/4 in.</option> \
+ <option value="r">' +
+ _("r- 3/4 in.") +
+ '</option> \
[% END %] \
[% IF ( f7u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f7z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f7pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
</tr> \
<tr> \
- <td><label for="f8">08 Configuration of playback channels</label></td> \
+ <td><label for="f8">' +
+ _("08 Configuration of playback channels") +
+ '</label></td> \
<td> \
<select name="f8" id="f8" size="1"> \
[% IF ( f8k ) %] \
- <option value="k" selected="selected">k- Mixed</option> \
+ <option value="k" selected="selected">' +
+ _("k- Mixed") +
+ '</option> \
[% ELSE %] \
- <option value="k">k- Mixed</option> \
+ <option value="k">' +
+ _("k- Mixed") +
+ '</option> \
[% END %] \
[% IF ( f8m ) %] \
- <option value="m" selected="selected">m- Monaural</option> \
+ <option value="m" selected="selected">' +
+ _("m- Monaural") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Monaural</option> \
+ <option value="m">' +
+ _("m- Monaural") +
+ '</option> \
[% END %] \
[% IF ( f8n ) %] \
- <option value="n" selected="selected">n- Not applicable</option> \
+ <option value="n" selected="selected">' +
+ _("n- Not applicable") +
+ '</option> \
[% ELSE %] \
- <option value="n">n- Not applicable</option> \
+ <option value="n">' +
+ _("n- Not applicable") +
+ '</option> \
[% END %] \
[% IF ( f8q ) %] \
- <option value="q" selected="selected">q- Quadraphonic, multichannel, or surround</option> \
+ <option value="q" selected="selected">' +
+ _("q- Quadraphonic, multichannel, or surround") +
+ '</option> \
[% ELSE %] \
- <option value="q">q- Quadraphonic, multichannel, or surround</option> \
+ <option value="q">' +
+ _("q- Quadraphonic, multichannel, or surround") +
+ '</option> \
[% END %] \
[% IF ( f8s ) %] \
- <option value="s" selected="selected">s- Stereophonic</option> \
+ <option value="s" selected="selected">' +
+ _("s- Stereophonic") +
+ '</option> \
[% ELSE %] \
- <option value="s">s- Stereophonic</option> \
+ <option value="s">' +
+ _("s- Stereophonic") +
+ '</option> \
[% END %] \
[% IF ( f8u ) %] \
- <option value="u" selected="selected">u- Unknown</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unknown") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unknown</option> \
+ <option value="u">' +
+ _("u- Unknown") +
+ '</option> \
[% END %] \
[% IF ( f8z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f8pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
case "z":
divOutput.innerHTML='<table> \
<tr> \
- <td>00 Category of material</td> \
- <td>z- Unspecified</td> \
+ <td>' +
+ _("00 Category of material") +
+ '</td> \
+ <td>' +
+ _("z- Unspecified") +
+ '</td> \
</tr> \
<tr> \
- <td><label for="f1">01 Specific material designation</label></td> \
+ <td><label for="f1">' +
+ _("01 Specific material designation") +
+ '</label></td> \
<td> \
<select id="f1" name="f1" size="1"> \
[% IF ( f1m ) %] \
- <option value="m" selected="selected">m- Multiple physical forms</option> \
+ <option value="m" selected="selected">' +
+ _("m- Multiple physical forms") +
+ '</option> \
[% ELSE %] \
- <option value="m">m- Multiple physical forms</option> \
+ <option value="m">' +
+ _("m- Multiple physical forms") +
+ '</option> \
[% END %] \
[% IF ( f1u ) %] \
- <option value="u" selected="selected">u- Unspecified</option> \
+ <option value="u" selected="selected">' +
+ _("u- Unspecified") +
+ '</option> \
[% ELSE %] \
- <option value="u">u- Unspecified</option> \
+ <option value="u">' +
+ _("u- Unspecified") +
+ '</option> \
[% END %] \
[% IF ( f1z ) %] \
- <option value="z" selected="selected">z- Other</option> \
+ <option value="z" selected="selected">' +
+ _("z- Other") +
+ '</option> \
[% ELSE %] \
- <option value="z">z- Other</option> \
+ <option value="z">' +
+ _("z- Other") +
+ '</option> \
[% END %] \
[% IF ( f1pipe ) %] \
- <option value="|" selected="selected">|- No attempt to code</option> \
+ <option value="|" selected="selected">' +
+ _("|- No attempt to code") +
+ '</option> \
[% ELSE %] \
- <option value="|">|- No attempt to code</option> \
+ <option value="|">' +
+ _("|- No attempt to code") +
+ '</option> \
[% END %] \
</select> \
</td> \
[% 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>
</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>
<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 %]
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Circulation
-[% IF ( borrowernumber ) %]
-› Checking out to [% surname %], [% firstname %]
-([% cardnumber %])
-[% END %]</title>
+<title>Koha › Circulation [% IF ( borrowernumber ) %] › Checking out to [% INCLUDE 'patron-title.inc' %] [% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% IF ( UseTablesortForCirc ) %]<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>[% END %]
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
$( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show();
}
} ).attr( 'checked', false );
- [% END %]
- // listen submit to trigger qslip on empty checkout
- $('#mainform').bind('submit',function() {
- if ($('#barcode').val() == '') {
- return printx_window('qslip'); }
- });
+ [% END %][% IF ( CircAutoPrintQuickSlip ) %]
+ // listen submit to trigger qslip on empty checkout
+ $('#mainform').bind('submit',function() {
+ if ($('#barcode').val() == '') {
+ return printx_window('qslip'); }
+ });[% END %]
var allcheckboxes = $(".checkboxed");
[% INCLUDE 'header.inc' %]
[% INCLUDE 'circ-search.inc' %]
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> ›[% IF ( borrowernumber ) %] <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% firstname %] [% surname %][% ELSE %] <strong>Checkouts</strong>[% END %]</div>
-
-
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> ›
+[% IF ( borrowernumber ) %]
+ <a href="/cgi-bin/koha/circ/circulation.pl">Checkouts</a> › [% INCLUDE 'patron-title.inc' %]
+[% ELSE %]
+ <strong>Checkouts</strong>
+[% END %]
+</div>
[% IF ( CGIselectborrower ) %]
<div id="doc" class="yui-t7">
</div>
[% IF ( dateexpiry ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry %]</div>[% END %]
+
+[% IF additional_materials %]
+ <div id="materials" class="dialog message">Note about the accompanying materials: <br />
+ [% additional_materials %]
+ </div>
+[% END %]
+
[% IF ( NEEDSCONFIRMATION ) %]
<div class="yui-g">
<span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
[% END %]
- <label for="barcode">Checking out to [% firstname %] [% surname %] ([% cardnumber %]) </label>
+ <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
+
<div class="hint">Enter item barcode:</div>
[% IF ( NEEDSCONFIRMATION ) %]
[% IF ( flagged ) %]
[% IF ( noissues ) %]
- <h4>Checking out to [% firstname %] [% surname %] ([% cardnumber %])</h4>
+ <h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
<div id="circmessages" class="circmessage warning">
[% ELSE %]
<div id="circmessages" class="circmessage attention">
<li class="blocker"><span class="circ-hlt">Lost: </span>Patron's card is lost</li>
[% END %]
- [% IF ( dbarred ) %]<li class="blocker">
- <span class="circ-hlt"> Restricted:</span> Patron's account is restricted <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&cardnumber=[% cardnumber %]&destination=circ&status=0">Lift restriction</a>
-</li>[% END %]
+ [% IF ( userdebarred ) %]
+ <li class="blocker">
+ <span class="circ-hlt"> Restricted:</span> Patron's account is restricted [% IF (userdebarreddate ) %] until [% userdebarreddate %] [% END %] [% IF (debarredcomment ) %] with the comment "[% debarredcomment %]"[% END %]
+ <form class="inline compact" action="/cgi-bin/koha/members/setstatus.pl" method="post">
+ <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
+ <input type="hidden" name="destination" value="circ" />
+ <input type="hidden" name="cardnumber" value="[% cardnumber %]" />
+ <input type="submit" value="Lift restriction" />
+ </form>
+ </li>[% END %]
[% IF ( odues ) %]<li>[% IF ( nonreturns ) %]<span class="circ-hlt">Overdues:</span> Patron has <span class="circ-hlt">ITEMS OVERDUE</span>. See highlighted items <a href="#checkouts">below</a>[% END %]</li>
[% END %]
<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>
<div class="yui-g">
+[% IF additional_materials %]
+ <div class="dialog message" id="materials">Note about the accompanying materials: <br />
+ [% additional_materials %]
+ </div>
+[% END %]
+
[% IF ( collectionItemNeedsTransferred ) %]
- <div class="dialog message">This item is part of a Rotating Collection and needs to be Transferred to [% collectionBranch %]</div>
+ <div id="rotating-collection" class="dialog message">This item is part of a Rotating Collection and needs to be Transferred to [% collectionBranch %]</div>
[% END %]
<!-- Patron has fines -->
<!-- Patron has waiting holds -->
[% IF ( waiting_holds ) %]
- <div class="dialog message">
+ <div id="awaiting-pickup" class="dialog message">
<h3>[% holdsfirstname %] [% holdssurname %] has [% waiting_holds %] hold(s) waiting for pickup.</h3>
<p><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% holdsborrowernumber %]">Check out to this patron</a>.</p>
</div>
</div>
[% END %]
<!-- case of a mistake in transfer loop -->
-[% IF ( WrongTransfer ) %]<div class="dialog message"><!-- WrongTransfer --><h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a> to [% TransferWaitingAt %] or <a href="/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber %]&canceltransfer=1">Cancel Transfer</a></h3>
+[% IF ( WrongTransfer ) %]<div id="return2" class="dialog message"><!-- WrongTransfer --><h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title |html %]</a> to [% TransferWaitingAt %] or <a href="/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber %]&canceltransfer=1">Cancel Transfer</a></h3>
[% IF ( wborcnum ) %]<h5>Hold for:</h5>
<ul><li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">
[% borsurname %], [% borfirstname %]</a> ([% borcnum %])</li>
<audio src="/intranet-tmpl/prog/sound/ending.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
[% END %]
-<div class="dialog message">
+<div id="hold-found1" class="dialog message">
<h3>Hold Found (item is already waiting): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
[% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
<h4>Hold for:</h4>
[% IF ( soundon ) %]
<audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
[% END %]
- <div class="dialog message">
+ <div id="transfer-needed" class="dialog message">
<h3>Hold needing transfer found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
<h4>Hold for: </h4>
<ul>
[% IF ( transfer ) %]
<!-- transfer: item with no reservation, must be returned to its homebranch -->
- <div class="dialog message">
+ <div id="return1" class="dialog message">
<h3>Please return <a href="/cgi-bin/koha/catalogue/detail.pl?type=intra&biblionumber=[% itembiblionumber %]">[% title or "item" |html %]</a> to [% homebranchname %]</h3>
</div>
[% IF ( soundon ) %]
[% IF ( soundon ) %]
<audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
[% END %]
- <div class="dialog message"><h3> This item needs to be transferred to [% homebranchname %]</h3>
+ <div id="item-transfer" class="dialog message"><h3> This item needs to be transferred to [% homebranchname %]</h3>
Transfer Now?<br />
<form method="post" action="returns.pl" name="mainform" id="mainform">
<input type="submit" name="dotransfer" value="Yes" class="submit" />
<audio src="/intranet-tmpl/prog/sound/opening.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
[% END %]
- <div class="dialog message">
+ <div id="hold-found2" class="dialog message">
<h3>Hold Found: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% itembiblionumber %]">[% title |html %]</a></h3>
[% IF ( reservenotes ) %]<h4>Notes: [% reservenotes %]</h4>[% END %]
<h5>Hold for:</h5>
[% IF ( errmsgloo.withdrawn ) %]
<p class="problem">Item is withdrawn.</p>
[% END %]
+ [% IF ( errmsgloo.debarred ) %]
+ <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber %]">[% errmsgloo.debarname %]([% errmsgloo.debarcardnumber %])</a> is now debarred until [% errmsgloo.debarred %] </p>
+ [% END %]
[% END %]
[% IF ( soundon ) %]
<audio src="/intranet-tmpl/prog/sound/critical.ogg" autoplay="autoplay" autobuffer="autobuffer"></audio>
<li>Check 'Allow password' to make it possible to associate a password with this attribute.</li>
<li>Check 'Display in OPAC' to display this attribute on a patron's details page in the OPAC.</li>
<li>Check 'Searchable' to make this attribute searchable in the staff patron search.</li>
+ <li>Check 'Display in check-out' to make this attribute visible in the patron's short detail display on the left of the checkout screen and other patron pages</li>
<li>Authorized value category; if one is selected, the patron record input page will only allow values to be chosen from the authorized value list.
<ul>
<li>You will first need to add an authorized value list for it to appear in this menu</li>
<li>Enter the identifying information regarding your patron
<ul>
<li>Required fields are defined in the BorrowerMandatoryField system preference</li>
+ <li>Unwanted fields are defined in the BorrowerUnwantedField system preference</li>
<li>Salutation is populated by the BorrowersTitles system preference</li>
</ul>
</li>
<p>You can also choose to export to a file that you can manipulate to your needs.</p>
-<p><strong>See the full documentation for the Issues with no Checkouts report in the <a href="http://manual.koha-community.org/3.6/en/statsreports.html#itemnocheckouts">manual</a> (online).</strong></p>
+<p><strong>See the full documentation for the Items with no Checkouts report in the <a href="http://manual.koha-community.org/3.6/en/statsreports.html#itemnocheckouts">manual</a> (online).</strong></p>
[% INCLUDE 'help-bottom.inc' %]
\ No newline at end of file
[% 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>
[% 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>
</div><!-- /koha-news -->
</div>
[% END %]
-
+
</div>
+
[% INCLUDE 'intranet-bottom.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Patrons › Account for [% firstname %] [% surname %]</title>
+<title>Koha › Patrons › Account for [% INCLUDE 'patron-title.inc' %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body>
[% INCLUDE 'header.inc' %]
[% INCLUDE 'patron-search.inc' %]
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Account for [% firstname %] [% surname %]</div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Account for [% INCLUDE 'patron-title.inc' %]</div>
<div id="doc3" class="yui-t2">
[% END %]
[% END %]
<td>[% resultsloo.cardnumber %]</td>
- <td style="white-space: nowrap;"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resultsloo.borrowernumber %]">[% resultsloo.surname %], [% resultsloo.firstname %]</a> <br /> [% resultsloo.address %][% IF ( resultsloo.address2 ) %]<br />[% resultsloo.address2 %][% END %][% IF ( resultsloo.city ) %]<br />[% resultsloo.city %][% IF ( resultsloo.state ) %],[% END %][% END %][% IF ( resultsloo.state ) %] [% resultsloo.state %][% END %] [% IF ( resultsloo.zipcode ) %] [% resultsloo.zipcode %][% END %][% IF ( resultsloo.country ) %], [% resultsloo.country %][% END %]</td>
+ <td style="white-space: nowrap;"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resultsloo.borrowernumber %]">
+ [% INCLUDE 'patron-title.inc' category_type = resultsloo.category_type firstname = resultsloo.firstname surname = resultsloo.surname othernames = resultsloo.othernames cardnumber = resultsloo.cardnumber %]</a> <br />
+ [% resultsloo.address %][% IF ( resultsloo.address2 ) %]<br />[% resultsloo.address2 %][% END %][% IF ( resultsloo.city ) %]<br />[% resultsloo.city %][% IF ( resultsloo.state ) %],[% END %][% END %][% IF ( resultsloo.state ) %] [% resultsloo.state %][% END %] [% IF ( resultsloo.zipcode ) %] [% resultsloo.zipcode %][% END %][% IF ( resultsloo.country ) %], [% resultsloo.country %][% END %]</td>
<td>[% resultsloo.category_description %] ([% resultsloo.category_type %])</td>
<td>[% resultsloo.branchcode %]</td>
<td>[% resultsloo.dateexpiry %]</td>
</div>
</div>
-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
-<script type="text/javascript">//<![CDATA[
-$(document).ready(function() {
- $("#memberresultst").tablesorter({
- sortList: [[1,0]],
- widgets: ['zebra']
- });
-});
-//]]>
-</script>
[% INCLUDE 'intranet-bottom.inc' %]
[% END %]
[% IF ( step_1 ) %]
+[%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %]
<fieldset class="rows" id="memberentry_identity">
<legend>[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
<ol>
[% UNLESS ( I ) %]
+ [% UNLESS notitle %]
[% IF ( title_cgipopup ) %]
<li>
[% IF ( mandatorytitle ) %]
</li>
[% END %]
[% END %]
+ [% END %]
+ [% UNLESS nosurname %]
<li>
[% IF ( mandatorysurname ) %]
<label for="surname" class="required">
[% END %]
[% IF ( mandatorysurname ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
[% UNLESS ( I ) %]
+ [% UNLESS nofirstname %]
<li>
[% IF ( mandatoryfirstname ) %]
<label for="firstname" class="required">
<input type="text" id="firstname" name="firstname" size="20" value="[% IF ( opduplicate ) %][% ELSE %][% firstname %][% END %]" />
[% IF ( mandatoryfirstname ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS nodateofbirth %]
<li>
[% IF ( mandatorydateofbirth ) %]
<label for="dateofbirth" class="required">
[% IF ( ERROR_dateofbirth ) %]<span class="required">(Error)</span>[% END %]
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
</li>
+ [% END %]
+ [% UNLESS noinitials %]
<li>
[% IF ( mandatoryinitials ) %]
<label for="initials" class="required">
[% IF ( mandatoryinitials ) %]<span class="required">Required</span>[% END %]
</li>
[% END %]
+ [% END %]
+ [% UNLESS noothernames %]
<li>
[% IF ( mandatoryothernames ) %]
<label for="othernames" class="required">
[% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %]
[% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %]
</li>
+ [% END %]
[% UNLESS ( I ) %]
+ [% UNLESS nosex %]
<li class="radio">
[% IF ( female ) %]
<label for="sex-none">N/A </label><input type="radio" name="sex" id="sex-none" value="" />
[% END %]
</li>
+ [% END %]
[% END %]
</ol>
</fieldset>
+[% END # hide fieldset %]
[% IF ( showguarantor ) %]<input type="hidden" id="guarantorid" name="guarantorid" value="[% guarantorid %]" />
<fieldset class="rows">
[% END %]
<span class="label">Patron #:</span> [% IF ( guarantorid ) %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantorid %]" target="blank">[% guarantorid %]</a>[% END %]
</li>
+ [% UNLESS nocontactname %]
<li>
<label for="contactname">Surname: </label>
[% IF ( guarantorid ) %]
[% END %]
[% END %]
</li>
+ [% END %]
+ [% UNLESS nocontactfirstname %]
<li>
<label for="contactfirstname">First name: </label>
[% IF ( guarantorid ) %]
[% END %]
[% END %]
</li>
+ [% END %]
[% IF ( relshiploop ) %]
<li>
<label for="relationship">Relationship: </label>
</fieldset>
[% END %]
+[% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
<fieldset class="rows">
<legend>Main address</legend><ol>
+ [% UNLESS nostreetnumber %]
<li>
[% IF ( mandatorystreetnumber ) %]
<label for="streetnumber" class="required">
[% END %]
[% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS nostreettype %]
[% IF ( road_cgipopup ) %]
<li>
[% IF ( mandatorystreettype ) %]
[% IF ( mandatorystreettype ) %]<span class="required">Required</span>[% END %]
</li>
[% END %]
+ [% END %]
+ [% UNLESS noaddress %]
<li>
[% IF ( mandatoryaddress ) %]
<label for="address" class="required">
[% END %]
[% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noaddress2 %]
<li>
[% IF ( mandatoryaddress2 ) %]
<label for="address2" class="required">
[% END %]
[% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS nocity %]
<li>
[% IF ( mandatorycity ) %]
<label for="city" class="required">
[% END %]
[% IF ( mandatorycity ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS nostate %]
<li>
[% IF ( mandatorystate ) %]
<label for="state" class="required">
<input type="text" name="state" id="state" size="20" value="[% state %]" />
[% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS nozipcode %]
<li>
[% IF ( mandatoryzipcode ) %]
<label for="zipcode" class="required">
[% END %]
[% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %]
</li>
-
+ [% END %]
+ [% UNLESS nocountry %]
<li>
[% IF ( mandatorycountry ) %]
<label for="country" class="required">
[% END %]
[% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %]
</li>
-
+ [% END %]
</ol>
</fieldset>
+[% END # nostreet && nocity etc group%]
+
+[% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
<fieldset class="rows" id="memberentry_contact">
<legend>Contact</legend><ol>
+ [% UNLESS nophone %]
<li>
[% IF ( mandatoryphone ) %]
<label for="phone" class="required">
[% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
</li>
+ [% END %]
+ [% UNLESS nophonepro %]
<li>
[% IF ( mandatoryphonepro ) %]
<label for="phonepro" class="required">
[% END %]
[% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS nomobile %]
<li>
[% IF ( mandatorymobile ) %]
<label for="mobile" class="required">
[% END %]
[% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noemail %]
<li>
[% IF ( mandatoryemail ) %]
<label for="email" class="required">
[% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %]<div class="hint">Shows on transit slips</div>
</li>
+ [% END %]
+ [% UNLESS noemailpro %]
<li>
[% IF ( mandatoryemailpro ) %]
<label for="emailpro" class="required">
[% END %]
[% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS nofax %]
<li>
[% IF ( mandatoryfax ) %]
<label for="fax" class="required">
[% END %]
[% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
</ol>
</fieldset>
-
+[%END # hide fieldset %]
<!-- ************************ STEP_1 *********************** -->
[% END %]
[% IF ( step_6 ) %]
+ [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
<fieldset class="rows" id="memberentry_address">
<legend>Alternate address</legend><ol>
+ [% UNLESS noB_address %]
<li>
[% IF ( mandatoryB_address ) %]
<label for="B_address" class="required">
[% END %]
[% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noB_address2 %]
<li>
[% IF ( mandatoryB_address2 ) %]
<label for="B_address2" class="required">
[% END %]
[% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noB_city %]
<li>
[% IF ( mandatoryB_city ) %]
<label for="B_city" class="required" >
<input type="text" id="B_city" name="B_city" size="20" value="[% B_city %]" />
[% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noB_state %]
<li>
[% IF ( mandatoryB_state ) %]
<label for="B_state" class="required" >
<input type="text" id="B_state" name="B_state" size="20" value="[% B_state %]" />
[% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noB_zipcode %]
<li>
[% IF ( mandatoryB_zipcode ) %]
<label for="B_zipcode" class="required">
[% END %]
[% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noB_country %]
<li>
[% IF ( mandatoryB_country ) %]
<label for="B_country" class="required">
[% END %]
[% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noB_phone %]
<li>
[% IF ( mandatoryB_phone ) %]
<label for="B_phone" class="required">
[% END %]
[% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noB_email %]
<li>
[% IF ( mandatoryB_email ) %]
<label for="B_email" class="required">
<input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" />
[% END %]
[% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li>
+ [% END %]
+ [% UNLESS nocontactnote %]
<li>
[% IF ( mandatorycontactnote ) %]
<label for="contactnote" class="required">
<textarea id="contactnote" name="contactnote" cols="40" rows="2">[% contactnote %]</textarea>
[% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
</ol>
</fieldset>
+ [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %]
[% END %]
[% IF ( step_2 ) %]
+ [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
<fieldset class="rows" id="memberentry_altaddress">
<legend>Alternate Contact</legend><ol>
+ [% UNLESS noaltcontactsurname %]
<li>
[% IF ( mandatoryaltcontactsurname ) %]
<label for="altcontactsurname" class="required">
[% END %]
[% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noaltcontactfirstname %]
<li>
[% IF ( mandatoryaltcontactfirstname ) %]
<label for="altcontactfirstname" class="required">
[% END %]
[% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noaltcontactaddress1 %]
<li>
[% IF ( mandatoryaltcontactaddress1 ) %]
<label for="altcontactaddress1" class="required">
[% END %]
[% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noaltcontactaddress2 %]
<li>
[% IF ( mandatoryaltcontactaddress2 ) %]
<label for="altcontactaddress2" class="required">
[% END %]
[% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noaltcontactaddress3 %]
<li>
[% IF ( mandatoryaltcontactaddress3 ) %]
<label for="altcontactaddress3" class="required">
<input type="text" name="altcontactaddress3" id="altcontactaddress3" value="[% altcontactaddress3 %]" size="20" />
[% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noaltcontactstate %]
<li>
[% IF ( mandatoryaltcontactstate ) %]
<label for="altcontactstate" class="required">
<input type="text" name="altcontactstate" id="altcontactstate" value="[% altcontactstate %]" size="20" />
[% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noaltcontactzipcode %]
<li>
[% IF ( mandatoryaltcontactzipcode ) %]
<label for="altcontactzipcode" class="required">
[% END %]
[% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noaltcontactcountry %]
<li>
[% IF ( mandatoryaltcontactcountry ) %]
<label for="altcontactcountry" class="required">
[% END %]
[% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noaltcontactphone %]
<li>
[% IF ( mandatoryaltcontactphone ) %]
<label for="altcontactphone" class="required">
[% END %]
[% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
</ol>
</fieldset>
+ [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %]
[% END %]
[% IF ( step_3 ) %]
<fieldset class="rows" id="memberentry_library_management">
<legend>Library Management</legend><ol>
+ [% UNLESS nocardnumber %]
<li> [% IF ( mandatorycardnumber ) %]
<label for="cardnumber" class="required">
[% ELSE %]
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" />
[% END %]
[% IF ( mandatorycardnumber ) %]<span class="required">Required</span>[% END %]</li>
+ [% END %]
+ [% UNLESS nobranchcode %]
<li>
[% IF ( mandatorybranchcode ) %]
<label for="branchcode" class="required">
[% CGIbranch %]
[% IF ( mandatorybranchcode ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
<li>
<label for="categorycode">Category: </label>
<select id="categorycode" name="categorycode">
[% END %]
</select>
</li>
+ [% UNLESS nosort1 %]
<li>
[% IF ( mandatorysort1 ) %]
<label for="sort1" class="required">
[% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %]
[% END %]
</li>
+ [% END %]
+ [% UNLESS nosort2 %]
<li>
[% IF ( mandatorysort2 ) %]
<label for="sort2" class="required">
[% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
[% END %]
</li>
+ [% END %]
</ol>
</fieldset>
+ [% UNLESS nodateenrolled && nodateexpiry && noopacnote && noborrowernotes %]
<fieldset class="rows" id="memberentry_subscription">
<legend>Library set-up</legend><ol>
+ [% UNLESS nodateenrolled %]
<li>
[% IF ( mandatorydateenrolled ) %]
<label for="dateenrolled" class="required">
[% IF ( ERROR_dateenrolled ) %]<span class="required">(Error)</span>[% END %]
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
</li>
+ [% END %]
+ [% UNLESS nodateexpiry %]
<li>
[% IF ( mandatorydateexpiry ) %]
<label for="dateexpiry" class="required">
[% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %]
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
</li>
+ [% END %]
+ [% UNLESS noopacnote %]
<li>
[% IF ( mandatoryopacnote ) %]
<label for="opacnote" class="required">
<div class="hint">This message appears on this patron's user page in the OPAC</div>
[% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
+ [% UNLESS noborrowernotes %]
<li>
[% IF ( mandatoryborrowernotes ) %]
<label for="borrowernotes" class="required">
<div class="hint">This message displays when checking out to this patron</div>
[% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %]
</li>
+ [% END %]
</ol>
</fieldset>
+ [% END # hide fieldset %]
+
+ [% UNLESS nouserid && nopassword %]
<fieldset class="rows" id="memberentry_userid">
<legend>OPAC/Staff Login</legend><ol>
+ [% UNLESS nouserid %]
<li>
[% IF ( mandatoryuserid ) %]
<label for="userid" class="required">
[% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %]
</li>
+ [%END %]
+ [% UNLESS nopassword %]
<li>
[% IF ( mandatorypassword ) %]
<label for="password" class="required">
[% END %]
[% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %][% IF ( ERROR_short_password ) %]<span class="required">Password is too short</span>[% END %]
[% IF ( minPasswordLength ) %]<div class="hint">Minimum password length: [% minPasswordLength %]</div>[% END %]
- </li></ol>
+ </li>
+ [% END %]
+ </ol>
</fieldset>
+ [% END # hide fieldset %]
<!--this zones are not necessary in modif mode -->
[% UNLESS ( opadd ) %]
<fieldset class="rows">
<input type="radio" id="no[% flagloo.name %]" name="[% flagloo.name %]" value="0" />
[% END %]
-</li>
+ </li>
[% END %]
+ <li>
+ <label for="yesdebarred" class="radio">Restricted: </label>
+ [% IF ( debarred ) %]
+ <label for="yesdebarred">Yes </label>
+ <input type="radio" id="yesdebarred" name="debarred" value="1" checked="checked"/>
+ <label for="nodebarred">No </label>
+ <input type="radio" id="nodebarred" name="debarred" value="0"/>
+ [% ELSE %]
+ <label for="yesdebarred">Yes </label>
+ <input type="radio" id="yesdebarred" name="debarred" value="1" />
+ <label for="nodebarred">No </label>
+ <input type="radio" id="nodebarred" name="debarred" value="0" checked="checked"/>
+ [% END %]
+
+ <br />
+ <label for="datedebarred" class="radio">until:</label>
+ [% IF opduplicate %]
+ <input type="text" name="datedebarred" id="debarred" class="debarred" value="[% datedebarred %]" onclick="this.value=''" />
+ [% ELSE %]
+ <input type="text" name="datedebarred" id="debarred" class="debarred" value="[% datedebarred %]" />
+ [% END %]
+ <img src="[% themelang %]/lib/calendar/cal.gif" id="debarred_button" alt="Show Calendar" />
+ <script language="JavaScript" type="text/javascript">
+ Calendar.setup(
+ {
+ inputField : "debarred",
+ ifFormat : "[% DHTMLcalendar_dateformat %]",
+ button : "debarred_button"
+ }
+ );
+ </script>
+ <br />
+ <label for="debarredcomment" class="radio">Comment:</label>
+ [% IF ( opduplicate ) %]
+ <textarea id="debarredcomment" name="debarredcomment" cols="55" rows="3" onclick="this.value=''">[% debarredcomment %]</textarea>
+ [% ELSE %]
+ <textarea id="debarredcomment" name="debarredcomment" cols="55" rows="3" ">[% debarredcomment %]</textarea>
+ [% END %]
+ </li>
+
</ol>
</fieldset>
+
[% END %]
[% END %]
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Patrons › [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Patron Details for [% firstname %] [% surname %] ([% cardnumber %])[% END %]</title>
+<title>Koha › Patrons ›
+[% IF ( unknowuser ) %]
+ Patron does not exist
+[% ELSE %]
+ Patron Details for [% INCLUDE 'patron-title.inc' %]
+[% END %]
+</title>
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'calendar.inc' %]
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<div id="breadcrumbs">
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
› <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
-› [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Patron Details for [% firstname %] [% surname %] ([% cardnumber %])[% END %]
+› [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Patron Details for [% INCLUDE 'patron-title.inc' %][% END %]
</div>
<div id="doc3" class="yui-t1">
[% IF ( flagged ) %]
<ul>
- [% IF ( debarred ) %]
- <li>Patron is restricted
+ [% IF ( userdebarred ) %]
+ <li>Patron is restricted[% IF ( userdebarreddate ) %] until [% userdebarreddate%] [% IF (debarredcomment ) %]([% debarredcomment %])[% END %][% END %]
<form class="inline compact" action="/cgi-bin/koha/members/setdebar.pl" method="post">
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
- <input type="hidden" name="status" value="0" />
<input type="submit" value="Lift Restriction" />
</form>
</li>
[% IF ( email ) %]<li><span class="label">Primary email:</span><a href="mailto:[% email %]">[% email %]</a></li>[% END %]
[% IF ( emailpro ) %]<li><span class="label">Secondary email: </span><a href="mailto:[% emailpro %]">[% emailpro %]</a></li>[% END %]
[% END %]
- <li><span class="label">Initials: </span>[% initials %]</li>
- <li><span class="label">Date of birth:</span>[% dateofbirth %]</li>
- <li><span class="label">Gender:</span>
+ [% IF ( initials ) %]<li><span class="label">Initials: </span>[% initials %]</li>[% END %]
+ [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth %]</li>[% END %]
+ [% IF ( sex ) %]<li><span class="label">Gender:</span>
[% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %]
- </li>[% END %]
+ </li>[% END %][% END %]
[% IF ( printethnicityline ) %]
<li><span class="label">Ethnicity:</span>[% ethnicity %]</li>
<li><span class="label">Ethnicity notes: </span>[% ethnotes %]</li>
<li><span class="label">City: </span>[% B_city %]</li>
[% IF ( B_state ) %]<li><span class="label">State: </span>[% B_state %]</li>[% END %]
<li><span class="label">Zip/Postal Code: </span>[% B_zipcode %]</li>
- <li><span class="label">Country: </span>[% B_country %]</li>
+ [% IF ( B_country ) %]<li><span class="label">Country: </span>[% B_country %]</li>[% END %]
[% IF ( B_phone ) %]<li><span class="label">Phone: </span>[% B_phone %]</li>[% END %]
- [% IF ( B_email ) %]<li><span class="label">Email: </span>[% B_email %]</li>[% END %]</ol></div>
+ [% IF ( B_email ) %]<li><span class="label">Email: </span><a href="mailto:[% B_email %]">[% email %]</a></li>[% END %]</ol></div>
</div>
<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=6">Edit</a></div>
[% END %]
<li><span class="label">Address: </span>[% altcontactaddress1 %]</li>
<li><span class="label">Address 2: </span>[% altcontactaddress2 %]</li>
<li><span class="label">City: </span>[% altcontactaddress3 %]</li>
- [% IF ( altcontactstate ) %]<li><span class="label">State: </span>[% altcontactstate %]</li>[% END %]
+ [% IF ( altcontactstate ) %]<li><span class="label">State: </span>[% altcontactstate %]</li>[% END %]
<li><span class="label">Zip/Postal Code: </span>[% altcontactzipcode %]</li>
- <li><span class="label">Country: </span>[% altcontactcountry %]</li>
- <li><span class="label">Phone: </span>[% altcontactphone %]</li></ol></div>
+ [% IF ( altcontactcountry ) %]<li><span class="label">Country: </span>[% altcontactcountry %]</li>[% END %]
+ [% IF ( altcontactphone ) %]<li><span class="label">Phone: </span>[% altcontactphone %]</li>[% END %]
+ </ol></div>
</div>
<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=2">Edit</a></div>
[% INCLUDE 'doc-head-open.inc' %]
-<title>Sent notices for [% firstname %] [% surname %]</title>
+<title>Sent notices for [% INCLUDE 'patron-title.inc' %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/javascript" language="javascript">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'patron-search.inc' %]
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Sent notices for [% firstname %] [% surname %]</div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Sent notices for [% INCLUDE 'patron-title.inc' %]</div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
[% INCLUDE 'circ-toolbar.inc' %]
-<h1>Sent notices for [% firstname %] [% surname %]</h1>
+<h1>Sent notices for [% INCLUDE 'patron-title.inc' %]</h1>
<table id="noticestable">
[% INCLUDE 'doc-head-open.inc' %]
-<title>Circulation History for [% firstname %] [% surname %]</title>
+<title>Circulation History for [% INCLUDE 'patron-title.inc' %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
[% INCLUDE 'header.inc' %]
[% INCLUDE 'patron-search.inc' %]
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Circulation History for [% firstname %] [% surname %]</div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Circulation History for [% INCLUDE 'patron-title.inc' %]</div>
<div id="doc3" class="yui-t2">
</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>
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Reports › Item Types</title>
+<title>Koha › Reports › Catalog by Item Types</title>
[% INCLUDE 'doc-head-close.inc' %]
+<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
+<script type="text/javascript">
+//<![CDATA[
+$(document).ready(function() {
+ $("#itemtypest").tablesorter();
+});
+//]]>
+</script>
</head>
<body>
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>[% IF ( do_it ) %] › <a href="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">Item Types</a> › Results[% ELSE %] › Item Types[% END %]</div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>[% IF ( do_it ) %] › <a href="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">Catalog by Item Type</a> › Results[% ELSE %] › Catalog by Item Type[% END %]</div>
<div id="doc3" class="yui-t2">
[% IF ( do_it ) %]
[% FOREACH mainloo IN mainloop %]
- <h1>Reports on item types [% IF ( mainloo.branch ) %] for branch = [% mainloo.branch %][% END %]</h1>
- <table>
+ <h1>Reports on item types [% IF ( mainloo.branchname ) %] held at [% mainloo.branchname %][% END %]</h1>
+ <table id="itemtypest">
+ <thead>
<tr>
<th>Item type</th>
- <th>count</th>
+ <th>Count</th>
</tr>
+ </thead>
+ <tfoot>
+ <tr>
+ <th>TOTAL</th>
+ <th>[% mainloo.total %]</th>
+ </tr>
+ </tfoot>
+ <tbody>
[% FOREACH loopitemtyp IN mainloo.loopitemtype %]
<tr>
<td>[% loopitemtyp.itemtype %]</td>
<td>[% loopitemtyp.count %]</td>
</tr>
[% END %]
- <tr>
- <th>TOTAL</th>
- <th>[% mainloo.total %]</th>
- </tr>
+ </tbody>
</table>
[% END %]
[% ELSE %]
-
+ <h3>View a count of items held at your library grouped by item type</h3>
<form method="post" action="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">
- <fieldset class="rows"><legend>View catalog group by item types</legend><ol><li><label for="value">Select a branch</label> [% CGIbranch %]
- <span class="tip">Select none to see all branches</span></li></ol></fieldset>
+ <fieldset class="rows"><ol><li><label for="value">Select a library</label> [% CGIbranch %]
+ <span class="tip">Select none to see all libraries</span></li></ol></fieldset>
<fieldset class="action"><input type="submit" value="Submit" />
<input type="hidden" name="report_name" value="[% report_name %]" />
<input type="hidden" name="do_it" value="1" /></fieldset>
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Tools › Comments waiting for Approval</title>
+<title>Koha › Tools › Comments › [% IF ( status ) %] Approved comments[% ELSE %] Comments awaiting moderation[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
-<script type="text/javascript">//<![CDATA[
-$(document).ready(function() {
-$.tablesorter.addParser({
- id: 'articles',
- is: function(s) {return false; },
- format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
- type: 'text'
-});
- $("#commentst").tablesorter({
- sortList: [[0,0]],
- headers: { 1: {sorter: 'articles'},2: { sorter: false },3: { sorter: false }}
- });
-});
-//]]>
-</script>
</head>
<body>
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
-› Comments Awaiting Moderation</div>
+› <a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments</a> ›[% IF ( status ) %] Approved comments[% ELSE %] Comments awaiting moderation[% END %]</div>
<div id="doc3" class="yui-t2">
<h1>Comments</h1>
+<!-- The manual invoice and credit buttons -->
+<div class="toptabs">
+<ul class="ui-tabs-nav">
+ [% IF ( status ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?status=1">Approved comments</a></li>
+ [% IF ( status ) %]<li>[% ELSE %]<li class="ui-tabs-selected">[% END %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl" >Comments awaiting moderation</a></li>
+</ul>
+<div class="tabs-container">
+
[% IF ( reviews ) %]
<table id="commentst">
<thead><tr>
[% review.review |html %]
</td>
<td>
- <a href="/cgi-bin/koha/reviews/reviewswaiting.pl?op=approve&reviewid=[% review.reviewid %]">Approve</a> |
+ [% IF ( status ) %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?op=unapprove&reviewid=[% review.reviewid %]">Unapprove</a>[% ELSE %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?op=approve&reviewid=[% review.reviewid %]">Approve</a>[% END %] |
<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?op=delete&reviewid=[% review.reviewid %]">Delete</a>
</td>
</tr>
[% END %]</tbody>
</table>
+ <div class="pages">[% pagination_bar %]</div>
[% ELSE %]
-<b>No comments to moderate</b>
+[% IF ( status ) %]<p><b>No comments have been approved.</b></p>[% ELSE %]<p><b>No comments to moderate.</b></p>[% END %]
[% END %]
+</div>
+</div>
</div>
</div>
[% IF ( subscriptions ) %]
<table>
-[% IF ( onesubscription ) %]
+[% IF ( subscriptions.size == 1 ) %]
<caption> Subscription Summary</caption>
[% ELSE %]
<caption> Subscription Summaries</caption>
</tr>
[% END %]
[% IF ( subscr ) %]
-[% UNLESS ( onesubscription ) %]
-<tr ><td colspan="7"> <a href="serials-collection.pl?biblionumber=[% biblionumber %]">See any subscription attached to this biblio</a></td>
-</tr>[% END %]
+[% IF ( subscriptioncount > 1 ) %]
+<tr ><td colspan="8"> <a href="serials-collection.pl?biblionumber=[% biblionumber %]">See any subscription attached to this biblio</a></td>
+</tr>
+[% END %]
[% END %]
</table>
[% END %]
[% FOREACH year IN years %]
<div id="subscription-year-[% year.year %]">
- <table style="width:400px;">
+ <table>
<tr>
-[% UNLESS ( year.onesubscription ) %]
+[% IF ( subscriptions.size > 1 ) %]
<th># Subs</th>
[% END %]
<th>Date published
</tr>
[% FOREACH serial IN year.serials %]
[% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
-[% UNLESS ( serial.onesubscription ) %]
+[% IF ( subscriptions.size > 1 ) %]
<td><a href="serials-collection.pl?subscriptionid=[% serial.subscriptionid %]">[% serial.subscriptionid %]</a></td>
[% END %]
<td>
<li>
<label for="acqui_date"> First issue publication date:</label>
[% UNLESS ( modify ) %]<img src="[% themelang %]/lib/calendar/cal.gif" id="acqui_button" style="cursor: pointer;" alt="Show Calendar" title="Show Calendar" />[% END %]
- [% IF ( modify ) %]<input type="text" name="firstacquidate" value="[% firstacquidate %]" size="13" maxlength="10" id="acqui_date" disabled="disabled" style="border-width: 0px;" />
- [% ELSE %]<input type="text" name="firstacquidate" value="[% firstacquidate %]" size="13" maxlength="10" id="acqui_date" style="border-width: 0px;" />[% END %]
+ [% IF ( modify ) %]<input type="text" name="firstacquidate" value="[% firstacquidate %]" size="13" maxlength="10" id="acqui_date" disabled="disabled" />
+ [% ELSE %]<input type="text" name="firstacquidate" value="[% firstacquidate %]" size="13" maxlength="10" id="acqui_date" />[% END %]
</li>
[% IF ( modify ) %]<li><label for="next_acqui_date"> Next issue publication date:</label>
<img src="[% themelang %]/lib/calendar/cal.gif" id="next_acqui_button" style="cursor: pointer;" alt="Show Calendar" title="Show Calendar" />
- <input type="text" name="nextacquidate" value="[% nextacquidate %]" size="13" maxlength="10" id="next_acqui_date" style="border-width: 0px;" />
+ <input type="text" name="nextacquidate" value="[% nextacquidate %]" size="13" maxlength="10" id="next_acqui_date" />
</li>[% END %]
<li><!-- both scripts for calendar must follow the input field -->
[% ELSE %]
<option value="8">1/quarter (seasonal)</option>
[% END %]
+ [% IF ( periodicity13 ) %]
+ <option value="13" selected="selected">1/4 months (3/year)</option>
+ [% ELSE %]
+ <option value="13">1/4 months (3/year)</option>
+ [% END %]
[% IF ( periodicity9 ) %]
<option value="9" selected="selected">2/years</option>
<label for="beginning_date" class="required"> Subscription start date:</label>
<img src="[% themelang %]/lib/calendar/cal.gif" id="button1" style="cursor: pointer;" alt="Show Calendar" title="Show Calendar" />
- <input type="text" name="startdate" value="[% startdate %]" size="13" maxlength="10" id="beginning_date" style="border-width: 0px;" />
+ <input type="text" name="startdate" value="[% startdate %]" size="13" maxlength="10" id="beginning_date" />
<!-- both scripts for calendar must follow the input field -->
<script type="text/javascript">
Calendar.setup({
<label for="ending_date"> Subscription end date:</label>
<img src="[% themelang %]/lib/calendar/cal.gif" id="buttonend1" style="cursor: pointer;" alt="Show Calendar" title="Show Calendar" />
- <input type="text" name="enddate" value="[% enddate %]" size="13" maxlength="10" id="ending_date" style="border-width: 0px;" />
+ <input type="text" name="enddate" value="[% enddate %]" size="13" maxlength="10" id="ending_date" />
<!-- both scripts for calendar must follow the input field -->
<script type="text/javascript">
Calendar.setup({
1/day
[% END %]
[% IF ( periodicity13 ) %]
- 3/week
+ 1/4 months (3/year)
[% END %]
[% IF ( periodicity2 ) %]
1/week
$("a.helptext").click(function(){
$(this).parent().find(".hint").toggle(); return false;
});
+ $("#dateofrange").each(function () { this.value = "" });
});
//]]>
</script>
<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 %]
<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>
<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>.
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 */
</li>
<li>
<label for="encoding">Character encoding: </label>
- <select name="encoding" id="encoding"><option value="" selected="selected">Default</option><option value="utf8">UTF-8</option><option value="MARC-8">MARC 8</option><option value="ISO_5426">ISO 5426</option><option value="ISO_6937">ISO 6937</option><option value=ISO_8859-1">ISO 8859-1</option><option value="EUC-KR">EUC-KR</option></select>
+ <select name="encoding" id="encoding"><option value="utf8" selected="selected">UTF-8 (Default)</option><option value="MARC-8">MARC 8</option><option value="ISO_5426">ISO 5426</option><option value="ISO_6937">ISO 6937</option><option value=ISO_8859-1">ISO 8859-1</option><option value="EUC-KR">EUC-KR</option></select>
</li>
</ol></fieldset>
<fieldset class="rows">
<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 ) %]
[% 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 %]
<input type="submit" value="Submit" />
<input type="hidden" name="do_it" value="1" />
</fieldset>
- </form>
+ </form>
[% END %]
[% IF ( do_it ) %]
[% IF ( total ) %]
<th>Info</th>
</tr>
[% FOREACH loopro IN looprow %]
+ [% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
<tr>
<td>[% loopro.timestamp %]</td>
<td>
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.object %]" title="Display member details."> member [% loopro.object %] </a>
[% ELSE %]
[% IF ( module == 'CIRCULATION' ) %]
- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.object %]" title="Display member details."> member [% loopro.object %] </a>
+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.object %]" title="Display member details.">
+ [% IF ( loopro.object ) %]
+ member [% loopro.object %]
+ [% END %]
+ </a>
[% ELSE %]
[% IF ( module == 'CATALOGUING' ) %]
[% IF ( info == 'item' ) %]
[% IF ( module == 'SERIAL' ) %]
<a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% loopro.object %]"> [% loopro.object %] </a>
[% ELSE %]
- [% loopro.object %]
+ [% IF ( module == 'AUTHORITIES' ) %]
+ <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% loopro.object %]" title="Display detail for this authority">auth [% loopro.object %]</a>
+ [% ELSE %]
+ [% loopro.object %]
+ [% END %]
[% END %]
[% END %]
[% END %]
for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% object %]">Bibliographic Record [% object %]</a>
[% END %]
[% IF ( MEMBERS ) %]
- for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% object %]">[% firstname %] [% surname %] ([% cardnumber %])</a>
+ for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% object %]">[% INCLUDE 'patron-title.inc' %]</a>
[% END %]
.
</div>
var _alertString="";
var alertString2;
- if(f.addshelf.value.length ==0){
+ if($("#shelfname").val() == ""){
_alertString += _("- You must enter a List Name") + "\n";
}
</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 %]
<tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th>Options</th></tr>
[% FOREACH shelveslooppri IN shelveslooppriv %]
[% IF ( shelveslooppri.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
- <td><a href="shelves.pl?[% IF ( shelveslooppri.showprivateshelves ) %]display=privateshelves&[% END %]viewshelf=[% shelveslooppri.shelf %]&shelfoff=[% shelfoff %]">[% shelveslooppri.shelfname |html %]</a></td>
+ <td><a href="shelves.pl?[% IF ( shelveslooppri.showprivateshelves ) %]display=privateshelves&[% END %]viewshelf=[% shelveslooppri.shelf %]&shelfoff=[% shelfoff %]">[% shelveslooppri.shelfname |html %]</a></td>
<td>[% shelveslooppri.count %] item(s)</td>
<td>[% IF ( shelveslooppri.authorsort ) %]Author[% ELSIF ( shelveslooppri.yearsort ) %]Year[% ELSE %]Title[% END %]</td>
<td>[% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %]
<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
+
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc">
<xsl:import href="MARC21slimUtils.xsl"/>
<xsl:output method="xml" indent="yes"/>
<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
<!-- $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"
<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
<xsl:stylesheet version="1.0" xmlns:xlink="http://www.w3.org/TR/xlink" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns="http://www.loc.gov/mods/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc">
<xsl:include href="MARC21slimUtils.xsl"/>
<xsl:output method="xml" indent="yes"/>
<?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"/>
<!--
<metaInformation>
<scenarios/><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
</metaInformation>
--->
\ No newline at end of file
+-->
<?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="MARC21slimUtils.xsl"/>
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
<xsl:stylesheet xmlns="http://www.loc.gov/mods/v3" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xlink marc" version="1.0">
<xsl:include href="MARC21slimUtils.xsl"/>
<xsl:output encoding="UTF-8" indent="yes" method="xml"/>
<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
+
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc">
<xsl:import href="MARC21slimUtils.xsl"/>
<xsl:output method="xml" indent="yes"/>
<metaInformation>
<scenarios/><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
</metaInformation>
--->
\ No newline at end of file
+-->
<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc">
<xsl:import href="MARC21slimUtils.xsl"/>
<xsl:output method="xml" indent="yes"/>
<metaInformation>
<scenarios ><scenario default="no" name="MODS Website Samples" userelativepaths="yes" externalpreview="no" url="..\xml\MARC21slim\modswebsitesamples.xml" htmlbaseurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/><scenario default="no" name="Ray Charles" userelativepaths="yes" externalpreview="no" url="..\xml\MARC21slim\raycharles.xml" htmlbaseurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/><scenario default="yes" name="s6" userelativepaths="yes" externalpreview="no" url="..\ifla\sally6.xml" htmlbaseurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/><scenario default="no" name="s7" userelativepaths="yes" externalpreview="no" url="..\ifla\sally7.xml" htmlbaseurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/><scenario default="no" name="s12" userelativepaths="yes" externalpreview="no" url="..\ifla\sally12.xml" htmlbaseurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/></scenarios><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
</metaInformation>
--->
\ No newline at end of file
+-->
<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
+
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc">
<xsl:import href="MARC21slimUtils.xsl"/>
<xsl:output method="xml" indent="yes"/>
<metaInformation>
<scenarios ><scenario default="yes" name="RDF" userelativepaths="yes" externalpreview="no" url="marcxmlfile.xml" htmlbaseurl="" outputurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/></scenarios><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
</metaInformation>
--->
\ No newline at end of file
+-->
<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
+
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc">
<xsl:import href="MARC21slimUtils2.xsl"/>
<xsl:output method="xml" indent="yes"/>
<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
+
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:srw_dc="info:srw/schema/1/dc-schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://purl.org/dc/elements/1.1/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc">
<xsl:import href="MARC21slimUtils.xsl"/>
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<metaInformation>
<scenarios/><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
</metaInformation>
--->
\ No newline at end of file
+-->
<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
+
<!-- $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"
<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:if test="marc:subfield[@code='h']">
<xsl:text> </xsl:text>
<xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">b</xsl:with-param>
+ <xsl:with-param name="codes">h</xsl:with-param>
</xsl:call-template>
</xsl:if>
- <xsl:if test="marc:subfield[@code='h']">
+ <xsl:if test="marc:subfield[@code='b']">
<xsl:text> </xsl:text>
<xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">h</xsl:with-param>
+ <xsl:with-param name="codes">b</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:text> </xsl:text>
<span class="results_summary series"><span class="label">Series: </span>
<!-- 440 -->
<xsl:for-each select="marc:datafield[@tag=440]">
- <a href="/cgi-bin/koha/catalogue/search.pl?q=se:{marc:subfield[@code='a']}">
+ <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
<xsl:call-template name="chopPunctuation">
<xsl:with-param name="chopString">
<xsl:call-template name="subfieldSelect">
<!-- 490 Series not traced, Ind1 = 0 -->
<xsl:for-each select="marc:datafield[@tag=490][@ind1!=1]">
- <a href="/cgi-bin/koha/catalogue/search.pl?q=se:{marc:subfield[@code='a']}">
+ <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
<xsl:call-template name="chopPunctuation">
<xsl:with-param name="chopString">
<xsl:call-template name="subfieldSelect">
<xsl:if test="marc:datafield[@tag=490][@ind1=1]">
<xsl:for-each select="marc:datafield[@tag=800 or @tag=810 or @tag=811 or @tag=830]">
<xsl:choose>
- <xsl:when test="marc:subfield[@code='w']">
+ <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
<a href="/cgi-bin/koha/catalogue/search.pl?q=rcn:{marc:subfield[@code='w']}">
<xsl:call-template name="chopPunctuation">
<xsl:with-param name="chopString">
<xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">at</xsl:with-param>
+ <xsl:with-param name="codes">a_t</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</a>
</xsl:when>
<xsl:otherwise>
- <a href="/cgi-bin/koha/catalogue/search.pl?q=se:{marc:subfield[@code='a']}">
+ <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
<xsl:call-template name="chopPunctuation">
<xsl:with-param name="chopString">
<xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">at</xsl:with-param>
+ <xsl:with-param name="codes">a_t</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
<!-- $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"
--- /dev/null
+<?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>
+-->
+
<?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">
<xsl:template name="datafield">
<xsl:param name="tag"/>
<?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">
<!-- 8/19/04: ntra added "marc:" prefix to datafield element -->
<xsl:template name="datafield">
<xsl:otherwise><xsl:value-of select="$chopString"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
+
<xsl:stylesheet version="1.0" xmlns:marc="http://www.loc.gov/MARC21/slim" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc">
<xsl:import href="MARC21slimUtils.xsl"/>
<xsl:output method="xml" indent="yes"/>
<metaInformation>
<scenarios/><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
</metaInformation>
--->
\ No newline at end of file
+-->
--- /dev/null
+<?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>
--- /dev/null
+<?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>
+-->
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-
+
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
+
<xsl:stylesheet version="1.0"
xmlns:marc="http://www.loc.gov/MARC21/slim"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="marc">
- <xsl:import href="MARC21slimUtils.xsl"/>
- <xsl:output method="xml" indent="yes"/>
- <xsl:template match="/">
- <xsl:if test="marc:collection">
- <oai_dc:dcCollection xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
- <xsl:for-each select="marc:collection">
- <xsl:for-each select="marc:record">
- <oai_dc:dc>
- <xsl:apply-templates select="."/>
- </oai_dc:dc>
- </xsl:for-each>
- </xsl:for-each>
- </oai_dc:dcCollection>
- </xsl:if>
- <xsl:if test="marc:record">
- <oai_dc:dc
- xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
- <xsl:apply-templates/>
- </oai_dc:dc>
- </xsl:if>
- </xsl:template>
- <xsl:template match="marc:record">
- <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:for-each select="marc:datafield[@tag=200]">
- <dc:title>
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">a</xsl:with-param>
- </xsl:call-template>
- </dc:title>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=700]|marc:datafield[@tag=701]|marc:datafield[@tag=702]|marc:datafield[@tag=710]|marc:datafield[@tag=711]|marc:datafield[@tag=712]">
- <dc:creator>
- <xsl:value-of select="marc:subfield[@code='a']"/>
- <xsl:if test="marc:subfield[@code='b']">,
- <xsl:value-of select="marc:subfield[@code='b']"/>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="marc:subfield[@code='4']='010'">, adapter</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='020'">, annotator</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='075'">, author of afterword</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='080'">, prefacer</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='100'">, bibliographic antecedent</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='205'">, collaborator</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='212'">, commentator</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='220'">, compiler</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='230'">, composer</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='245'">, conceptor</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='295'">, degree-grantor</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='340'">, editor</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='370'">, film editor</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='395'">, founder</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='440'">, illustrator</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='520'">, lyricist</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='557'">, organiser of meeting</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='570'">, other</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='600'">, photographer</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='605'">, presenter</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='650'">, publisher</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='651'">, publishing director</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='673'">, research team head</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='675'">, reviewer</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='710'">, redactor</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='723'">, sponsor</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='727'">, thesis advisor</xsl:when>
- <xsl:when test="marc:subfield[@code='4']='730'">, translator</xsl:when>
- </xsl:choose>
- </dc:creator>
- </xsl:for-each>
- <dc:type>
- <xsl:value-of select="marc:datafield[@tag=200]/marc:subfield[@code='b']"/>
- </dc:type>
- <xsl:for-each select="marc:datafield[@tag=210]/marc:subfield[@code='c']">
- <dc:publisher>
- <xsl:value-of select="."/>
- </dc:publisher>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=210]/marc:subfield[@code='d']">
- <dc:date>
- <xsl:value-of select="."/>
- </dc:date>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=101]/marc:subfield[@code='a']">
- <dc:language>
- <xsl:value-of select="."/>
- </dc:language>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=856]/marc:subfield[@code='q']">
- <dc:format>
- <xsl:value-of select="."/>
- </dc:format>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=520]">
- <dc:description>
- <xsl:value-of select="marc:subfield[@code='a']"/>
- </dc:description>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=521]">
- <dc:description>
- <xsl:value-of select="marc:subfield[@code='a']"/>
- </dc:description>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[300<@tag][@tag<=345]">
- <dc:description>
- <xsl:value-of select="marc:subfield[@code='a']"/>
- </dc:description>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=600]|marc:datafield[@tag=601]|marc:datafield[@tag=602]|marc:datafield[@tag=604]|marc:datafield[@tag=605]|marc:datafield[@tag=606]">
- <dc:subject>
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">abcdq</xsl:with-param>
- </xsl:call-template>
- </dc:subject>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=752]">
- <dc:coverage>
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">abcd</xsl:with-param>
- </xsl:call-template>
- </dc:coverage>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=530]">
- <dc:relation type="original">
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">abcdu</xsl:with-param>
- </xsl:call-template>
- </dc:relation>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=461]|marc:datafield[@tag=464]">
- <dc:relation>
- <xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">t</xsl:with-param>
- </xsl:call-template>
- </dc:relation>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=856]">
- <dc:identifier>
- <xsl:value-of select="marc:subfield[@code='u']"/>
- </dc:identifier>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=010]">
- <dc:identifier>
- <xsl:text>URN:ISBN:</xsl:text>
- <xsl:value-of select="marc:subfield[@code='a']"/>
- </dc:identifier>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=011]">
- <dc:identifier>
- <xsl:text>URN:ISSN:</xsl:text>
- <xsl:value-of select="marc:subfield[@code='a']"/>
- </dc:identifier>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=090]">
- <dc:identifier>
- <xsl:text>http://opac.mylibrary.org/bib/</xsl:text>
- <xsl:value-of select="marc:subfield[@code='a']"/>
- </dc:identifier>
- </xsl:for-each>
- <xsl:for-each select="marc:datafield[@tag=995]">
- <dc:identifier>
- <xsl:text>LOC:</xsl:text>
- <xsl:choose>
- <xsl:when test="marc:subfield[@code='c']='MAIN'">Main Branch</xsl:when>
- <xsl:when test="marc:subfield[@code='c']='BIB2'">Library 2</xsl:when>
- </xsl:choose>
- <xsl:foreach select="marc:subfield[@code='k']">
- <xsl:text>:</xsl:text>
- <xsl:value-of select="."/>
- </xsl:foreach>
- </dc:identifier>
- </xsl:for-each>
- </xsl:template>
+ <xsl:import href="MARC21slimUtils.xsl"/>
+ <xsl:output method="xml" indent="yes"/>
+ <xsl:template match="/">
+ <xsl:if test="marc:collection">
+ <oai_dc:dcCollection xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
+ <xsl:for-each select="marc:collection">
+ <xsl:for-each select="marc:record">
+ <oai_dc:dc>
+ <xsl:apply-templates select="."/>
+ </oai_dc:dc>
+ </xsl:for-each>
+ </xsl:for-each>
+ </oai_dc:dcCollection>
+ </xsl:if>
+ <xsl:if test="marc:record">
+ <oai_dc:dc
+ xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
+ <xsl:apply-templates/>
+ </oai_dc:dc>
+ </xsl:if>
+ </xsl:template>
+ <xsl:template match="marc:record">
+ <xsl:for-each select="marc:datafield[@tag=200]">
+ <dc:title>
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">a</xsl:with-param>
+ </xsl:call-template>
+ </dc:title>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=700]|marc:datafield[@tag=701]|marc:datafield[@tag=702]|marc:datafield[@tag=710]|marc:datafield[@tag=711]|marc:datafield[@tag=712]">
+ <dc:creator>
+ <xsl:value-of select="marc:subfield[@code='a']"/>
+ <xsl:if test="marc:subfield[@code='b']">
+ <xsl:text>, </xsl:text>
+ <xsl:value-of select="marc:subfield[@code='b']"/>
+ </xsl:if>
+ <xsl:choose>
+ <xsl:when test="marc:subfield[@code='4']='010'">, adapter</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='020'">, annotator</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='075'">, author of afterword</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='080'">, prefacer</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='100'">, bibliographic antecedent</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='205'">, collaborator</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='212'">, commentator</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='220'">, compiler</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='230'">, composer</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='245'">, conceptor</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='295'">, degree-grantor</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='340'">, editor</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='370'">, film editor</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='395'">, founder</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='440'">, illustrator</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='520'">, lyricist</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='557'">, organiser of meeting</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='570'">, other</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='600'">, photographer</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='605'">, presenter</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='650'">, publisher</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='651'">, publishing director</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='673'">, research team head</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='675'">, reviewer</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='710'">, redactor</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='723'">, sponsor</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='727'">, thesis advisor</xsl:when>
+ <xsl:when test="marc:subfield[@code='4']='730'">, translator</xsl:when>
+ </xsl:choose>
+ </dc:creator>
+ </xsl:for-each>
+ <dc:type>
+ <xsl:value-of select="marc:datafield[@tag=200]/marc:subfield[@code='b']"/>
+ </dc:type>
+ <xsl:for-each select="marc:datafield[@tag=210]/marc:subfield[@code='c']">
+ <dc:publisher>
+ <xsl:value-of select="."/>
+ </dc:publisher>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=210]/marc:subfield[@code='d']">
+ <dc:date>
+ <xsl:value-of select="."/>
+ </dc:date>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=101]/marc:subfield[@code='a']">
+ <dc:language>
+ <xsl:value-of select="."/>
+ </dc:language>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=856]/marc:subfield[@code='q']">
+ <dc:format>
+ <xsl:value-of select="."/>
+ </dc:format>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=520]">
+ <dc:description>
+ <xsl:value-of select="marc:subfield[@code='a']"/>
+ </dc:description>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=521]">
+ <dc:description>
+ <xsl:value-of select="marc:subfield[@code='a']"/>
+ </dc:description>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[300<@tag][@tag<=345]">
+ <dc:description>
+ <xsl:value-of select="marc:subfield[@code='a']"/>
+ </dc:description>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=600]|marc:datafield[@tag=601]|marc:datafield[@tag=602]|marc:datafield[@tag=604]|marc:datafield[@tag=605]|marc:datafield[@tag=606]">
+ <dc:subject>
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">abcdq</xsl:with-param>
+ </xsl:call-template>
+ </dc:subject>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=752]">
+ <dc:coverage>
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">abcd</xsl:with-param>
+ </xsl:call-template>
+ </dc:coverage>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=530]">
+ <dc:relation type="original">
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">abcdu</xsl:with-param>
+ </xsl:call-template>
+ </dc:relation>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=461]|marc:datafield[@tag=464]">
+ <dc:relation>
+ <xsl:call-template name="subfieldSelect">
+ <xsl:with-param name="codes">t</xsl:with-param>
+ </xsl:call-template>
+ </dc:relation>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=856]">
+ <dc:identifier>
+ <xsl:value-of select="marc:subfield[@code='u']"/>
+ </dc:identifier>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=010]">
+ <dc:identifier>
+ <xsl:text>URN:ISBN:</xsl:text>
+ <xsl:value-of select="marc:subfield[@code='a']"/>
+ </dc:identifier>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=011]">
+ <dc:identifier>
+ <xsl:text>URN:ISSN:</xsl:text>
+ <xsl:value-of select="marc:subfield[@code='a']"/>
+ </dc:identifier>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=090]">
+ <dc:identifier>
+ <xsl:text>http://opac.mylibrary.org/bib/</xsl:text>
+ <xsl:value-of select="marc:subfield[@code='a']"/>
+ </dc:identifier>
+ </xsl:for-each>
+ <xsl:for-each select="marc:datafield[@tag=995]">
+ <dc:identifier>
+ <xsl:text>LOC:</xsl:text>
+ <xsl:choose>
+ <xsl:when test="marc:subfield[@code='c']='MAIN'">Main Branch</xsl:when>
+ <xsl:when test="marc:subfield[@code='c']='BIB2'">Library 2</xsl:when>
+ </xsl:choose>
+ <xsl:foreach select="marc:subfield[@code='k']">
+ <xsl:text>:</xsl:text>
+ <xsl:value-of select="."/>
+ </xsl:foreach>
+ </dc:identifier>
+ </xsl:for-each>
+ </xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml"
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- identity transformation -->
<!-- Whenever you match any node or any attribute -->
<?xml version="1.0" encoding="UTF-8"?>
+<!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">
<xsl:output method="html"/>
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;
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;
}
}
#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;
}
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 {
}
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%;
}
}
#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;
}
padding : 0;
}
+div.lang{
+ float:left;
+}
+
#cartDetails,#cartUpdate,#holdDetails,#listsDetails {
background-color : #FFF;
border: 1px solid #739acf;
}
#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%;
}
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;
}
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 {
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 a:hover {
- color:#006699;
+
+.nav_results ul.pg_menu li span {
+ color : #B2B2B2;
}
-.nav_results ul.pg_menu li.left_results {
- margin-right:10px;
+
+.nav_results ul.pg_menu li.left_results a {
+ padding-left : 0;
}
-.nav_results ul.pg_menu li.right_results {
- margin-left:10px;
+
+.nav_results ul.pg_menu li a:hover {
}
.nav_results #listResults{
background-color : #FFF;
color : #333333;
font-family : arial, geneva, sans-serif;
- font-size : 12px;
+ font-size : 14px;
margin : 0px 0px 0px 0px;
}
border-left : 0px solid #CCCCCC;
margin : 3px 0px 5px 0px;
padding : 0px;
- width : 100%;
- height : 100%;
+ width : 99%;
}
td {
border-right : 1px solid #CCCCCC;
padding : 5px 5px 5px 5px;
vertical-align : top;
- width : 100%;
- height : 100%;
}
td:last-child {
border-right : 1px solid #CCCCCC;
font-weight : bold;
padding : 5px 5px 5px 5px;
- width: 100%;
- height : 100%;
}
th:last-child {
<link rel="stylesheet" type="text/css" href="[% themelang %]/lib/calendar/calendar-system.css"/>
<script type="text/javascript" src="[% themelang %]/lib/calendar/calendar.js"></script>
-<script type="text/javascript" src="[% themelang %]/lib/calendar/calendar-en.js"></script>
+<script type="text/javascript">
+// full day names
+Calendar._DN = new Array(_("Sunday"),_("Monday"),_("Tuesday"),_("Wednesday"),_("Thursday"),_("Friday"),_("Saturday"),_("Sunday"));
+// short day names
+Calendar._SDN = new Array(_("Sun"),_("Mon"),_("Tue"),_("Wed"),_("Thu"),_("Fri"),_("Sat"),_("Sun"));
+// First day of the week. "0" means display Sunday first, "1" means display
+// Monday first, etc.
+Calendar._FD = 1;
+// full month names
+Calendar._MN = new Array(_("January"),_("February"),_("March"),_("April"),_("May"),_("June"),_("July"),_("August"),_("September"),_("October"),_("November"),_("December"));
+// short month names
+Calendar._SMN = new Array(_("Jan"),_("Feb"),_("Mar"),_("Apr"),_("May"),_("Jun"),_("Jul"),_("Aug"),_("Sep"),_("Oct"),_("Nov"),_("Dec"));
+// tooltips
+Calendar._TT = {};
+Calendar._TT["INFO"] = _("About the calendar");
+
+Calendar._TT["ABOUT"] =
+_("Dhtml Date/Time Selector")+"\n" +
+"(c) dynarch.com 2002-2003\n" + // don't translate this this ;-)
+_("For latest version visit: http://dynarch.com/mishoo/calendar.epl")+"\n" +
+_("Distributed under GNU LGPL. See http://gnu.org/licenses/lgpl.html for details.") +
+"\n\n" +
+_("Date selection:")+"\n" +
+_("- Use the \xab, \xbb buttons to select year")+"\n" +
+_("- Use the " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " buttons to select month")+"\n" +
+_("- Hold mouse button on any of the above buttons for faster selection.");
+Calendar._TT["ABOUT_TIME"] = "\n\n" +
+_("Time selection:")+"\n" +
+_("- Click on any of the time parts to increase it")+"\n" +
+_("- or Shift-click to decrease it")+"\n" +
+_("- or click and drag for faster selection.");
+
+Calendar._TT["PREV_YEAR"] = _("Prev. year (hold for menu)");
+Calendar._TT["PREV_MONTH"] = _("Prev. month (hold for menu)");
+Calendar._TT["GO_TODAY"] = _("Go to Today");
+Calendar._TT["NEXT_MONTH"] = _("Next month (hold for menu)");
+Calendar._TT["NEXT_YEAR"] = _("Next year (hold for menu)");
+Calendar._TT["SEL_DATE"] = _("Select date");
+Calendar._TT["DRAG_TO_MOVE"] = _("Drag to move");
+Calendar._TT["PART_TODAY"] = _(" (today)");
+
+// the following is to inform that "%s" is to be the first day of week
+// %s will be replaced with the day name.
+Calendar._TT["DAY_FIRST"] = _("Display %s first");
+
+// This may be locale-dependent. It specifies the week-end days, as an array
+// of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1
+// means Monday, etc.
+Calendar._TT["WEEKEND"] = "0,6";
+
+Calendar._TT["CLOSE"] = _("Close");
+Calendar._TT["TODAY"] = _("Today");
+Calendar._TT["TIME_PART"] = _("(Shift-)Click or drag to change value");
+
+// date formats
+Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d";
+Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e";
+
+Calendar._TT["WK"] = _("wk");
+Calendar._TT["TIME"] = _("Time:");
+</script>
<script type="text/javascript" src="[% themelang %]/lib/calendar/calendar-setup.js"></script>
<script type="text/javascript">
//<![CDATA[
<div id="changelanguage" class="ft">
[% IF ( languages_loop && opaclanguagesdisplay ) %]
[% UNLESS ( one_language_enabled ) %]
- <strong>Languages: </strong>
+ <div class="lang"><strong>Languages: </strong></div>
[% FOREACH languages_loo IN languages_loop %]
+ <div class="lang">
[% IF ( languages_loo.group_enabled ) %]
[% IF ( languages_loo.plural ) %]
- <a id="show[% languages_loo.rfc4646_subtag %]" class="sublangs more" href="#">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]</a>
+ <a id="show[% languages_loo.rfc4646_subtag %]" class="sublangs more" href="#">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]</a>[% UNLESS ( loop.last ) %] | [% END %]
<div id="sub[% languages_loo.rfc4646_subtag %]">
<div class="bd"><ul>
[% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %]
[% END %]
[% END %]
[% END %]
- [% END %][% UNLESS ( loop.last ) %] | [% END %]
+ [% END %][% UNLESS ( loop.last || languages_loo.plural ) %] | [% END %]
+ </div>
[% END %]
[% END %]
[% END %]
[% 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 %]
--- /dev/null
+[% IF category_type == 'I' %]
+ [% surname %] [% IF othernames %] ([% othernames %]) [% END %]
+[% ELSE %]
+ [% firstname %] [% surname %]
+[% END %]
<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">
-[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › Details for: [% title |html %][% FOREACH subtitl IN subtitle %], [% subtitl.subfield %][% END %]
+[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › Details for: [% title |html %][% FOREACH subtitl IN subtitle %], [% subtitl.subfield |html %][% END %]
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/JavaScript" language="JavaScript">
[% IF ( OPACXSLTDetailsDisplay ) %]
[% XSLTBloc %]
[% ELSE %]
- <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield %] [% END %]</span>[% END %]</h1>
+ <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
[% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
<span class="results_summary">[% UNLESS ( item_level_itypes ) %]
[% IF ( MARCAUTHORS ) %]
<span class="results_summary"><span class="label">Authors:</span>
[% FOREACH MARCAUTHOR IN MARCAUTHORS %]
- [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% MARCAUTHOR_SUBFIELDS_LOO.separator %]<a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">[% MARCAUTHOR_SUBFIELDS_LOO.value %]</a>[% END %]
+ [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% MARCAUTHOR_SUBFIELDS_LOO.separator %]<a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">[% MARCAUTHOR_SUBFIELDS_LOO.value %]</a>[% END %]
[% UNLESS ( loop.last ) %]|
[% END %]
[% END %]
[% IF ( review.your_comment ) %]
<div class="commentline yours" id="c[% review.reviewid %]">
[% IF ( review.avatarurl ) %]
- <img class="avatar" src="[% review.avatarurl %]" height="80" width="80"/>
+ <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
[% END %]
<h5>
Your Comment
</h5>
<small>[% review.datereviewed %]</small>
<p>
- [% review.review %]
+ [% FILTER html_break %]
+ [% review.review |html %]
+ [% END %]
<a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
</p></div>
[% ELSE %]
<div class="commentline">
[% IF ( ShowReviewer ) %]
[% IF ( review.avatarurl ) %]
- <img class="avatar" src="[% review.avatarurl %]" height="80" width="80"/>
+ <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
[% END %]
<h5>
Comment by
[% END %]
<small>[% review.datereviewed %]</small>
<p>
- [% review.review %]
+ [% FILTER html_break %]
+ [% review.review |html %]
+ [% END %]
</p></div>
[% END %]
[% END %]
<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">
[% INCLUDE 'masthead.inc' %]
<div id="yui-main">
- <div class="yui-b">
+ <div class="yui-b"><div class="yui-g" id="usermessaging">
[% FOREACH BORROWER_INF IN BORROWER_INFO %]
<h3><a href="/cgi-bin/koha/opac-user.pl">[% BORROWER_INF.firstname %] [% BORROWER_INF.surname %]'s account</a> <img src="[% themelang %]../../images/caret.gif" width="16" height="16" alt=">" border="0" /> Your Messaging Settings</h3>
</form>
</div>
</div>
+</div>
<div class="yui-b">
<div id="leftmenus" class="container">
[% INCLUDE 'navigation.inc' IsPatronPage=1 %]
[% IF ( rss2 ) %]
<rss version="2.0"
xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title><![CDATA[[% LibraryName |html %] Search [% IF ( query_desc ) %]for '[% query_desc |html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc |html %]'[% END %]]]></title>
<link>[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&format=rss2</link>
- <atom:link rel="self" type="application/rss+xml" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&format=rss2" />
+ <atom:link rel="self" type="application/rss+xml" href="[% OPACBaseurl %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&sort_by=[% sort_by |html %]&format=rss2"/>
<description><![CDATA[ Search results [% IF ( query_desc ) %]for '[% query_desc |html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc |html %]'[% END %] at [% LibraryName |html %]]]></description>
<opensearch:totalResults>[% total %]</opensearch:totalResults>
<opensearch:startIndex>[% offset %]</opensearch:startIndex>
[% ELSE %]
<opensearch:itemsPerPage>20</opensearch:itemsPerPage>
[% END %]
- <atom:link rel="search" type="application/opensearchdescription+xml" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?format=opensearchdescription"/>
- <opensearch:Query role="request" searchTerms="[% query_desc |html %] [% limit_desc |html %]" startPage="[% page %]" />
[% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
+ <atom:link rel="search" type="application/opensearchdescription+xml" href="[% SEARCH_RESULT.OPACBaseurl %]/cgi-bin/koha/opac-search.pl?[% SEARCH_RESULT.query_cgi |html %][% SEARCH_RESULT.limit_cgi |html %]&sort_by=[% SEARCH_RESULT.sort_by |html %]&format=opensearchdescription"/>
+ <opensearch:Query role="request" searchTerms="[% SEARCH_RESULT.query_desc |url %][% SEARCH_RESULT.limit_desc |url %]" startPage="[% SEARCH_RESULT.page %]" />
<item>
<title>[% SEARCH_RESULT.title |html %] [% FOREACH subtitl IN SEARCH_RESULT.subtitle %], [% subtitl.subfield |html %][% END %]</title>
- <isbn>[% SEARCH_RESULT.isbn |html %]</isbn>
+ <dc:identifier>ISBN [% SEARCH_RESULT.isbn |html %]</dc:identifier>
<link>[% IF ( SEARCH_RESULT.BiblioDefaultViewmarc ) %][% OPACBaseURL %]/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %][% ELSE %][% IF ( SEARCH_RESULT.BiblioDefaultViewisbd ) %][% OPACBaseURL %]/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %][% ELSE %][% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %][% END %][% END %]</link>
<description><![CDATA[
[% IF ( OPACAmazonEnabled ) %][% IF ( OPACAmazonCoverImages ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<img src="http://images.amazon.com/images/P/[% SEARCH_RESULT.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" />[% END %][% END %][% END %]
-
-[% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( SEARCH_RESULT.content_identifier_exists ) %][% IF ( using_https ) %]<img src="https://secure.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% SEARCH_RESULT.normalized_upc %]&oclc=[% SEARCH_RESULT.normalized_oclc %]" alt="" />
+[% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( SEARCH_RESULT.content_identifier_exists ) %]<img src="http://www.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn %]/SC.GIF&client=[% SEARCH_RESULT.SyndeticsClientCode %]&type=xw10[% IF ( SEARCH_RESULT.normalized_upc ) %]&upc=[% SEARCH_RESULT.normalized_upc %][% END %][% IF ( SEARCH_RESULT.normalized_oclc ) %]&oclc=[% SEARCH_RESULT.normalized_oclc %][% END %]" alt="" />
[% ELSE %]
<img src="http://www.syndetics.com/index.aspx?isbn=[% SEARCH_RESULT.normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% SEARCH_RESULT.normalized_upc %]&oclc=[% SEARCH_RESULT.normalized_oclc %]" alt="" />
-[% END %][% END %][% END %][% END %]
+[% END %][% END %][% END %]
[% IF ( BakerTaylorEnabled ) %][% IF ( SEARCH_RESULT.normalized_isbn ) %]<a href="https://[% BakerTaylorBookstoreURL |html %][% SEARCH_RESULT.normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% SEARCH_RESULT.normalized_isbn %]" /></a>[% END %][% END %]
<p>[% IF ( SEARCH_RESULT.author ) %]By [% SEARCH_RESULT.author |html %]. [% END %]
[% IF ( SEARCH_RESULT.size ) %] [% SEARCH_RESULT.size |html %]. [% END %]
[% IF ( SEARCH_RESULT.isbn ) %] [% SEARCH_RESULT.isbn |html %][% END %] </p><p>
[% IF ( RequestOnOpac ) %]
-<a href="[% OPACBaseURL %]/cgi-bin/koha/opac-reserve.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Place Hold on <i>[% SEARCH_RESULT.title |html %]</i></a></p>
+<a href="[% SEARCH_RESULT.OPACBaseurl %]/cgi-bin/koha/opac-reserve.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]">Place Hold on <i>[% SEARCH_RESULT.title %]</i></a></p>
[% END %]
]]></description>
<guid>[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% SEARCH_RESULT.biblionumber %]</guid>
<opensearch:itemsPerPage>20</opensearch:itemsPerPage>
[% END %]
<opensearch:Query role="request" searchTerms="[% query_desc |html %] [% limit_desc |html %]" startPage="[% page |html %]" />
- <link rel="alternate" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]pw=[% page %]" type="text/html"/>
+ <link rel="alternate" href="[% OPACBaseurl %]/cgi-bin/koha/opac-search.pl?[% query_cgi %][% limit_cgi %]pw=[% page %]&format=atom" type="application/atom+xml"/>
<link rel="self" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi %][% limit_cgi %]&format=atom" type="application/atom+xml"/>
<link rel="first" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi %][% limit_cgi %]pw=1&format=atom" type="application/atom+xml"/>
<link rel="previous" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi %][% limit_cgi %]pw=2&format=atom" type="application/atom+xml"/>
<link rel="next" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi %][% limit_cgi %]pw=4&format=atom" type="application/atom+xml"/>
- <link rel="last" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]pw=42299&format=atom" type="application/atom+xml"/>
+ <link rel="last" href="[% OPACBaseurl %]/cgi-bin/koha/opac-search.pl?[% query_cgi %][% limit_cgi %]pw=42299&format=atom" type="application/atom+xml"/>
<link rel="search" type="application/opensearchdescription+xml" href="[% OPACBaseURL %]/cgi-bin/koha/opac-search.pl?format=opensearchdescription"/>
[% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %]
[% 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 %]
[% 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 %]
[% IF ( LibraryThingForLibrariesID ) %]<div class="ltfl_reviews"></div>[% END %]
[% IF ( opacuserlogin ) %][% IF ( TagsEnabled ) %]
[% IF ( TagsShowOnList ) %]
+ <div class="results_summary">
[% IF ( SEARCH_RESULT.TagLoop.size ) %]
- <div class="results_summary">
<span class="label">Tags:</span>
<ul style="display: inline; list-style: none;">[% FOREACH TagLoo IN SEARCH_RESULT.TagLoop %]<li style="display: inline; list-style: none;"><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term %]</a> <span class="weight">([% TagLoo.weight_total %])</span></li>
[% END %]
[% IF ( TagsInputOnList ) %]
[% IF ( loggedinusername ) %]
<form name="tagform[% SEARCH_RESULT.biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl">
- <label for="newtag[% SEARCH_RESULT.biblionumber %]">New tag:</label>
+ <span class="label">New tag:</span>
<input name="newtag[% SEARCH_RESULT.biblionumber %]" id="newtag[% SEARCH_RESULT.biblionumber %]" maxlength="100" />
<input name="tagbutton" class="tagbutton" title="[% SEARCH_RESULT.biblionumber %]" type="submit" value="Add" />
</form>
[% IF ( subscription_LOO.periodicity7 ) %]
3 months
[% END %]
+ [% IF ( subscription_LOO.periodicity13 ) %]
+ 4 months
+ [% END %]
[% IF ( subscription_LOO.periodicity8 ) %]
quarter
[% END %]
$("a.print").show();
[% IF ( opacuserlogin ) %][% IF ( RequestOnOpac ) %]$("#placehold").html("<a href=\"#\" class=\"hold tag_hides\">"+_('Place Hold')+"<\/a>");
- $("a.hold").click(function(){
+ $("#toolbar a.hold").click(function(){
holdSelections();
return false;
});[% END %][% END %]
$("#addtags").html("<a id=\"tagsel_tag\" href=\"#\">"+_("Tag")+"<\/a> |");
$(".tagbutton").click(KOHA.Tags.add_tag_button);
- [% IF ( TagsInputOnList ) %]
[% IF ( loggedinusername ) %]
$("#tagsel_tag").click(function(){
tagSelected();
return false;
});
[% END %]
- [% END %]
[% END %][% END %][% END %]
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
});
[% END %][% ELSE %]This record has no items.[% END %]</span>
[% END %]
[% IF ( TagsEnabled ) %]
- [% IF ( TagsShowOnList ) %]
- [% IF ( itemsloo.TagLoop ) %]
- <div class="results_summary">
- <span class="label">Tags:</span>
- <ul style="display: inline; list-style: none;">[% FOREACH TagLoo IN itemsloo.TagLoop %]<li style="display: inline; list-style: none;"><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term %]</a> <span class="weight">([% TagLoo.weight_total %])</span></li>
- [% END %]
- </ul>
- [% END %]
+ [% IF ( TagsShowOnList ) %]
+ [% IF ( itemsloo.TagLoop.size ) %]
+ <div class="results_summary">
+ <span class="label">Tags:</span>
+ <ul style="display: inline; list-style: none;">[% FOREACH TagLoo IN itemsloo.TagLoop %]<li style="display: inline; list-style: none;"><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term %]</a> <span class="weight">([% TagLoo.weight_total %])</span></li>
+ [% END %]
+ </ul>
+ </div>
+ [% END %]
+ [% END %]
[% IF ( TagsInputOnList ) %]
[% IF ( loggedinusername ) %]
<form name="tagform[% itemsloo.biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl">
[% ELSIF ( loop.first ) %]<span class="tagstatus" id="login4tags">Log in to add tags.</span>
[% END %]
[% END %]
- [% IF ( itemsloo.TagLoop ) %]
- </div>[% END %]
+ [% IF ( loggedinusername ) %]
+ <span id="newtag[% itemsloo.biblionumber %]_status" class="tagstatus" style="display:none;">Tag status here.</span>
+ [% END %]
[% END %]
- [% END %]
<span class="results_summary actions"><span class="label">Actions:</span>
[% IF ( RequestOnOpac ) %]
</div>
[% IF ( OpacNav||loggedinusername ) %]
<div class="yui-b">
- <div is="leftmenus" class="container">
+ <div id="leftmenus" class="container">
[% INCLUDE 'navigation.inc' IsPatronPage=1 %]
</div>
</div>
<div id="bd">
[% INCLUDE 'masthead.inc' %]
<div id="yui-main">
- <div class="yui-b"><div id="usershowreviews" class="container">
+ <div id="usershowreviews" class="container">
<div id="recentcomments" class="searchresults">
<h3>Recent comments</h3>
<table>
[% ELSE %]<a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber |url %]#comments" title="View details for this title">
[% END %]
[% END %]
- [% IF ( review.title ) %][% review.title |html %][% ELSE %]No title[% END %] [% FOREACH subtitl IN review.subtitle %] [% subtitl.subfield %][% END %]</a>
+ [% IF ( review.title ) %][% review.title %][% ELSE %]No title[% END %] [% FOREACH subtitl IN review.subtitle %] [% subtitl.subfield |html %][% END %]</a>
[% IF ( review.author ) %]by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% review.author |url %]" title="Search for works by this author" class="author">[% review.author %]</a></p>
[% END %]
<p>
<p class="commentline[% IF ( review.your_comment ) %] yours[% END %]">
[% IF ( review.avatarurl ) %]
- <img class="avatar" src="[% review.avatarurl %]" height="40" width="40"/>
+ <img class="avatar" src="[% review.avatarurl %]" height="40" width="40" alt="" />
[% END %]
+ [% FILTER html_break %]
[% review.review |html %]
+ [% END %]
<span style="font-size:87%;font-color:#CCC;">Added [% review.datereviewed %] [% IF ( review.your_comment ) %] by <strong>you</strong>[% ELSE %]
[% IF ( ShowReviewer ) %] by
[% review.firstname %] [% review.surname %][% END %][% END %]</span></p>
</td>
<td>
- <a class="p1" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber %]">
-
[% IF ( review.BiblioDefaultViewmarc ) %]<a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% review.biblionumber |url %]" title="View details for this title">
[% ELSE %]
[% IF ( review.BiblioDefaultViewisbd ) %]<a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% review.biblionumber |url %]" title="View details for this title">
</div>
</div>
</div>
-</div>
[% IF ( OpacNav ) %]
<div class="yui-b"><div id="leftmenus" class="container">
[% INCLUDE 'navigation.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › Library Home for
[% FOREACH BORROWER_INF IN BORROWER_INFO %]
- [% BORROWER_INF.firstname %] [% BORROWER_INF.surname %]
+ [% INCLUDE 'patron-title.inc' category_type = BORROWER_INF.category_type firstname = BORROWER_INF.firstname surname = BORROWER_INF.surname othernames = BORROWER_INF.othernames cardnumber = BORROWER_INF.cardnumber %]
[% END %]
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.metadata.min.js"></script>
});
$("#overduest").tablesorter();
[% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
- [% IF ( OpacRenewalAllowed ) %][% IF ( canrenew ) %]$("#renewselected").submit(function(){
+ [% IF ( OpacRenewalAllowed && canrenew && !userdebarred ) %]$("#renewselected").submit(function(){
valid = false;
$("input[type=checkbox]").each(function(){
if($(this).is(':checked')){
$("#renewall_link").live('click',function(){
$("#renewall").submit();
});
- $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");[% END %][% END %]
+ $("#checkoutst caption").append("<div id=\"renewcontrols\"><a id=\"renewselected_link\" href=\"#\">"+_("Renew selected")+"</a> <a id=\"renewall_link\" href=\"#\">"+_("Renew all")+"</a></div>");[% END %]
});
//]]>
</script>
</div>
[% END %]
[% FOREACH BORROWER_INF IN BORROWER_INFO %]
- <h2>Hello, [% BORROWER_INF.firstname %] [% BORROWER_INF.surname %] <span class="hint">(<a href="/cgi-bin/koha/opac-main.pl?logout.x=1">Click here</a> if you're not [% BORROWER_INF.title %] [% BORROWER_INF.firstname %] [% BORROWER_INF.surname %])</span></h2>
+ <h2>Hello, [% INCLUDE 'patron-title.inc' category_type = BORROWER_INF.category_type firstname = BORROWER_INF.firstname surname = BORROWER_INF.surname othernames = BORROWER_INF.othernames cardnumber = BORROWER_INF.cardnumber %]
+ <span class="hint">(<a href="/cgi-bin/koha/opac-main.pl?logout.x=1">Click here</a> if you're not
+ [% BORROWER_INF.title %] [% INCLUDE 'patron-title.inc' category_type = BORROWER_INF.category_type firstname = BORROWER_INF.firstname surname = BORROWER_INF.surname othernames = BORROWER_INF.othernames cardnumber = BORROWER_INF.cardnumber %])
+ </span></h2>
[% IF ( patronupdate ) %]<div class="dialog message"><h3>Thank you!</h3><p>Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.</p></div>[% END %]
[% IF ( BORROWER_INF.flagged ) %]
<div class="dialog alert">
<ul>
- [% IF ( BORROWER_INF.debarred ) %]
- <li><strong>Please note:</strong> Your account has been frozen. Usually the reason for freezing an account is old overdues or damage fees.If <a href="/cgi-bin/koha/opac-user.pl">your account page</a> shows your account to be clear, please contact the library.</li>
+ [% IF ( userdebarred ) %]
+ <li><strong>Please note:</strong> Your account has been frozen[% IF ( BORROWER_INF.userdebarreddate ) %] until [% BORROWER_INF.userdebarreddate %][% END %][% IF ( BORROWER_INF.debarredcomment ) %] with the comment "[% BORROWER_INF.debarredcomment %]"[% END %]. Usually the reason for freezing an account is old overdues or damage fees. If <a href="/cgi-bin/koha/opac-user.pl">your account page</a> shows your account to be clear, please contact the library.</li>
[% END %]
[% IF ( BORROWER_INF.gonenoaddress ) %]
<li><strong>Please note:</strong> According to our records, we don't have up-to-date [% UNLESS ( BORROWER_INF.OPACPatronDetails ) %]<a href="/cgi-bin/koha/opac-userupdate.pl">contact information</a>[% ELSE %]contact information[% END %] on file. Please contact the library[% IF ( BORROWER_INF.OPACPatronDetails ) %] or use the <a href="/cgi-bin/koha/opac-userupdate.pl">online update form</a> to submit current information (<em>Please note:</em> there may be a delay in restoring your account if you submit online)[% END %].</li>
</tr>
[% END %]</tbody>
</table>
- [% IF ( canrenew ) %]
- [% IF ( OpacRenewalAllowed ) %]
+ [% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %]
<input type="submit" value="Renew Selected" />
[% END %]
- [% END %]
</form>
- [% IF ( OpacRenewalAllowed ) %]
- [% IF ( canrenew ) %]
+ [% IF ( canrenew && !userdebarred && OpacRenewalAllowed ) %]
<form id="renewall" action="/cgi-bin/koha/opac-renew.pl" method="post">
<input type="hidden" name="from" value="opac_user" />
<input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
[% UNLESS patron_flagged %]<input type="submit" value="Renew All" />[% END %]
</form>
[% END %]
- [% END %]
[% ELSE %]
<table>
<tr><td>You have nothing checked out</td></tr>
-[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %][% ELSE %]Koha Online[% END %] Catalog › Updating Details for [% FOREACH BORROWER_INF IN BORROWER_INFO %][% BORROWER_INF.firstname %] [% BORROWER_INF.surname %][% END %]
+[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %][% ELSE %]Koha Online[% END %] Catalog › Updating Details for
+[% FOREACH BORROWER_INF IN BORROWER_INFO %]
+ [% INCLUDE 'patron-title.inc' category_type = BORROWER_INF.category_type firstname = BORROWER_INF.firstname surname = BORROWER_INF.surname othernames = BORROWER_INF.othernames cardnumber = BORROWER_INF.cardnumber %]
+[% END %]
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="opac-userupdate">
<div id="userupdatecontainer" class="container">
[% FOREACH BORROWER_INF IN BORROWER_INFO %]
-<h3><a href="/cgi-bin/koha/opac-user.pl">[% BORROWER_INF.firstname %] [% BORROWER_INF.surname %]'s account</a> <img src="[% themelang %]../../images/caret.gif" width="16" height="16" alt=">" border="0" /> Your Personal Details</h3>
+<h3><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' ifirstname = BORROWER_INF.firstname surname = BORROWER_INF.surname othernames = BORROWER_INF.othernames cardnumber = BORROWER_INF.cardnumber %]'s account</a> <img src="[% themelang %]../../images/caret.gif" width="16" height="16" alt=">" border="0" /> Your Personal Details</h3>
[% IF ( OPACPatronDetails ) %]
<form action="/cgi-bin/koha/opac-userupdate.pl" method="get">
<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:if test="marc:subfield[@code='h']">
<xsl:text> </xsl:text>
<xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">b</xsl:with-param>
+ <xsl:with-param name="codes">h</xsl:with-param>
</xsl:call-template>
</xsl:if>
- <xsl:if test="marc:subfield[@code='h']">
+ <xsl:if test="marc:subfield[@code='b']">
<xsl:text> </xsl:text>
<xsl:call-template name="subfieldSelect">
- <xsl:with-param name="codes">h</xsl:with-param>
+ <xsl:with-param name="codes">b</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:text> </xsl:text>
<span class="results_summary series"><span class="label">Series: </span>
<!-- 440 -->
<xsl:for-each select="marc:datafield[@tag=440]">
- <a href="/cgi-bin/koha/opac-search.pl?q=se:{marc:subfield[@code='a']}">
+ <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
<xsl:call-template name="chopPunctuation">
<xsl:with-param name="chopString">
<xsl:call-template name="subfieldSelect">
<!-- 490 Series not traced, Ind1 = 0 -->
<xsl:for-each select="marc:datafield[@tag=490][@ind1!=1]">
- <a href="/cgi-bin/koha/opac-search.pl?q=se:{marc:subfield[@code='a']}">
+ <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
<xsl:call-template name="chopPunctuation">
<xsl:with-param name="chopString">
<xsl:call-template name="subfieldSelect">
<xsl:if test="marc:datafield[@tag=490][@ind1=1]">
<xsl:for-each select="marc:datafield[@tag=800 or @tag=810 or @tag=811 or @tag=830]">
<xsl:choose>
- <xsl:when test="marc:subfield[@code='w']">
+ <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
<a href="/cgi-bin/koha/opac-search.pl?q=rcn:{marc:subfield[@code='w']}">
<xsl:call-template name="chopPunctuation">
<xsl:with-param name="chopString">
</a>
</xsl:when>
<xsl:otherwise>
- <a href="/cgi-bin/koha/opac-search.pl?q=se:{marc:subfield[@code='a']}">
+ <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
<xsl:call-template name="chopPunctuation">
<xsl:with-param name="chopString">
<xsl:call-template name="subfieldSelect">
<?xml version="1.0" encoding="UTF-8"?>
+<!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">
<xsl:output method="html"/>
<xsl:when test="position()=last()"><xsl:text> </xsl:text></xsl:when><xsl:otherwise><br /></xsl:otherwise></xsl:choose>
</xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
<?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">
<xsl:template name="datafield">
<xsl:param name="tag"/>
<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
+
<!-- $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"
<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
+
<!-- $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"
<?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">
<xsl:template name="datafield">
<xsl:param name="tag"/>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-
+
+<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
push @pm, 'upgrade_pm' if $upgrade || $all;
push @pm, 'current_pm' if $installed || $all;
-print color 'bold white' if $color;
+print color 'bold blue' if $color;
print"
Installed Required Module is
Module Name Version Version Required
}
}
}
-print color 'bold white' if $color;
+print color 'bold blue' if $color;
my $footer = "
--------------------------------------------------------------------------------------------
Total modules reported: $count ";
}
print $footer;
+print color 'reset' if $color;
1;
use strict;
sub kohaversion {
- our $VERSION = '3.06.00.000';
+ our $VERSION = '3.07.00.007';
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install
#!/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;
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;
# setup select menus for selecting layout and template for this run...
$referer = $ENV{'HTTP_REFERER'};
$referer =~ s/^.*?:\/\/.*?(\/.*)$/$1/m;
- @batch_ids = grep{my $id = $_; $id = {batch_id => $id}} @batch_ids;
- @label_ids = grep{my $id = $_; $id = {label_id => $id}} @label_ids;
- @item_numbers = grep{my $number=$_; $number = {item_number => $number}} @item_numbers;
+ @batch_ids = map{{batch_id => $_}} @batch_ids;
+ @label_ids = map{{label_id => $_}} @label_ids;
+ @item_numbers = map{{item_number => $_}} @item_numbers;
$templates = get_all_templates(field_list => 'template_id, template_code', filter => 'creator = "Labels"');
$layouts = get_all_layouts(field_list => 'layout_id, layout_name', filter => 'creator = "Labels"');
$output_formats = get_output_formats();
# 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
-#
+# You should have received a copy of the GNU General Public License along
+# 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;
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;
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;
finesview => 1,
firstname => $data->{'firstname'},
surname => $data->{'surname'},
+ othernames => $data->{'othernames'},
borrowernumber => $borrowernumber,
cardnumber => $data->{'cardnumber'},
categorycode => $data->{'categorycode'},
category_type => $data->{'category_type'},
- categoryname => $data->{'description'},
+ categoryname => $data->{'description'},
address => $data->{'address'},
address2 => $data->{'address2'},
city => $data->{'city'},
foreach (@field_check) {
$template->param( "mandatory$_" => 1);
}
+# function to designate unwanted fields
+my $check_BorrowerUnwantedField=C4::Context->preference("BorrowerUnwantedField");
+@field_check=split(/\|/,$check_BorrowerUnwantedField);
+foreach (@field_check) {
+ next unless m/\w/o;
+ $template->param( "no$_" => 1);
+}
$template->param( "add" => 1 ) if ( $op eq 'add' );
$template->param( "duplicate" => 1 ) if ( $op eq 'duplicate' );
$template->param( "checked" => 1 ) if ( defined($nodouble) && $nodouble eq 1 );
$newdata{$key} =~ s/\"/"/g unless $key eq 'borrowernotes' or $key eq 'opacnote';
}
}
+
+ ## Manipulate debarred
+ if ( $newdata{debarred} ) {
+ $newdata{debarred} = $newdata{datedebarred} ? $newdata{datedebarred} : "9999-12-31";
+ } elsif ( exists( $newdata{debarred} ) && !( $newdata{debarred} ) ) {
+ undef( $newdata{debarred} );
+ undef( $newdata{debarredcomment} );
+ } elsif ( exists( $newdata{debarredcomment} ) && $newdata{debarredcomment} eq "" ) {
+ undef( $newdata{debarredcomment} );
+ }
+
my $dateobject = C4::Dates->new();
my $syspref = $dateobject->regexp(); # same syspref format for all 3 dates
my $iso = $dateobject->regexp('iso'); #
}
my %flags = ( 'gonenoaddress' => ['gonenoaddress' ],
- 'lost' => ['lost'],
- 'debarred' => ['debarred']);
+ 'lost' => ['lost']);
my @flagdata;
$data{'surname'} =uc($data{'surname'} );
$data{'contactname'}=uc($data{'contactname'});
}
-foreach (qw(dateenrolled dateexpiry dateofbirth)) {
+
+$data{debarred} = C4::Overdues::CheckBorrowerDebarred($borrowernumber);
+$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{$_});
}
use C4::Biblio;
use C4::Reserves;
use C4::Branch; # GetBranchName
+use C4::Overdues qw/CheckBorrowerDebarred/;
use C4::Form::MessagingPreferences;
use C4::NewsChannels; #get slip news
use List::MoreUtils qw/uniq/;
### $category_type
-# in template <TMPL_IF name="I"> => instutitional (A for Adult& C for children)
-$template->param( $data->{'categorycode'} => 1 );
-
$debug and printf STDERR "dates (enrolled,expiry,birthdate) raw: (%s, %s, %s)\n", map {$data->{$_}} qw(dateenrolled dateexpiry dateofbirth);
foreach (qw(dateenrolled dateexpiry dateofbirth)) {
my $userdate = $data->{$_};
}
$data->{'IS_ADULT'} = ( $data->{'categorycode'} ne 'I' );
-for (qw(debarred gonenoaddress lost borrowernotes)) {
+for (qw(gonenoaddress lost borrowernotes)) {
$data->{$_} and $template->param(flagged => 1) and last;
}
+my $debar = CheckBorrowerDebarred($borrowernumber);
+if ($debar) {
+ $template->param( 'userdebarred' => 1, 'flagged' => 1 );
+ if ( $debar ne "9999-12-31" ) {
+ $template->param( 'userdebarreddate' => C4::Dates::format_date($debar) );
+ $template->param( 'debarredcomment' => $data->{debarredcomment} );
+ }
+}
+
$data->{'ethnicity'} = fixEthnicity( $data->{'ethnicity'} );
$data->{ "sex_".$data->{'sex'}."_p" } = 1;
$template->param(SMSnumber => defined $data->{'smsalertnumber'} ? $data->{'smsalertnumber'} : $data->{'mobile'});
}
+# in template <TMPL_IF name="I"> => instutitional (A for Adult, C for children)
+$template->param( $data->{'categorycode'} => 1 );
$template->param(
detailview => 1,
AllowRenewalLimitOverride => C4::Context->preference("AllowRenewalLimitOverride"),
CANDELETEUSER => $candeleteuser,
roaddetails => $roaddetails,
borrowernumber => $borrowernumber,
+ othernames => $data->{'othernames'},
categoryname => $data->{'description'},
reregistration => $reregistration,
branch => $branch,
title => $data->{'title'},
initials => $data->{'initials'},
surname => $data->{'surname'},
+ othernames => $data->{'othernames'},
borrowernumber => $borrowernumber,
limit => $limit,
firstname => $data->{'firstname'},
#!/usr/bin/perl
# Copyright 2000-2002 Katipo Communications
+# Parts copyright 2011 BibLibre
#
# This file is part of Koha.
#
my ( $loggedinuser, $cookie, $sessionID ) =
checkauth( $input, 0, $flagsrequired );
-my $destination = $input->param("destination") || '';
-my $cardnumber = $input->param("cardnumber");
my $borrowernumber = $input->param('borrowernumber');
-my $status = $input->param('status');
my $dbh = C4::Context->dbh;
my $sth =
- $dbh->prepare("Update borrowers set debarred = ? where borrowernumber = ?");
-$sth->execute( $status, $borrowernumber );
+ $dbh->prepare("Update borrowers set debarred = NULL where borrowernumber = ?");
+$sth->execute( $borrowernumber );
$sth->finish;
-if ( $destination eq "circ" ) {
- print $input->redirect(
- "/cgi-bin/koha/circ/circulation.pl?findborrower=".$cardnumber);
-}
-else {
- print $input->redirect(
- "/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber");
-}
+print $input->redirect(
+ "/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber");
# re-reregistration function to automatic calcul of date expiry
$dateexpiry = ExtendMemberSubscriptionTo( $borrowernumber );
} else {
- my $sth=$dbh->prepare("Update borrowers set debarred = ? where borrowernumber = ?");
- $sth->execute($status,$borrowernumber);
+ my $sth = $dbh->prepare("UPDATE borrowers SET debarred = ?, debarredcomment = '' WHERE borrowernumber = ?");
+ $sth->execute( $status, $borrowernumber );
$sth->finish;
}
}
use C4::Context;
use C4::Items;
+use C4::Circulation qw/LostItem/;
use Getopt::Long;
my $lost; # key=lost value, value=num days.
my ($charge, $verbose, $confirm, $quiet);
-my $endrange = 366; # FIXME hardcoded - don't deal with anything overdue by more than this num days.
+my $endrange = 366;
GetOptions(
'lost=s%' => \$lost,
'confirm' => \$confirm,
'verbose' => \$verbose,
'quiet' => \$quiet,
+ 'maxdays=s' => \$endrange
);
my $usage = << 'ENDUSAGE';
--confirm confirm. without this option, the script will report the number of affected items and
return without modifying any records.
+ --quiet suppress summary output.
+
+ --maxdays Specifies the end of the range of overdue days to deal with (defaults to 366). This
+ value is universal to all lost num days overdue passed.
+
examples :
$PERL5LIB/misc/cronjobs/longoverdue.pl --lost 30=1
Would set LOST=1 after 30 days (up to one year), but not charge the account.
printf ("Due %s: item %5s from borrower %5s to lost: %s\n", $row->{date_due}, $row->{itemnumber}, $row->{borrowernumber}, $lostvalue) if($verbose);
if($confirm) {
ModItem({ itemlost => $lostvalue }, $row->{'biblionumber'}, $row->{'itemnumber'});
- LostItem($row->{'itemnumber'}) if( $charge && $charge eq $lostvalue);
+ LostItem($row->{'itemnumber'}, undef, 'CHARGE FEE') if( $charge && $charge eq $lostvalue);
}
$count++;
}
+++ /dev/null
-#!/usr/bin/perl
-use strict;
-#use warnings; FIXME - Bug 2505
-use Carp;
-BEGIN {
- # find Koha's Perl modules
- # test carefully before changing this
- use FindBin;
- eval { require "$FindBin::Bin/../kohalib.pl" };
-}
-use C4::Context;
-use C4::Dates qw/format_date/;
-use Mail::Sendmail; # comment out if not doing e-mail notices
-use Getopt::Long;
-use C4::Circulation;
-# use C4::Members;
-# this module will notify only the mail case
-# Now it's only programmed for ouest provence, you can modify it for yourself
-# sub function for get all notifications are not sends
-sub GetNotifys {
-# my($branch) = @_;
- my $dbh = C4::Context->dbh;
- my $sth=$dbh->prepare("SELECT DISTINCT notifys.borrowernumber , borrowers.surname , borrowers.firstname , borrowers.title AS borrower_title , categories.category_type AS categorycode , borrowers.email , borrowers.contacttitle , borrowers.contactname , borrowers.contactfirstname ,
- notifys.notify_level , notifys.method
- FROM notifys,borrowers,categories WHERE (notifys.borrowernumber=borrowers.borrowernumber) AND (notifys.notify_send_date IS NULL) AND (borrowers.categorycode = categories.categorycode)");
-
- $sth->execute();
- my @getnotifys;
- my $i=0;
- while (my $data=$sth->fetchrow_hashref){
- $getnotifys[$i]=$data;
- $i++;
- }
- $sth->finish;
- return(@getnotifys);
-
-}
-
-sub GetBorrowerNotifys{
- my ($borrowernumber) = @_;
- my $dbh = C4::Context->dbh;
- my @getnotifys2;
- my $sth2=$dbh->prepare("SELECT notifys.itemnumber,notifys.notify_level,biblio.title ,itemtypes.description,
- issues.date_due
- FROM notifys,biblio,items,itemtypes,biblioitems,issues
- WHERE
- (items.itemnumber=notifys.itemnumber
- AND biblio.biblionumber=items.biblionumber)
- AND (itemtypes.itemtype=biblioitems.itemtype AND biblioitems.biblionumber=biblio.biblionumber)
- AND
- (notifys.borrowernumber=issues.borrowernumber AND notifys.itemnumber=issues.itemnumber)
- AND
- notifys.borrowernumber=?
- AND notify_send_date IS NULL");
- $sth2->execute($borrowernumber);
- my $j=0;
- while (my $data2=$sth2->fetchrow_hashref){
- $getnotifys2[$j]=$data2;
- $j++;
- }
- $sth2->finish;
- return(@getnotifys2);
-
-}
-
-sub GetOverduerules{
- my($category,$notify_level) = @_;
- my $dbh = C4::Context->dbh;
- my $sth=$dbh->prepare("SELECT letter".$notify_level.",debarred".$notify_level." FROM overduerules WHERE categorycode=?");
- $sth->execute($category);
- my (@overduerules)=$sth->fetchrow_array;
- $sth->finish;
- return(@overduerules);
-
-}
-
-sub GetLetter{
-
- my($letterid) = @_;
- my $dbh = C4::Context->dbh;
- my $sth=$dbh->prepare("SELECT title,content FROM letter WHERE code=?");
- $sth->execute($letterid);
- my (@getletter)=$sth->fetchrow_array;
- $sth->finish;
- return(@getletter);
-
-}
-
-sub UpdateBorrowerDebarred{
- my($borrowernumber) = @_;
- my $dbh = C4::Context->dbh;
- my $sth=$dbh->prepare("UPDATE borrowers SET debarred='1' WHERE borrowernumber=?");
- $sth->execute($borrowernumber);
- $sth->finish;
- return 1;
-}
-
-sub UpdateNotifySendDate{
- my($borrowernumber,$itemnumber,$notifyLevel) = @_;
- my $dbh = C4::Context->dbh;
- my $sth=$dbh->prepare("UPDATE notifys SET notify_send_date=now()
- WHERE borrowernumber=? AND itemnumber=? AND notify_send_date IS NULL AND notify_level=?");
- $sth->execute($borrowernumber,$itemnumber,$notifyLevel);
- $sth->finish;
- return 1;
-
-}
-
-# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-
-# work with get notifys
-my $smtpserver = 'smtp.yoursmtpserver'; # your smtp server (the server who sent mails)
-my $from = 'your@librarymailadress'; # all the mails sent to the borrowers will appear coming from here.
-
-
-# initiate file for wrong_mails
-my $outfile = 'wrong_mails.txt';
-open( OUT, ">$outfile" );
-binmode(OUT, 'utf8');
-
-my @getnofifys = GetNotifys();
-foreach my $num (@getnofifys) {
- my %notify;
-# if we have a method mail, we check witch mail letter we launch
- if ($num->{'method'} eq 'mail'){
- my ($letterid,$debarred) = GetOverduerules($num->{'categorycode'},$num->{'notify_level'});
-# now, we get the letter associated to letterid
- my($title,$content) = GetLetter($letterid);
- my $email = $num->{'email'};
- #my $email = 'alaurin@ouestprovence.fr';
- my $mailtitle = $title; # the title of the mails
-# Work with the adult category code
- if ($num->{'categorycode'} eq 'A') {
- # now deal with $content
- $content =~ s/\<<borrowers.title>\>/$num->{'borrower_title'}/g ;
- $content =~ s/\<<borrowers.surname>\>/$num->{'surname'}/g ;
- $content =~ s/\<<borrowers.firstname>\>/$num->{'firstname'}/g ;
-
- my @getborrowernotify=GetBorrowerNotifys($num->{'borrowernumber'});
- my $overdueitems;
- foreach my $notif(@getborrowernotify){
- my $date=format_date($notif->{'date_due'});
- if ($notif->{'notify_level'} eq $num->{'notify_level'}){
- $overdueitems .= " - <b>".$notif->{'title'}."</b>" ;
- $overdueitems .= " ( ".$notif->{'description'}." ) " ;
- $overdueitems .= "emprunté le :".$date;
- $overdueitems .= "<br>";
-
-# FIXME at this time, the program consider the mail is send (in notify_send_date) but with no real check must be improved , we don't know if the mail was really to a real adress, and if there is a problem, we don't know how to return the notification to koha...
- UpdateNotifySendDate($num->{'borrowernumber'},$notif->{'itemnumber'},$num->{'notify_level'});
-}
- }
- # if we don't have overdueitem replace content by nonotifys value, deal with it later
- if ($overdueitems){
- $content =~ s/\<<items.content>\>/$overdueitems/g;
- }
- else {
- $content = 'nonotifys';
- }
- }
-# Work with the child category code (we add the parents infos)
- if ($num->{'categorycode'} eq 'C') {
- $content =~ s/\<<borrowers.contacttitle>\>/$num->{'contacttitle'}/g ;
- $content =~ s/\<<borrowers.contactname>\>/$num->{'contactname'}/g ;
- $content =~ s/\<<borrowers.contactfirstname>\>/$num->{'contactfirstname'}/g ;
- $content =~ s/\<<borrowers.title>\>/$num->{'borrower_title'}/g ;
- $content =~ s/\<<borrowers.surname>\>/$num->{'surname'}/g ;
- $content =~ s/\<<borrowers.firstname>\>/$num->{'firstname'}/g ;
-
- my @getborrowernotify=GetBorrowerNotifys($num->{'borrowernumber'});
- my $overdueitems;
- foreach my $notif(@getborrowernotify){
- my $date=format_date($notif->{'date_due'});
-
- $overdueitems .= " - <b>".$notif->{'title'}."</b>" ;
- $overdueitems .= " ( ".$notif->{'description'}." ) " ;
- $overdueitems .= "emprunté le :".$date;
- $overdueitems .= "<br>";
-# FIXME at this time, the program consider the mail is send (in notify_send_date) but with no real check must be improved ...
- UpdateNotifySendDate($num->{'borrowernumber'},$notif->{'itemnumber'},$num->{'notify_level'});
- }
-
- if ($overdueitems){
- $content =~ s/\<<items.content>\>/$overdueitems/g;
- }
- else {
- $content = 'nonotifys';
- }
- }
-# initiate the send mail
-
-# decoding mailtitle for lisibility of mailtitle (bug with utf-8 values, so decoding it)
- utf8::decode($mailtitle);
-
- my $mailtext = $content;
- unshift @{$Mail::Sendmail::mailcfg{'smtp'}} , $smtpserver;
-# set your own mail server name here
- my %mail = ( To => $email,
- From => $from,
- Subject => $mailtitle,
- Message => $mailtext,
- 'content-type' => 'text/html; charset="utf-8"',
- );
- # if we don't have any content for the mail, we don't launch mail, but notify it in a file
- if ($mailtext ne 'nonotifys') {
- sendmail(%mail) or carp $Mail::Sendmail::error;
- }
- else {
- print OUT $email ;
- }
-
-# now deal with the debarred mode
-# if ($debarred eq 1) {
-# �ajouter : si le lecteur est en mode debarred, ajouter la fonction qui nous permettra cela
-# UpdateBorrowerDebarred($num->{'borrowernumber'});
-# }
- close(OUT);
- }
-}
@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";
our $csv_fh; # the filehandle to the CSV file.
if ( defined $csvfilename ) {
my $sep_char = C4::Context->preference('delimiter') || ',';
+ $sep_char = "\t" if ($sep_char eq 'tabulation');
$csv = Text::CSV_XS->new( { binary => 1 , sep_char => $sep_char } );
if ( $csvfilename eq '' ) {
$csv_fh = *STDOUT;
my $mindays = $overdue_rules->{"delay$i"}; # the notice will be sent after mindays days (grace period)
my $maxdays = (
$overdue_rules->{ "delay" . ( $i + 1 ) }
- ? $overdue_rules->{ "delay" . ( $i + 1 ) }
+ ? $overdue_rules->{ "delay" . ( $i + 1 ) } - 1
: ($MAX)
); # issues being more than maxdays late are managed somewhere else. (borrower probably suspended)
# <date> <itemcount> <firstname> <lastname> <address1> <address2> <address3> <city> <postcode>
my $borrower_sql = <<'END_SQL';
-SELECT COUNT(*), issues.borrowernumber, firstname, surname, address, address2, city, zipcode, country, email, MIN(date_due) as longest_issue
+SELECT distinct(issues.borrowernumber), firstname, surname, address, address2, city, zipcode, country, email
FROM issues,borrowers,categories
WHERE issues.borrowernumber=borrowers.borrowernumber
AND borrowers.categorycode=categories.categorycode
$borrower_sql .= ' AND borrowers.categorycode=? ';
push @borrower_parameters, $overdue_rules->{categorycode};
}
- $borrower_sql .= ' AND categories.overduenoticerequired=1
- GROUP BY issues.borrowernumber ';
+ $borrower_sql .= ' AND categories.overduenoticerequired=1 ';
if($triggered) {
- $borrower_sql .= ' HAVING TO_DAYS(NOW())-TO_DAYS(longest_issue) = ?';
+ $borrower_sql .= ' AND TO_DAYS(NOW())-TO_DAYS(date_due) = ?';
push @borrower_parameters, $mindays;
} else {
- $borrower_sql .= ' HAVING TO_DAYS(NOW())-TO_DAYS(longest_issue) BETWEEN ? and ? ' ;
+ $borrower_sql .= ' AND TO_DAYS(NOW())-TO_DAYS(date_due) BETWEEN ? and ? ' ;
push @borrower_parameters, $mindays, $maxdays;
}
$sth->execute(@borrower_parameters);
$verbose and warn $borrower_sql . "\n $branchcode | " . $overdue_rules->{'categorycode'} . "\n ($mindays, $maxdays)\nreturns " . $sth->rows . " rows";
- while ( my ($itemcount, $borrowernumber, $firstname, $lastname,
- $address1, $address2, $city, $postcode, $country, $email,
- $longest_issue ) = $sth->fetchrow )
+ while ( my ( $borrowernumber, $firstname, $lastname,
+ $address1, $address2, $city, $postcode, $country, $email
+ ) = $sth->fetchrow )
{
- $verbose and warn "borrower $firstname, $lastname ($borrowernumber) has $itemcount items triggering level $i.";
+ $verbose and warn "borrower $firstname, $lastname ($borrowernumber) has items triggering level $i.";
my $letter = C4::Letters::getletter( 'circulation', $overdue_rules->{"letter$i"} );
if ( $overdue_rules->{"debarred$i"} ) {
#action taken is debarring
- C4::Members::DebarMember($borrowernumber);
+ C4::Members::DebarMember($borrowernumber, '9999-12-31');
$verbose and warn "debarring $borrowernumber $firstname $lastname\n";
}
my @params = ($listall ? ( $borrowernumber , 1 , $MAX ) : ( $borrowernumber, $mindays, $maxdays ));
items => \@items,
substitute => { # this appears to be a hack to overcome incomplete features in this code.
bib => $branch_details->{'branchname'}, # maybe 'bib' is a typo for 'lib<rary>'?
- 'items.content' => $titles
+ 'items.content' => $titles,
+ 'count' => $itemcount,
}
}
);
$params->{'letter'} = C4::Letters::parseletter( $params->{'letter'}, 'biblio', $item->{'biblionumber'} );
$params->{'letter'} = C4::Letters::parseletter( $params->{'letter'}, 'biblioitems', $item->{'biblionumber'} );
$params->{'letter'} = C4::Letters::parseletter( $params->{'letter'}, 'items', $item->{'itemnumber'} );
+ $params->{'letter'} = C4::Letters::parseletter( $params->{'letter'}, 'issues', $item->{'itemnumber'} );
$params->{'letter'}->{'content'} =~ s/(<item>.*<\/item>)/$1\n$item_format/ if scalar(@{$params->{'items'}} > 0);
}
--- /dev/null
+#!/usr/bin/perl
+# This script implements a basic benchmarking and regression testing
+# utility for Koha
+
+use strict;
+use warnings;
+BEGIN {
+ # find Koha's Perl modules
+ # test carefully before changing this
+ use FindBin;
+ eval { require "$FindBin::Bin/kohalib.pl" };
+}
+
+use Getopt::Long;
+use HTTPD::Bench::ApacheBench;
+use LWP::UserAgent;
+use Data::Dumper;
+use HTTP::Cookies;
+use C4::Context;
+use C4::Debug;
+
+my ($help, $steps, $baseurl, $max_tries, $user, $password,$short_print);
+GetOptions(
+ 'help' => \$help,
+ 'steps:s' => \$steps,
+ 'url:s' => \$baseurl,
+ 'user:s' => \$user,
+ 'password:s' => \$password,
+ 'maxtries:s' => \$max_tries,
+ 'short' => \$short_print,
+);
+my $concurrency = 30;
+$max_tries=20 unless $max_tries;
+# if steps not provided, run all tests
+$steps='0123456789' unless $steps;
+
+# if short is set, we will only give number for direct inclusion on the wiki
+my $short_ms="|-\n|ON\n";
+my $short_psec="|-\n|ON\n";
+
+if ($help || !$baseurl || !$user || !$password) {
+ print <<EOF
+This script runs a benchmark of the staff interface. It benchmark 6 different pages:
+\t1- the staff main page
+\t2- the catalog detail page, with a random biblionumber
+\t3- the catalog search page, using a term retrieved from one of the 10 first title/author in the database
+\t4- the patron detail page, with a random borrowernumber
+\t5- the patron search page, searching for "Jean"
+\t6- the circulation itself, doing check-out and check-in of random items to random patrons
+
+\t0 all those tests at once
+parameters :
+\thelp = this screen
+\tsteps = which steps you want to run.
+\t\tDon't use it if you want to run all tests. enter 125 if you want to run tests 1, 2 and 5
+\t\tThe "all those tests at once" is numbered 0,and will run all tests previously run.
+\t\tIf you run only one step, it's useless to run the 0, you'll get the same result.
+\turl = the URL or your staff interface
+\tlogin = Koha login
+\tpassword = Koha password
+\tmaxtries = how many tries you want to do. Defaulted to 20
+
+SAMPLE : ./benchmark_staff.pl --url=http://yourstaff.org/cgi-bin/koha/ --user=test --password=test --steps=12
+
+EOF
+;
+exit;
+}
+
+
+# Authenticate via our handy dandy RESTful services
+# and grab a cookie
+my $ua = LWP::UserAgent->new();
+my $cookie_jar = HTTP::Cookies->new();
+my $cookie;
+$ua->cookie_jar($cookie_jar);
+my $resp = $ua->post( "$baseurl"."/svc/authentication" , {userid =>$user, password => $password} );
+if( $resp->is_success ) {
+ $cookie_jar->extract_cookies( $resp );
+ $cookie = $cookie_jar->as_string;
+ unless ($short_print) {
+ print "Authentication successful\n";
+ print "Auth:\n $resp->content" if $debug;
+ }
+}
+
+# remove some unnecessary garbage from the cookie
+$cookie =~ s/ path_spec; discard; version=0//;
+$cookie =~ s/Set-Cookie3: //;
+
+# Get some data to work with
+my $dbh=C4::Context->dbh();
+# grab some borrowernumbers
+my $sth = $dbh->prepare("select max(borrowernumber) from borrowers");
+$sth->execute;
+my ($borrowernumber_max) = $sth->fetchrow;
+my @borrowers;
+for (my $i=1;$i<=$max_tries;$i++) {
+ my $rand_borrowernumber = int(rand($borrowernumber_max)+1);
+ push @borrowers,"$baseurl/members/moremember.pl?borrowernumber=$rand_borrowernumber";
+}
+
+# grab some biblionumbers
+$sth = $dbh->prepare("select max(biblionumber) from biblio");
+$sth->execute;
+my ($biblionumber_max) = $sth->fetchrow;
+my @biblios;
+for (my $i=1;$i<=$max_tries;$i++) {
+ my $rand_biblionumber = int(rand($biblionumber_max)+1);
+ push @biblios,"$baseurl/catalogue/detail.pl?biblionumber=$rand_biblionumber";
+}
+
+# grab some title and author, for random search
+$sth = $dbh->prepare ("SELECT title, author FROM biblio LIMIT 10");
+$sth->execute;
+my ($title,$author);
+my @searchwords;
+while (($title,$author)=$sth->fetchrow) {
+ push @searchwords,split / /, $author;
+ push @searchwords,split / /, $title;
+}
+
+$sth = $dbh->prepare("select max(itemnumber) from items");
+$sth->execute;
+# find the biggest itemnumber
+my ($itemnumber_max) = $sth->fetchrow;
+
+$|=1;
+unless ($short_print) {
+ print "--------------\n";
+ print "Koha STAFF benchmarking utility\n";
+ print "--------------\n";
+ print "Benchmarking with $max_tries occurences of each operation and $concurrency concurrent sessions \n";
+}
+#
+# the global benchmark we do at the end...
+#
+my $b = HTTPD::Bench::ApacheBench->new;
+$b->concurrency( $concurrency );
+my $ro;
+#
+# STEP 1: mainpage : (very) low RDBMS dependency
+#
+if ($steps=~ /1/) {
+ my $b0 = HTTPD::Bench::ApacheBench->new;
+ $b0->concurrency( $concurrency ); my @mainpage;
+ unless ($short_print) {
+ print "Step 1: staff client main page ";
+ }
+ for (my $i=1;$i<=$max_tries;$i++) {
+ push @mainpage,"$baseurl/mainpage.pl";
+ }
+ my $run0 = HTTPD::Bench::ApacheBench::Run->new
+ ({ urls => \@mainpage,
+ cookies => [$cookie],
+ });
+ $b0->add_run($run0);
+ $b->add_run($run0);
+
+ # send HTTP request sequences to server and time responses
+ $ro = $b0->execute;
+ # calculate hits/sec
+ if ($short_print) {
+ $short_ms.= "|".$b0->total_time."\n";
+ $short_psec.="|".(int((1000*$b0->total_requests/$b0->total_time)*1000)/1000)."\n";
+ } else {
+ print ("\t".$b0->total_time."ms\t".(int((1000*$b0->total_requests/$b0->total_time)*1000)/1000)." pages/sec\n");
+ print "ALERT : ".$b0->total_responses_failed." failures\n" if $b0->total_responses_failed;
+ }
+} else {
+ print "Skipping step 1\n";
+}
+
+#
+# STEP 2: biblios
+#
+if ($steps=~ /2/) {
+ my $b1 = HTTPD::Bench::ApacheBench->new;
+ $b1->concurrency( $concurrency );
+
+ unless ($short_print) {
+ print "Step 2: catalog detail page ";
+ }
+ my $run1 = HTTPD::Bench::ApacheBench::Run->new
+ ({ urls => \@biblios,
+ cookies => [$cookie],
+ });
+ $b1->add_run($run1);
+ $b->add_run($run1);
+
+ # send HTTP request sequences to server and time responses
+ $ro = $b1->execute;
+ # calculate hits/sec
+ if ($short_print) {
+ $short_ms.= "|".$b1->total_time."\n";
+ $short_psec.="|".(int((1000*$b1->total_requests/$b1->total_time)*1000)/1000)."\n";
+ } else {
+ print ("\t".$b1->total_time."ms\t".(int((1000*$b1->total_requests/$b1->total_time)*1000)/1000)." biblios/sec\n");
+ print "ALERT : ".$b1->total_responses_failed." failures\n" if $b1->total_responses_failed;
+ }
+} else {
+ print "Skipping step 2\n";
+}
+#
+# STEP 3: search
+#
+if ($steps=~ /3/) {
+ my $b1 = HTTPD::Bench::ApacheBench->new;
+ $b1->concurrency( $concurrency );
+ unless ($short_print) {
+ print "Step 3: catalogue search ";
+ }
+ my @searches;
+ for (my $i=1;$i<=$max_tries;$i++) {
+ push @searches,"$baseurl/catalogue/search.pl?q=".@searchwords[int(rand(scalar @searchwords))];
+ }
+ my $run1 = HTTPD::Bench::ApacheBench::Run->new
+ ({ urls => \@searches,
+ cookies => [$cookie],
+ });
+ $b1->add_run($run1);
+ $b->add_run($run1);
+
+ # send HTTP request sequences to server and time responses
+ $ro = $b1->execute;
+ # calculate hits/sec
+ if ($short_print) {
+ $short_ms.= "|".$b1->total_time."\n";
+ $short_psec.="|".(int((1000*$b1->total_requests/$b1->total_time)*1000)/1000)."\n";
+ } else {
+ print ("\t".$b1->total_time."ms\t".(int((1000*$b1->total_requests/$b1->total_time)*1000)/1000)." biblios/sec\n");
+ print "ALERT : ".$b1->total_responses_failed." failures\n" if $b1->total_responses_failed;
+ }
+} else {
+ print "Skipping step 3\n";
+}
+#
+# STEP 4: borrowers
+#
+if ($steps=~ /4/) {
+ my $b2 = HTTPD::Bench::ApacheBench->new;
+ $b2->concurrency( $concurrency );
+ unless ($short_print) {
+ print "Step 5: patron detail page ";
+ }
+ my $run2 = HTTPD::Bench::ApacheBench::Run->new
+ ({ urls => \@borrowers,
+ cookies => [$cookie],
+ });
+ $b2->add_run($run2);
+ $b->add_run($run2);
+
+ # send HTTP request sequences to server and time responses
+ $ro = $b2->execute;
+ # calculate hits/sec
+ if ($short_print) {
+ $short_ms.= "|".$b2->total_time."\n";
+ $short_psec.="|".(int((1000*$b2->total_requests/$b2->total_time)*1000)/1000)."\n";
+ } else {
+ print ("\t".$b2->total_time."ms\t".(int((1000*$b2->total_requests/$b2->total_time)*1000)/1000)." borrowers/sec\n");
+ }
+} else {
+ print "Skipping step 4\n";
+}
+
+#
+# STEP 5: borrowers search
+#
+if ($steps=~ /5/) {
+ my $b2 = HTTPD::Bench::ApacheBench->new;
+ $b2->concurrency( $concurrency );
+ unless ($short_print) {
+ print "Step 5: patron search page ";
+ }
+ for (my $i=1;$i<=$max_tries;$i++) {
+ # print "$baseurl/members/moremember.pl?borrowernumber=$rand_borrowernumber\n";
+ push @borrowers,"$baseurl/members/member.pl?member=jean";
+ }
+ my $run2 = HTTPD::Bench::ApacheBench::Run->new
+ ({ urls => \@borrowers,
+ cookies => [$cookie],
+ });
+ $b2->add_run($run2);
+ $b->add_run($run2);
+
+ # send HTTP request sequences to server and time responses
+ $ro = $b2->execute;
+ if ($short_print) {
+ $short_ms.= "|".$b2->total_time."\n";
+ $short_psec.="|".(int((1000*$b2->total_requests/$b2->total_time)*1000)/1000)."\n";
+ } else {
+ print ("\t".$b2->total_time."ms\t".(int((1000*$b2->total_requests/$b2->total_time)*1000)/1000)." borrowers/sec\n");
+ }
+} else {
+ print "Skipping step 5\n";
+}
+
+#
+# STEP 6: issue (& then return) books
+#
+if ($steps=~ /6/) {
+ my $b3 = HTTPD::Bench::ApacheBench->new;
+ $b3->concurrency( $concurrency );
+ my $b4 = HTTPD::Bench::ApacheBench->new;
+ $b4->concurrency( $concurrency );
+
+ my @issues;
+ my @returns;
+ unless ($short_print) {
+ print "Step 6a circulation (checkouts) ";
+ }
+ $sth = $dbh->prepare("SELECT barcode FROM items WHERE itemnumber=?");
+ my $sth2 = $dbh->prepare("SELECT borrowernumber FROM borrowers WHERE borrowernumber=?");
+ for (my $i=1;$i<=$max_tries;$i++) {
+ my $rand_borrowernumber;
+ # check that the borrowernumber exist
+ until ($rand_borrowernumber) {
+ $rand_borrowernumber = int(rand($borrowernumber_max)+1);
+ $sth2->execute($rand_borrowernumber);
+ ($rand_borrowernumber) = $sth2->fetchrow;
+ }
+ # find a barcode & check it exists
+ my $rand_barcode;
+ until ($rand_barcode) {
+ my $rand_itemnumber = int(rand($itemnumber_max)+1);
+ $sth->execute($rand_itemnumber);
+ ($rand_barcode) = $sth->fetchrow();
+ }
+ push @issues,"$baseurl/circ/circulation.pl?borrowernumber=$rand_borrowernumber&barcode=$rand_barcode&issueconfirmed=1";
+ push @returns,"$baseurl/circ/returns.pl?barcode=$rand_barcode";
+ }
+ my $run3 = HTTPD::Bench::ApacheBench::Run->new
+ ({ urls => \@issues,
+ cookies => [$cookie],
+ });
+ $b3->add_run($run3);
+ $b->add_run($run3);
+
+ # send HTTP request sequences to server and time responses
+ $ro = $b3->execute;
+ # calculate hits/sec
+ if ($short_print) {
+ $short_ms.= "|".$b3->total_time."\n";
+ $short_psec.="|".(int((1000*$b3->total_requests/$b3->total_time)*1000)/1000)."\n";
+ } else {
+ print ("\t".$b3->total_time."ms\t".(int((1000*$b3->total_requests/$b3->total_time)*1000)/1000)." checkouts/sec\n");
+ }
+ unless ($short_print) {
+ print "Step 6b circulation (checkins) ";
+ }
+ my $run4 = HTTPD::Bench::ApacheBench::Run->new
+ ({ urls => \@returns,
+ cookies => [$cookie],
+ });
+ $b4->add_run($run4);
+ $b->add_run($run4);
+
+ # send HTTP request sequences to server and time responses
+ $ro = $b4->execute;
+ # calculate hits/sec
+ if ($short_print) {
+ $short_ms.= "|".$b4->total_time."\n";
+ $short_psec.="|".(int((1000*$b4->total_requests/$b4->total_time)*1000)/1000)."\n";
+ } else {
+ print ("\t".$b4->total_time."ms\t".(int((1000*$b4->total_requests/$b4->total_time)*1000)/1000)." checkins/sec\n");
+ }
+} else {
+ print "Skipping step 6\n";
+}
+
+if ($steps=~ /0/) {
+ unless ($short_print) {
+ print "all transactions at once ";
+ }
+ $ro = $b->execute;
+ if ($short_print) {
+ $short_ms.= "|".$b->total_time."\n";
+ $short_psec.="|".(int((1000*$b->total_requests/$b->total_time)*1000)/1000)."\n";
+ } else {
+ print ("\t".$b->total_time."ms\t".(int((1000*$b->total_requests/$b->total_time)*1000)/1000)." operations/sec\n");
+ }
+} else {
+ print "Skipping 'testing all transactions at once'\n (step 0)";
+}
+
+if ($short_print) {
+print $short_ms."\n=====\n".$short_psec."\n";
+}
$|=1;
my $dbh = C4::Context->dbh;
-my $sth=$dbh->prepare("select m.biblionumber,b.biblioitemnumber from biblio m left join biblioitems b on b.biblionumber=m.biblionumber");
+my $sth=$dbh->prepare("SELECT biblionumber, biblioitemnumber FROM biblioitems");
$sth->execute();
my $i=1;
sub MARCmodbiblionumber{
my ($biblionumber,$biblioitemnumber,$record)=@_;
+ return unless $record;
+
my ($tagfield,$biblionumtagsubfield) = &GetMarcFromKohaField("biblio.biblionumber","");
my ($tagfield2,$biblioitemtagsubfield) = &GetMarcFromKohaField("biblio.biblioitemnumber","");
$string=~s/\-//g;
$string = sprintf("%-*s",26, $string);
substr($string,9,6,"frey50");
- unless ($record->subfield(100,"a")){
+ unless ($record->subfield(100,"a") and length($record->subfield(100,"a")) == 26 ){
$record->insert_fields_ordered(MARC::Field->new(100,"","","a"=>$string));
}
if ($record->field(152)){
sub check_zebra_dirs {
my ($base) = shift() . '/';
my $needed_repairing = 0;
- my @dirs = ( '', 'key', 'register', 'shadow' );
+ my @dirs = ( '', 'key', 'register', 'shadow', 'tmp' );
foreach my $dir (@dirs) {
my $bdir = $base . $dir;
if (! -d $bdir) {
my @items = GetItemsInfo($record_number);
if (@items){
my $record = MARC::Record->new;
+ $record->encoding('UTF-8');
my @itemsrecord;
foreach my $item (@items){
my $record = Item2Marc($item, $record_number);
push @itemsrecord, $record->field($itemtag);
}
$record->insert_fields_ordered(@itemsrecord);
- my $itemsxml=$record->as_xml_record();
- my $searchstring = '<record>\n';
- my $index = index($itemsxml, '<record>\n', 0);
- $itemsxml = substr($itemsxml, $index + length($searchstring));
- $searchstring = '</record>';
- $marcxml = substr($marcxml, 0, index($marcxml, $searchstring));
- $marcxml .= $itemsxml;
+ my $itemsxml = $record->as_xml_record();
+ $marcxml =
+ substr($marcxml, 0, length($marcxml)-10) .
+ substr($itemsxml, index($itemsxml, "</leader>\n", 0) + 10);
}
}
if ( $marcxml ) {
exit;
}
my $rqbiblios=$dbh->prepare("SELECT biblionumber from biblioitems");
+my $rqitemnumber=$dbh->prepare("SELECT itemnumber, biblionumber from items where itemnumber = ? and biblionumber = ?");
+
$rqbiblios->execute;
$|=1;
while (my ($biblionumber)= $rqbiblios->fetchrow_array){
my $marcitem=MARC::Record->new();
$marcitem->encoding('UTF-8');
$marcitem->append_fields($itemfield);
- eval{ModItemFromMarc($marcitem,$biblionumber,$itemfield->subfield('9'));};
+
+
+ my $itemnum;
+ my @itemnumbers = $itemfield->subfield('9');
+ foreach my $itemnumber ( @itemnumbers ){
+ $rqitemnumber->execute($itemnumber, $biblionumber);
+ if( my $row = $rqitemnumber->fetchrow_hashref ){
+ $itemnum = $row->{itemnumber};
+ }
+ }
+
+ eval{
+ if($itemnum){
+ ModItemFromMarc($marcitem,$biblionumber,$itemnum)
+ }else{
+ die("$biblionumber");
+ }
+ };
print "\r$biblionumber";
if ($@){
- warn "$biblionumber : $@";
+ warn "Problem with : $biblionumber : $@";
warn $record->as_formatted;
}
}
Documentation Manager: Nicole C Engard <nengard@gmail.com>
Translation Manager: Frédéric Demians <frederic@tamil.fr>
QA Manager: Ian Walls <ian.walls@bywatersolutions.com>
-Bug Wranglers: MJ Ray, Marcel Roy, Paul Poulain, Mason James
+Bug Wranglers: MJ Ray, Marcel de Rooy, Paul Poulain, Mason James
Release Maintainer (3.4.x):
Chris Nighswonger <cnighswonger@foundations.edu>
#!/usr/bin/perl
+# This file is part of Koha.
+#
+# Copyright (C) 2007 LibLime
+# Parts Copyright BSZ 2011
+#
+# 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 this program; 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 warnings;
BEGIN {
# find Koha's Perl modules
# test carefully before changing this
$| = 1;
# command-line parameters
+my $encoding = "";
my $match_bibs = 0;
my $add_items = 0;
my $input_file = "";
my $no_replace ;
my $result = GetOptions(
+ 'encoding:s' => \$encoding,
'file:s' => \$input_file,
- 'match-bibs:s' => \$match_bibs,
+ 'match-bibs:s' => \$match_bibs,
'add-items' => \$add_items,
'no-replace' => \$no_replace,
'comment:s' => \$batch_comment,
'h|help' => \$want_help
);
+if ($encoding eq "") {
+ $encoding = "utf8";
+}
+
if (not $result or $input_file eq "" or $want_help) {
print_usage();
exit 0;
}
close IN;
- my $marc_flavor = C4::Context->preference('marcflavour');
-
print "... staging MARC records -- please wait\n";
my ($batch_id, $num_valid, $num_items, @import_errors) =
- BatchStageMarcRecords($marc_flavor, $marc_records, $input_file, $batch_comment, '', $add_items, 0,
+ BatchStageMarcRecords($encoding, $marc_records, $input_file, $batch_comment, '', $add_items, 0,
100, \&print_progress_and_commit);
print "... finished staging MARC records\n";
Parameters:
--file <file_name> name of input MARC bib file
+ --encoding <encoding> encoding of MARC records, default is utf8.
+ Other possible options are: MARC-8,
+ ISO_5426, ISO_6937, ISO_8859-1, EUC-KR
--match-bibs <match_id> use this option to match bibs
in the file with bibs already in
the database for future overlay.
$cmd = lc $cmd;
if ( $cmd =~ /create|install|update/ ) {
my $installer = LangInstaller->new( $lang, $pref );
+ if ( $cmd !~ /create/ && $lang && not $lang ~~ $installer->{langs} ) {
+ print "Unsupported language: $lang\n";
+ exit;
+ }
if ( $all ) {
usage() if $cmd eq 'create';
for my $lang ( @{$installer->{langs}} ) {
my $biblionumber = $query->param('biblionumber') || $query->param('bib');
+my $record = GetMarcBiblio($biblionumber);
+if ( ! $record ) {
+ print $query->redirect("/cgi-bin/koha/errors/404.pl"); # escape early
+ exit;
+}
+$template->param( biblionumber => $biblionumber );
+
+
+SetUTF8Flag($record);
+
+# XSLT processing of some stuff
+if (C4::Context->preference("OPACXSLTDetailsDisplay") ) {
+ $template->param( 'XSLTBloc' => XSLTParse4Display($biblionumber, $record, 'Detail', 'opac') );
+}
+
+
# We look for the busc param to build the simple paging from the search
my $session = get_session($query->cookie("CGISESSID"));
my %paging = (previous => {}, next => {});
$template->param( 'AllowOnShelfHolds' => C4::Context->preference('AllowOnShelfHolds') );
$template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) );
-my $record = GetMarcBiblio($biblionumber);
-if ( ! $record ) {
- print $query->redirect("/cgi-bin/koha/errors/404.pl");
- exit;
-}
-$template->param( biblionumber => $biblionumber );
-
-SetUTF8Flag($record);
-# XSLT processing of some stuff
-if (C4::Context->preference("OPACXSLTDetailsDisplay") ) {
- $template->param( 'XSLTBloc' => XSLTParse4Display($biblionumber, $record, 'Detail', 'opac') );
-}
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") );
# change back when ive fixed request.pl
# COinS format FIXME: for books Only
$template->param(
- ocoins => GetCOinSBiblio($biblionumber),
+ ocoins => GetCOinSBiblio($record),
);
my $libravatar_enabled = 0;
-eval 'use Libravatar::URL';
-if (!$@ and C4::Context->preference('ShowReviewer') and C4::Context->preference('ShowReviewerPhoto')) {
- $libravatar_enabled = 1;
+if ( C4::Context->preference('ShowReviewer') and C4::Context->preference('ShowReviewerPhoto')) {
+ eval {
+ require Libravatar::URL;
+ Libravatar::URL->import();
+ };
+ if (!$@ ) {
+ $libravatar_enabled = 1;
+ }
}
my $reviews = getreviews( $biblionumber, 1 );
# 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
-#
+# You should have received a copy of the GNU General Public License along
+# 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;
use C4::Context;
use C4::Members;
use C4::Branch; # GetBranches
+use C4::Overdues;
use C4::Debug;
# use Data::Dumper;
lost => 1
);
}
-if ( $borr->{debarred} && ($borr->{debarred} eq 1) ) {
+if ( CheckBorrowerDebarred($borrowernumber) ) {
$noreserves = 1;
$template->param(
message => 1,
my $cgi = new CGI;
BEGIN {
- if (C4::Context->preference('BakerTaylorEnabled')) {
- require C4::External::BakerTaylor;
- import C4::External::BakerTaylor qw(&image_url &link_url);
- }
+ if (C4::Context->preference('BakerTaylorEnabled')) {
+ require C4::External::BakerTaylor;
+ import C4::External::BakerTaylor qw(&image_url &link_url);
+ }
}
my ($template,$borrowernumber,$cookie);
my $format = $cgi->param("format") || '';
my $build_grouped_results = C4::Context->preference('OPACGroupResults');
if ($format =~ /(rss|atom|opensearchdescription)/) {
- $template_name = 'opac-opensearch.tmpl';
+ $template_name = 'opac-opensearch.tmpl';
}
elsif (@params && $build_grouped_results) {
$template_name = 'opac-results-grouped.tmpl';
}
elsif ((@params>=1) || ($cgi->param("q")) || ($cgi->param('multibranchlimit')) || ($cgi->param('limit-yr')) ) {
- $template_name = 'opac-results.tmpl';
+ $template_name = 'opac-results.tmpl';
}
else {
$template_name = 'opac-advsearch.tmpl';
}
if ($format eq 'rss2' or $format eq 'opensearchdescription' or $format eq 'atom') {
- $template->param($format => 1);
+ $template->param($format => 1);
$template->param(timestamp => strftime("%Y-%m-%dT%H:%M:%S-00:00", gmtime)) if ($format eq 'atom');
# FIXME - the timestamp is a hack - the biblio update timestamp should be used for each
# entry, but not sure if that's worth an extra database query for each bib
$template->param( 'OPACNoResultsFound' => C4::Context->preference('OPACNoResultsFound') );
if (C4::Context->preference('BakerTaylorEnabled')) {
- $template->param(
- BakerTaylorEnabled => 1,
- BakerTaylorImageURL => &image_url(),
- BakerTaylorLinkURL => &link_url(),
- BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'),
- );
+ $template->param(
+ BakerTaylorEnabled => 1,
+ BakerTaylorImageURL => &image_url(),
+ BakerTaylorLinkURL => &link_url(),
+ BakerTaylorBookstoreURL => C4::Context->preference('BakerTaylorBookstoreURL'),
+ );
}
if (C4::Context->preference('TagsEnabled')) {
- $template->param(TagsEnabled => 1);
- foreach (qw(TagsShowOnList TagsInputOnList)) {
- C4::Context->preference($_) and $template->param($_ => 1);
- }
+ $template->param(TagsEnabled => 1);
+ foreach (qw(TagsShowOnList TagsInputOnList)) {
+ C4::Context->preference($_) and $template->param($_ => 1);
+ }
}
## URI Re-Writing
my $advanced_search_types = C4::Context->preference("AdvancedSearchTypes");
if (!$advanced_search_types or $advanced_search_types eq 'itemtypes') {
- foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) {
- my %row =( number=>$cnt++,
- ccl => "$itype_or_itemtype,phr",
+ foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) {
+ my %row =( number=>$cnt++,
+ ccl => "$itype_or_itemtype,phr",
code => $thisitemtype,
selected => $selected,
description => $itemtypes->{$thisitemtype}->{'description'},
count5 => $cnt % 4,
imageurl=> getitemtypeimagelocation( 'opac', $itemtypes->{$thisitemtype}->{'imageurl'} ),
);
- $selected = 0; # set to zero after first pass through
- push @itemtypesloop, \%row;
- }
+ $selected = 0; # set to zero after first pass through
+ push @itemtypesloop, \%row;
+ }
} else {
my $advsearchtypes = GetAuthorisedValues($advanced_search_types, '', 'opac');
- for my $thisitemtype (@$advsearchtypes) {
- my %row =(
- number=>$cnt++,
- ccl => $advanced_search_types,
+ for my $thisitemtype (@$advsearchtypes) {
+ my %row =(
+ number=>$cnt++,
+ ccl => $advanced_search_types,
code => $thisitemtype->{authorised_value},
selected => $selected,
description => $thisitemtype->{'lib'},
count5 => $cnt % 4,
imageurl=> getitemtypeimagelocation( 'opac', $thisitemtype->{'imageurl'} ),
);
- push @itemtypesloop, \%row;
- }
+ push @itemtypesloop, \%row;
+ }
}
$template->param(itemtypeloop => \@itemtypesloop);
}
}
- $template->param(uc(C4::Context->preference("marcflavour")) => 1, # we already did this for UNIMARC
- advsearch => 1,
- search_boxes_loop => \@search_boxes_array);
-
-# use the global setting by default
- if ( C4::Context->preference("expandedSearchOption") == 1 ) {
- $template->param( expanded_options => C4::Context->preference("expandedSearchOption") );
- }
- # but let the user override it
- if (defined $cgi->param('expanded_options')) {
- if ( ($cgi->param('expanded_options') == 0) || ($cgi->param('expanded_options') == 1 ) ) {
- $template->param( expanded_options => $cgi->param('expanded_options'));
- }
+ $template->param(uc( C4::Context->preference("marcflavour")) => 1, # we already did this for UNIMARC
+ advsearch => 1,
+ search_boxes_loop => \@search_boxes_array);
+
+ # use the global setting by default
+ if ( C4::Context->preference("expandedSearchOption") == 1 ) {
+ $template->param( expanded_options => C4::Context->preference("expandedSearchOption") );
+ }
+ # but let the user override it
+ if (defined $cgi->param('expanded_options')) {
+ if ( ($cgi->param('expanded_options') == 0) || ($cgi->param('expanded_options') == 1 ) ) {
+ $template->param( expanded_options => $cgi->param('expanded_options'));
}
+ }
output_html_with_http_headers $cgi, $cookie, $template->output;
exit;
}
$j++;
}
}
-#
-
# Params that can have more than one value
# sort by is used to sort the query
my @results;
## I. BUILD THE QUERY
-my $lang = C4::Templates::getlanguagecookie($cgi);
+my $lang = C4::Templates::getlanguage($cgi, 'opac');
( $error,$query,$simple_query,$query_cgi,$query_desc,$limit,$limit_cgi,$limit_desc,$stopwords_removed,$query_type) = buildQuery(\@operators,\@operands,\@indexes,\@limits,\@sort_by, 0, $lang);
sub _input_cgi_parse ($) {
my @coins;
if ($tag) {
- $query_cgi = "tag=" .$tag . "&" . $query_cgi;
- my $taglist = get_tags({term=>$tag, approved=>1});
- $results_hashref->{biblioserver}->{hits} = scalar (@$taglist);
- my @biblist = (map {GetBiblioData($_->{biblionumber})} @$taglist);
- my @marclist = (map {$_->{marc}} @biblist );
- $DEBUG and printf STDERR "taglist (%s biblionumber)\nmarclist (%s records)\n", scalar(@$taglist), scalar(@marclist);
- $results_hashref->{biblioserver}->{RECORDS} = \@marclist;
- # FIXME: tag search and standard search should work together, not exclusively
- # FIXME: No facets for tags search.
+ $query_cgi = "tag=" .$tag . "&" . $query_cgi;
+ my $taglist = get_tags({term=>$tag, approved=>1});
+ $results_hashref->{biblioserver}->{hits} = scalar (@$taglist);
+ my @biblist = (map {GetBiblioData($_->{biblionumber})} @$taglist);
+ my @marclist = (map {$_->{marc}} @biblist );
+ $DEBUG and printf STDERR "taglist (%s biblionumber)\nmarclist (%s records)\n", scalar(@$taglist), scalar(@marclist);
+ $results_hashref->{biblioserver}->{RECORDS} = \@marclist;
+ # FIXME: tag search and standard search should work together, not exclusively
+ # FIXME: No facets for tags search.
}
elsif (C4::Context->preference('NoZebra')) {
eval {
@newresults = searchResults('opac', $query_desc, $hits, $results_per_page, $offset, $scan,
@{$results_hashref->{$server}->{"RECORDS"}},, C4::Context->preference('hidelostitems'));
}
- my $tag_quantity;
- if (C4::Context->preference('TagsEnabled') and
- $tag_quantity = C4::Context->preference('TagsShowOnList')) {
- foreach (@newresults) {
- my $bibnum = $_->{biblionumber} or next;
- $_->{itemsissued} = CountItemsIssued( $bibnum );
- $_ ->{'TagLoop'} = get_tags({biblionumber=>$bibnum, approved=>1, 'sort'=>'-weight',
- limit=>$tag_quantity });
- }
- }
- if (C4::Context->preference('COinSinOPACResults')) {
- foreach (@newresults) {
- $_->{coins} = GetCOinSBiblio($_->{'biblionumber'});
- }
- }
+
+ # must define a value for size if not present in DB
+ # in order to avoid problems generated by the default size value in TT
+ foreach my $line (@newresults) {
+ if ( not exists $line->{'size'} ) { $line->{'size'} = "" }
+ }
+
+ my $tag_quantity;
+ if (C4::Context->preference('TagsEnabled') and
+ $tag_quantity = C4::Context->preference('TagsShowOnList')) {
+ foreach (@newresults) {
+ my $bibnum = $_->{biblionumber} or next;
+ $_->{itemsissued} = CountItemsIssued( $bibnum );
+ $_ ->{'TagLoop'} = get_tags({biblionumber=>$bibnum, approved=>1, 'sort'=>'-weight',
+ limit=>$tag_quantity });
+ }
+ }
+ if (C4::Context->preference('COinSinOPACResults')) {
+ foreach (@newresults) {
+ my $record = GetMarcBiblio($_->{'biblionumber'});
+ $_->{coins} = GetCOinSBiblio($record);
+ }
+ }
- if ($results_hashref->{$server}->{"hits"}){
- $total = $total + $results_hashref->{$server}->{"hits"};
- }
- # Opac search history
- my $newsearchcookie;
- if (C4::Context->preference('EnableOpacSearchHistory')) {
- my @recentSearches;
-
- # Getting the (maybe) already sent cookie
- my $searchcookie = $cgi->cookie('KohaOpacRecentSearches');
- if ($searchcookie){
- $searchcookie = uri_unescape($searchcookie);
- if (thaw($searchcookie)) {
- @recentSearches = @{thaw($searchcookie)};
- }
- }
-
- # Adding the new search if needed
- if (!$borrowernumber || $borrowernumber eq '') {
- # To a cookie (the user is not logged in)
-
- if (($params->{'offset'}||'') eq '') {
-
- push @recentSearches, {
- "query_desc" => $query_desc || "unknown",
- "query_cgi" => $query_cgi || "unknown",
- "time" => time(),
- "total" => $total
- };
- $template->param(ShowOpacRecentSearchLink => 1);
- }
-
- shift @recentSearches if (@recentSearches > 15);
- # Pushing the cookie back
- $newsearchcookie = $cgi->cookie(
- -name => 'KohaOpacRecentSearches',
- # We uri_escape the whole freezed structure so we're sure we won't have any encoding problems
- -value => uri_escape(freeze(\@recentSearches)),
- -expires => ''
- );
- $cookie = [$cookie, $newsearchcookie];
- }
- else {
- # To the session (the user is logged in)
- if (($params->{'offset'}||'') eq '') {
- AddSearchHistory($borrowernumber, $cgi->cookie("CGISESSID"), $query_desc, $query_cgi, $total);
- $template->param(ShowOpacRecentSearchLink => 1);
- }
- }
- }
- ## If there's just one result, redirect to the detail page
+ if ($results_hashref->{$server}->{"hits"}){
+ $total = $total + $results_hashref->{$server}->{"hits"};
+ }
+
+ # Opac search history
+ my $newsearchcookie;
+ if (C4::Context->preference('EnableOpacSearchHistory')) {
+ my @recentSearches;
+
+ # Getting the (maybe) already sent cookie
+ my $searchcookie = $cgi->cookie('KohaOpacRecentSearches');
+ if ($searchcookie){
+ $searchcookie = uri_unescape($searchcookie);
+ if (thaw($searchcookie)) {
+ @recentSearches = @{thaw($searchcookie)};
+ }
+ }
+
+ # Adding the new search if needed
+ if (!$borrowernumber || $borrowernumber eq '') {
+ # To a cookie (the user is not logged in)
+ if (($params->{'offset'}||'') eq '') {
+ push @recentSearches, {
+ "query_desc" => $query_desc || "unknown",
+ "query_cgi" => $query_cgi || "unknown",
+ "time" => time(),
+ "total" => $total
+ };
+ $template->param(ShowOpacRecentSearchLink => 1);
+ }
+
+ shift @recentSearches if (@recentSearches > 15);
+ # Pushing the cookie back
+ $newsearchcookie = $cgi->cookie(
+ -name => 'KohaOpacRecentSearches',
+ # We uri_escape the whole freezed structure so we're sure we won't have any encoding problems
+ -value => uri_escape(freeze(\@recentSearches)),
+ -expires => ''
+ );
+ $cookie = [$cookie, $newsearchcookie];
+ }
+ else {
+ # To the session (the user is logged in)
+ if (($params->{'offset'}||'') eq '') {
+ AddSearchHistory($borrowernumber, $cgi->cookie("CGISESSID"), $query_desc, $query_cgi, $total);
+ $template->param(ShowOpacRecentSearchLink => 1);
+ }
+ }
+ }
+ ## If there's just one result, redirect to the detail page
if ($total == 1 && $format ne 'rss2'
- && $format ne 'opensearchdescription' && $format ne 'atom') {
+ && $format ne 'opensearchdescription' && $format ne 'atom') {
my $biblionumber=$newresults[0]->{biblionumber};
if (C4::Context->preference('BiblioDefaultView') eq 'isbd') {
print $cgi->redirect("/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=$biblionumber");
$template->param( PAGE_NUMBERS => \@page_numbers,
previous_page_offset => $previous_page_offset) unless $pages < 2;
$template->param(next_page_offset => $next_page_offset) unless $pages eq $current_page_number;
- }
+ }
# no hits
else {
$template->param(searchdesc => 1,query_desc => $query_desc,limit_desc => $limit_desc);
total => $total,
opacfacets => 1,
facets_loop => $facets,
- displayFacetCount=> C4::Context->preference('displayFacetCount')||0,
+ displayFacetCount=> C4::Context->preference('displayFacetCount')||0,
scan => $scan,
search_error => $error,
);
my $pubshelves = $session->param('pubshelves');
my $barshelves = $session->param('barshelves');
foreach my $shelf (@$pubshelves) {
- next if ( ($shelf->{'owner'} != ($borrowernumber ? $borrowernumber : -1)) && ($shelf->{'category'} < 3) );
- push (@addpubshelves, $shelf);
+ next if ( ($shelf->{'owner'} != ($borrowernumber ? $borrowernumber : -1)) && ($shelf->{'category'} < 3) );
+ push (@addpubshelves, $shelf);
}
if (@addpubshelves) {
- $template->param( addpubshelves => scalar (@addpubshelves));
- $template->param( addpubshelvesloop => \@addpubshelves);
+ $template->param( addpubshelves => scalar (@addpubshelves));
+ $template->param( addpubshelvesloop => \@addpubshelves);
}
if (defined $barshelves) {
- $template->param( addbarshelves => scalar (@$barshelves));
- $template->param( addbarshelvesloop => $barshelves);
+ $template->param( addbarshelves => scalar (@$barshelves));
+ $template->param( addbarshelvesloop => $barshelves);
}
my $content_type = ($format eq 'rss' or $format eq 'atom') ? $format : 'html';
template_name => "opac-sendbasketform.tmpl",
query => $query,
type => "opac",
- authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
+ authnotrequired => 0,
flagsrequired => { borrow => 1 },
}
);
template_name => "opac-sendshelfform.tmpl",
query => $query,
type => "opac",
- authnotrequired => 1,
+ authnotrequired => 0,
flagsrequired => { borrow => 1 },
}
);
}
my $libravatar_enabled = 0;
-eval 'use Libravatar::URL';
-if (!$@ and C4::Context->preference('ShowReviewer') and C4::Context->preference('ShowReviewerPhoto')) {
- $libravatar_enabled = 1;
+if ( C4::Context->preference('ShowReviewer') and C4::Context->preference('ShowReviewerPhoto')) {
+ eval {
+ require Libravatar::URL;
+ Libravatar::URL->import();
+ };
+ if ( !$@ ) {
+ $libravatar_enabled = 1;
+ }
}
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){
use C4::Members::AttributeTypes;
use C4::Members::Attributes qw/GetBorrowerAttributeValue/;
use C4::Output;
+use C4::Overdues qw/CheckBorrowerDebarred/;
use C4::Biblio;
use C4::Items;
use C4::Dates qw/format_date/;
}
$borr->{'ethnicity'} = fixEthnicity( $borr->{'ethnicity'} );
-if ( $borr->{'debarred'} || $borr->{'gonenoaddress'} || $borr->{'lost'} ) {
+my $debar = CheckBorrowerDebarred($borrowernumber);
+my $userdebarred;
+
+if ($debar) {
+ $userdebarred = 1;
+ $template->param( 'userdebarred' => $userdebarred );
+ if ( $debar ne "9999-12-31" ) {
+ $borr->{'userdebarreddate'} = C4::Dates::format_date($debar);
+ }
+}
+
+if ( $userdebarred || $borr->{'gonenoaddress'} || $borr->{'lost'} ) {
$borr->{'flagged'} = 1;
}
borrowernumber => $borrowernumber,
patron_flagged => $borr->{flagged},
OPACMySummaryHTML => (C4::Context->preference("OPACMySummaryHTML")) ? 1 : 0,
+ surname => $borr->{surname},
+ showname => $borr->{showname},
+
);
#get issued items ....
if ($issues){
foreach my $issue ( sort { $b->{'date_due'} cmp $a->{'date_due'} } @$issues ) {
# check for reserves
- my ( $restype, $res ) = CheckReserves( $issue->{'itemnumber'} );
+ my ( $restype, $res, undef ) = CheckReserves( $issue->{'itemnumber'} );
if ( $restype ) {
$issue->{'reserved'} = 1;
}
template_name => "opac-userupdate.tmpl",
query => $query,
type => "opac",
- authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
+ authnotrequired => 0,
flagsrequired => { borrow => 1 },
debug => 1,
}
# This code has been modified by Trendsetters (originally from opac-user.pl)
# This code has been modified by rch
# Parts Copyright 2010-2011, ByWater Solutions (those related to username/password auth)
+#
+# 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.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
# We're going to authenticate a self-check user. we'll add a flag to borrowers 'selfcheck'
#
# We're in a controlled environment; we trust the user.
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.
use C4::Auth;
use CGI;
use C4::Context;
-use HTML::Template::Pro;
use C4::Search;
use C4::Output;
use C4::Koha;
use C4::Auth;
use CGI;
use C4::Context;
-use HTML::Template::Pro;
use C4::Search;
use C4::Output;
use C4::Koha;
my $dbh = C4::Context->dbh;
my $branches=GetBranches();
my @branches;
+ my $default;
my @select_branch;
my %select_branches;
push @select_branch,"";
$select_branches{""} = "";
- foreach my $branch (keys %$branches) {
+ for my $branch (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{branchname} } keys %$branches) {
push @select_branch, $branch;
$select_branches{$branch} = $branches->{$branch}->{'branchname'};
+ $default = C4::Context->userenv->{'branch'} if (C4::Context->userenv && C4::Context->userenv->{'branch'});
}
my $CGIbranch=CGI::scrolling_list( -name => 'value',
-id => 'value',
-values => \@select_branch,
-labels => \%select_branches,
-size => 1,
- -multiple => 0 );
+ -multiple => 0,
+ -default => $default, );
$template->param(CGIbranch => $CGIbranch);
return $template;
}
FROM itemtypes,items
WHERE items.itype=itemtypes.itemtype
AND items.holdingbranch=?
- GROUP BY items.itype");
+ GROUP BY items.itype
+ ORDER BY itemtypes.description");
}
else {
WHERE biblioitems.itemtype=itemtypes.itemtype
AND items.biblioitemnumber=biblioitems.biblioitemnumber
AND items.holdingbranch=?
- GROUP BY biblioitems.itemtype");
+ GROUP BY biblioitems.itemtype
+ ORDER BY itemtypes.description");
}
$sth->execute($branch);
} else {
SELECT description,items.itype AS itemtype, COUNT(*) AS total
FROM itemtypes,items
WHERE items.itype=itemtypes.itemtype
- GROUP BY items.itype");
+ GROUP BY items.itype
+ ORDER BY itemtypes.description");
}
else {
$sth = $dbh->prepare("SELECT description, biblioitems.itemtype, COUNT(*) AS total
FROM itemtypes, biblioitems,items
WHERE biblioitems.itemtype=itemtypes.itemtype
AND biblioitems.biblioitemnumber = items.biblioitemnumber
- GROUP BY biblioitems.itemtype");
+ GROUP BY biblioitems.itemtype
+ ORDER BY itemtypes.description");
}
$sth->execute;
}
$globalline{loopitemtype} = \@results;
$globalline{total} = $grantotal;
$globalline{branch} = $branch;
+ $globalline{branchname} = GetBranchName($branch);
push @mainloop,\%globalline;
return \@mainloop;
}
);
my $op = $query->param('op') || '';
+my $status = $query->param('status') || 0;
my $reviewid = $query->param('reviewid');
+my $offset = $query->param('offset') || 0;
+my $count = C4::Context->preference('numSearchResults') || 20;
+my $total = numberofreviews($status);
if ( $op eq 'approve' ) {
approvereview($reviewid);
}
+elsif ( $op eq 'unapprove' ) {
+ unapprovereview($reviewid);
+}
elsif ( $op eq 'delete' ) {
deletereview($reviewid);
}
-my $reviews = getallreviews(0);
+my $reviews = getallreviews($status,$offset,$count);
foreach ( @$reviews ) {
my $borrowernumber = $_->{borrowernumber};
$_->{firstname} = $borrowerData->{'firstname'};
}
-$template->param( reviews => $reviews );
+my $url = "/cgi-bin/koha/reviews/reviewswaiting.pl?status=$status";
+
+$template->param(
+ status => $status,
+ reviews => $reviews,
+ pagination_bar => pagination_bar( $url, ( int( $total / $count ) ) + ( ( $total % $count ) > 0 ? 1 : 0 ), $offset, "offset" )
+);
output_html_with_http_headers $query, $cookie, $template->output;
print $query->redirect('/cgi-bin/koha/serials/serials-collection.pl?subscriptionid='.$subscriptionid);
}
+my $subscriptioncount;
my ($location, $callnumber);
if (@subscriptionid){
my @subscriptioninformation=();
@subscriptioninformation=(@$tmpsubscription,@subscriptioninformation);
}
$subscriptions=PrepareSerialsData(\@subscriptioninformation);
+ $subscriptioncount = CountSubscriptionFromBiblionumber($subscriptiondescs->[0]{'biblionumber'});
} else {
$subscriptiondescs = GetSubscriptionsFromBiblionumber($biblionumber) ;
my $subscriptioninformation = GetFullSubscriptionsFromBiblionumber($biblionumber);
chop $subscriptionidlist;
$template->param(
- onesubscription => (scalar(@$subscriptiondescs)==1),
subscriptionidlist => $subscriptionidlist,
biblionumber => $biblionumber,
subscriptions => $subscriptiondescs,
suggestion => C4::Context->preference("suggestion"),
virtualshelves => C4::Context->preference("virtualshelves"),
subscr=>$query->param('subscriptionid'),
+ subscriptioncount => $subscriptioncount,
location => $locationlib,
callnumber => $callnumber,
);
# get currencies and rates
my @rates = GetCurrencies();
my $count = scalar @rates;
+my $active_currency = GetCurrency();
+my $selected_currency;
+if ($$suggestion_ref{'currency'}) {
+ $selected_currency = $$suggestion_ref{'currency'};
+}
+else {
+ $selected_currency = $active_currency->{currency};
+}
my @loop_currency = ();
for ( my $i = 0 ; $i < $count ; $i++ ) {
my %line;
$line{currcode} = $rates[$i]->{'currency'};
$line{rate} = $rates[$i]->{'rate'};
- $line{selected} = 1 if ($$suggestion_ref{'currency'} && $line{'currcode'} eq $$suggestion_ref{'currency'});
+ $line{selected} = 1 if ($line{'currcode'} eq $selected_currency);
push @loop_currency, \%line;
}
--- /dev/null
+# Copyright 2010 Chris Cormack
+#
+# 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.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+use strict;
+use warnings;
+
+use Test::More;
+use File::Spec;
+use File::Find;
+use IO::File;
+
+my @files =('kohaversion.pl','installer/data/mysql/updatedatabase.pl');
+
+foreach my $file (@files){
+ next unless -f $file;
+ my @name_parts = File::Spec->splitpath($file);
+ my %dirs = map { $_ => 1 } File::Spec->splitdir($name_parts[1]);
+ next if exists $dirs{'.git'};
+
+ my $fh = IO::File->new($file, 'r');
+ my $xxx_found = 0;
+ my $line = 0;
+ while (<$fh>) {
+ $line++;
+ if (/XXX/i) {
+ #two lines are an exception for updatedatabase (routine SetVersion and TransferToNum)
+ next if $file=~ /updatedatabase/ && ( /s\/XXX\$\/999\/;/ || /\$_\[0\]=~ \/XXX\$\/;/ );
+ $xxx_found = 1;
+ last;
+ }
+ }
+ close $fh;
+ if ($xxx_found) {
+ fail("$file has no XXX in it");
+ diag("XXX found in line $line");
+ } else {
+ pass("$file has no XXX in it");
+ }
+}
+
+done_testing();
wanted => sub {
my $file = $_;
- return if $file =~ /\.(ico|jpg|gif|ogg|pdf|png|psd|swf|zip)$/;
+ return if $file =~ /\.(ico|jpg|gif|ogg|pdf|png|psd|swf|zip|.*\~)$/;
return unless -f $file;
my @name_parts = File::Spec->splitpath($file);
}
close $fh;
if ($marker_found) {
- fail("$file has no merge conflict markers");
- diag("marker found in line $line");
+ fail("$file contains merge conflict markers in line $line");
} else {
pass("$file has no merge conflict markers");
}
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';
use strict;
use warnings;
-use Test::More tests => 1;
+use Test::More tests => 2;
BEGIN {
use_ok('C4::AuthoritiesMarc::UNIMARC');
}
+my @test = C4::AuthoritiesMarc::UNIMARC::default_auth_type_location();
+ok(($test[0] == 152) && ($test[1] eq 'b'), "correct variables being returned");
use strict;
use warnings;
-use Test::More tests => 12;
+use Test::More tests => 13;
BEGIN { use_ok( 'C4::Boolean', qw( true_p ) ); }
is( true_p(undef), undef, 'recognizes undefined as not boolean' );
is( true_p('foo'), undef, 'recognizes \'foo\' as not boolean' );
+is( true_p([]), undef, 'recognizes a reference as not a boolean' );
+++ /dev/null
-#!/usr/bin/perl
-#
-# This Koha test module is a stub!
-# Add more tests here!!!
-
-use strict;
-use warnings;
-
-use Test::More tests => 1;
-
-BEGIN {
- use FindBin;
- use lib "$FindBin::Bin/../C4/SIP";
- use_ok('C4::SIP::ILS');
-}
-
use strict;
use warnings;
-use Test::More tests => 4;
+use Test::More tests => 8;
BEGIN {
use FindBin;
$date_time = Sip::timestamp('2011-01-12');
ok( $date_time eq '20110112 235900', 'Timestamp iso date string');
+my $myChecksum = Sip::Checksum::checksum("12345");
+my $checker = 65281;
+my $stringChecksum = Sip::Checksum::checksum("teststring");
+my $stringChecker = 64425;
+
+is( $myChecksum, $checker, "Checksum: $myChecksum matches expected output");
+is( $stringChecksum, $stringChecker, "Checksum: $stringChecksum matches expected output");
+
+my $testdata = "abcdAZ";
+my $something = Sip::Checksum::checksum($testdata);
+
+$something = sprintf("%4X", $something);
+ok( Sip::Checksum::verify_cksum($testdata.$something), "Checksum: $something is valid.");
+
+my $invalidTest = Sip::Checksum::verify_cksum("1234567");
+is($invalidTest, 0, "Checksum: 1234567 is invalid as expected");
use strict;
use warnings;
-use Test::More tests => 11;
+use Test::More tests => 19;
BEGIN {
use FindBin;
use lib $FindBin::Bin;
my ($scrubber,$html,$result,@types,$collapse);
$collapse = 1;
-@types = qw(comment tag);
+@types = qw(default comment tag staff);
$html = q|
<![CDATA[selfdestruct]]]>
<?php echo(" EVIL EVIL EVIL "); ?> <!-- COMMENT -->
print pretty_line('default'), $result, "\n", pretty_line();
foreach(@types) {
- ok($scrubber = C4::Scrubber->new($_), "Constructor: C4::Scrubber->new($_)");
+ ok($scrubber = C4::Scrubber->new($_), "testing Constructor: C4::Scrubber->new($_)");
ok(printf("# scrubber settings: default %s, comment %s, process %s\n",
$scrubber->default(),$scrubber->comment(),$scrubber->process()),
"Outputting settings from scrubber object (type: $_)"
$collapse and $result =~ s/\s*\n\s*/\n/g;
print pretty_line($_), $result, "\n", pretty_line();
}
+
+print "\n\n######################################################\nStart of invalid tests\n";
+
+#Test for invalid new entry
+eval{
+ C4::Scrubber->new("");
+ fail("test should fail on entry of ''\n");
+};
+pass("Test should have failed on entry of '' (empty string) and it did. YAY!\n");
+
+eval{
+ C4::Scrubber->new("Client");
+ fail("test should fail on entry of 'Client'\n");
+};
+pass("Test should have failed on entry of 'Client' and it did. YAY!\n");
+
+print "######################################################\n";
+
diag "done.\n";
--- /dev/null
+#!/usr/bin/perl
+#
+# This Koha test module is a stub!
+# Add more tests here!!!
+
+use strict;
+use warnings;
+use C4::TmplTokenType;
+use Test::More tests => 7;
+
+BEGIN {
+ use_ok('C4::TmplToken');
+}
+
+ok (my $token = C4::TmplToken->new('test',C4::TmplTokenType::TEXT,10,'/tmp/translate.txt'), "Create new");
+ok ($token->string eq 'test', "String works");
+ok ($token->type == C4::TmplTokenType::TEXT, "Token works");
+ok ($token->line_number == 10, "Line number works");
+ok ($token->pathname eq '/tmp/translate.txt', "Path works");
+
+
+ok ($token->text_p, "text_p works");
use warnings;
use C4::Auth;
use CGI;
-use Test::More tests => 8;
+use Test::More tests => 10;
BEGIN {
use_ok('C4::BackgroundJob');
$background->size("56");
is ($background->size, "56", "testing size");
+$background->finish("finished");
+is ($background->status,'completed', "testing finished");
+
+ok ($background->results); # Will return undef unless finished
\ No newline at end of file
#!/usr/bin/perl
-#
-# This Koha test module is a stub!
-# Add more tests here!!!
+
+# some simple tests of the elements of C4::External::BakerTaylor that do not require a valid username and password
use strict;
use warnings;
-use Test::More tests => 1;
+use Test::More tests => 9;
BEGIN {
use_ok('C4::External::BakerTaylor');
}
+# for testing, to avoid using C4::Context
+my $username="testing_username";
+my $password="testing_password";
+
+# taken from C4::External::BakerTaylor::initialize
+my $image_url = "http://contentcafe2.btol.com/ContentCafe/Jacket.aspx?UserID=$username&Password=$password&Options=Y&Return=T&Type=S&Value=";
+
+# test without initializing
+is( C4::External::BakerTaylor::image_url(), undef, "testing image url pre initilization");
+is( C4::External::BakerTaylor::link_url(), undef, "testing link url pre initilization");
+is( C4::External::BakerTaylor::content_cafe_url(""), undef, "testing content cafe url pre initilization");
+is( C4::External::BakerTaylor::http_jacket_link(""), undef, "testing http jacket link pre initilization");
+is( C4::External::BakerTaylor::availability(""), undef, "testing availability pre initilization");
+
+# intitialize
+C4::External::BakerTaylor::initialize($username, $password, "link_url");
+
+# testing basic results
+is( C4::External::BakerTaylor::image_url("aa"), $image_url."aa", "testing image url construction");
+is( C4::External::BakerTaylor::link_url("bb"), "link_urlbb", "testing link url construction");
+is( C4::External::BakerTaylor::content_cafe_url("cc"), "http://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=$username&Password=$password&Options=Y&ItemKey=cc", "testing content cafe url construction");
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;
my $FIRSTNAME = 'Marie';
my $SURNAME = 'Mcknight';
my $CATEGORYCODE = 'S';
-my $BRANCHCODE = 's';
+my $BRANCHCODE = 'CPL';
my $CHANGED_FIRSTNAME = "Marry Ann";
my $EMAIL = "Marie\@email.com";
'Test',
0,
);
-my $BRANCH_IDX = 5;
+my $BRANCH_IDX = 4;
C4::Context->_new_userenv ('DUMMY_SESSION_ID');
C4::Context->set_userenv ( @USERENV );
$constraint, $bibitems, $priority, $notes,
$title, $checkitem, $found);
-my ($status, $reserve) = CheckReserves($itemnumber, $barcode);
+my ($status, $reserve, $all_reserves) = CheckReserves($itemnumber, $barcode);
ok($status eq "Reserved", "CheckReserves Test 1");
-($status, $reserve) = CheckReserves($itemnumber);
+($status, $reserve, $all_reserves) = CheckReserves($itemnumber);
ok($status eq "Reserved", "CheckReserves Test 2");
-($status, $reserve) = CheckReserves(undef, $barcode);
+($status, $reserve, $all_reserves) = CheckReserves(undef, $barcode);
ok($status eq "Reserved", "CheckReserves Test 3");
--- /dev/null
+#!/usr/bin/perl
+#
+# This Koha test module is a stub!
+# Add more tests here!!!
+
+use strict;
+use warnings;
+
+use Test::More tests => 4;
+
+BEGIN {
+ use FindBin;
+ use lib "$FindBin::Bin/../../C4/SIP";
+ use_ok('C4::SIP::ILS');
+};
+
+my $transaction = ILS::Transaction::RenewAll->new();
+
+$transaction->patron(my $patron = ILS::Patron->new(23529000120056));
+
+ok(defined $patron, "patron code: 23529000120056 is valid");
+
+my $transaction2 = ILS::Transaction::RenewAll->new();
+$transaction2->patron(my $patron2 = ILS::Patron->new("ABCDE12345"));
+
+#This test assumes that the patron code ABCDE12345 is invalid
+ok(!defined $patron2, "patron code: ABCDE12345 is invalid");
+
+ok($transaction->do_renew_all(), "items renewed correctly");
use C4::Debug;
use C4::SQLHelper qw(:all);
-use Test::More tests => 22;
+use Test::More tests => 20;
use_ok('C4::SQLHelper');
ok(keys %{$$borrowers[0]} ==1, "Search In Table columns out limit");
$borrowers=SearchInTable("borrowers",["Valjean",{firstname=>"Jean"}],undef,undef,[qw(borrowernumber)],[qw(firstname surname title)]);
ok(@$borrowers>0, "Search In Table columns out limit to borrowernumber AND filter firstname surname title");
-$borrowers=SearchInTable("borrowers",["Valjean",{firstname=>"Jean"}],undef,undef,[qw(borrowernumber)],[qw(firstname title)]);
-ok(@$borrowers==0, "Search In Table columns filter firstname title limit Valjean not in other fields than surname ");
$borrowers=SearchInTable("borrowers",["Val",{firstname=>"Jean"}],undef,undef,[qw(borrowernumber)],[qw(surname)],"start_with");
ok(@$borrowers>0, "Search In Table columns filter surname Val on a wide search found ");
-$borrowers=SearchInTable("borrowers",["Val",{firstname=>"Jean"}],undef,undef,[qw(borrowernumber)],[qw(surname)],"exact");
-ok(@$borrowers==0, "Search In Table columns filter surname Val in exact search not found ");
$borrowers=eval{SearchInTable("borrowers",["Val",{member=>"Jean"}],undef,undef,[qw(borrowernumber)],[qw(firstname title)],"exact")};
ok(@$borrowers==0 && !($@), "Search In Table fails gracefully when no correct field passed in hash");
$borrowers=eval{SearchInTable("borrowers",["Jea"],undef,undef,undef,[qw(firstname surname borrowernumber)],"start_with")};
ok($results[0] eq $string,"$string is not modified");
}
-foreach my $string ("Les chaussettes de l'archiduchesse") {
+foreach my $string ("A book about the stars") {
my @results=C4::Search::_remove_stopwords($string,"kw");
$debug && warn "$string ",Dump(@results);
ok($results[0] ne $string,"$results[0] from $string");
#!/usr/bin/perl
#
-# This Koha test module is a stub!
-# Add more tests here!!!
+
+# A simple test for UploadedFile
+# only ->new is covered
use strict;
use warnings;
-use Test::More tests => 1;
+use Test::More tests => 2;
BEGIN {
use_ok('C4::UploadedFile');
}
+ok(my $file = C4::UploadedFile->new());
ok( ! $details->{'flags'}->{'DBARRED'}, 'this member is NOT debarred' );
# Now, let's debar this member and see what happens
- my $success = C4::Members::DebarMember( $self->{'memberid'} );
+ my $success = C4::Members::DebarMember( $self->{'memberid'}, '2099-12-31' );
ok( $success, 'we were able to debar the member' );
CheckAccountLineLevelInfo
GetOverduerules
CheckBorrowerDebarred
- UpdateBorrowerDebarred
CheckExistantNotifyid
CheckAccountLineItemInfo
CheckItemNotify
ModReserveAffect
ModReserveCancelAll
ModReserveMinusPriority
+ MoveReserve
GetReserveInfo
_FixPriority
_Findgroupreserve
exclude = Miscellanea::RequireRcsKeywords
+
+
+[Perl::Critic::Policy::BuiltinFunctions::ProhibitStringyEval]
+allow_includes =1
\ No newline at end of file
UpdateMarcWith( $marcitem, $localmarcitem );
eval{
if ( my $item = ModItemFromMarc( $localmarcitem, $itemdata->{biblionumber}, $itemnumber ) ) {
- LostItem($itemnumber, 'MARK RETURNED') if $item->{itemlost};
+ LostItem($itemnumber, 'MARK RETURNED', 'CHARGE FEE') if $item->{itemlost};
}
};
}
keydate => $keydate,
branchcodes => $branchcodes,
branch => $branch,
+ DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
branchname => $branchname
);
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;
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
+ );
+ }
+ }
+ }
}
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(
}
);
+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;
my $data = GetMember('borrowernumber'=>$borrowernumber);
my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'});
$template->param( picture => 1 ) if $picture;
+
$template->param( menu => 1,
title => $data->{'title'},
initials => $data->{'initials'},
surname => $data->{'surname'},
+ othernames => $data->{'othernames'},
borrowernumber => $borrowernumber,
firstname => $data->{'firstname'},
cardnumber => $data->{'cardnumber'},
categorycode => $data->{'categorycode'},
+ category_type => $data->{'category_type'},
categoryname => $data->{'description'},
address => $data->{'address'},
address2 => $data->{'address2'},
my @warnings;
while (<PH>) {
# ignore some noise on STDERR
- next if /^\.* done\.$/;
- next if /^\.* terminé\.$/;
+ # the output of msmerge, that consist in .... followed by a "done" (localized), followed by a .
+ # The "done" localized can include diacritics, so ignoring the whole word
+ # FIXME PP: the flow is not correct UTF8, testing \p{IsLetter} does not work, but I think this regexp will do the job
+ next if (/^\.+ .*\.$/);
+ # other Koha-specific catses that should not worry us
next if /^Warning: Can't determine original templates' charset/;
next if /^Warning: Charset Out defaulting to/;
next if /^Removing empty file /;