Merge remote branch 'kc/master' into new/enh/bug_5917
Conflicts: installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql
This commit is contained in:
commit
8e00f55216
|
|
@ -684,8 +684,7 @@ sub CanBookBeIssued {
|
|||
|
||||
my $branch = _GetCircControlBranch($item,$borrower);
|
||||
my $itype = ( C4::Context->preference('item-level_itypes') ) ? $item->{'itype'} : $biblioitem->{'itemtype'};
|
||||
my $loanlength = GetLoanLength( $borrower->{'categorycode'}, $itype, $branch );
|
||||
$duedate = CalcDateDue( C4::Dates->new( $issuedate, 'iso' ), $loanlength, $branch, $borrower );
|
||||
$duedate = CalcDateDue( C4::Dates->new( $issuedate, 'iso' ), $itype, $branch, $borrower );
|
||||
|
||||
# Offline circ calls AddIssue directly, doesn't run through here
|
||||
# So issuingimpossible should be ok.
|
||||
|
|
@ -1042,8 +1041,7 @@ sub AddIssue {
|
|||
);
|
||||
unless ($datedue) {
|
||||
my $itype = ( C4::Context->preference('item-level_itypes') ) ? $biblio->{'itype'} : $biblio->{'itemtype'};
|
||||
my $loanlength = GetLoanLength( $borrower->{'categorycode'}, $itype, $branch );
|
||||
$datedue = CalcDateDue( C4::Dates->new( $issuedate, 'iso' ), $loanlength, $branch, $borrower );
|
||||
$datedue = CalcDateDue( C4::Dates->new( $issuedate, 'iso' ), $itype, $branch, $borrower );
|
||||
|
||||
}
|
||||
$sth->execute(
|
||||
|
|
@ -1173,6 +1171,66 @@ sub GetLoanLength {
|
|||
return 21;
|
||||
}
|
||||
|
||||
|
||||
=head2 GetHardDueDate
|
||||
|
||||
my ($hardduedate,$hardduedatecompare) = &GetHardDueDate($borrowertype,$itemtype,branchcode)
|
||||
|
||||
Get the Hard Due Date and it's comparison for an itemtype, a borrower type and a branch
|
||||
|
||||
=cut
|
||||
|
||||
sub GetHardDueDate {
|
||||
my ( $borrowertype, $itemtype, $branchcode ) = @_;
|
||||
my $dbh = C4::Context->dbh;
|
||||
my $sth =
|
||||
$dbh->prepare(
|
||||
"select hardduedate, hardduedatecompare from issuingrules where categorycode=? and itemtype=? and branchcode=?"
|
||||
);
|
||||
$sth->execute( $borrowertype, $itemtype, $branchcode );
|
||||
my $results = $sth->fetchrow_hashref;
|
||||
return (C4::Dates->new($results->{hardduedate}, 'iso'),$results->{hardduedatecompare})
|
||||
if defined($results) && $results->{hardduedate} ne 'NULL';
|
||||
|
||||
$sth->execute( $borrowertype, "*", $branchcode );
|
||||
$results = $sth->fetchrow_hashref;
|
||||
return (C4::Dates->new($results->{hardduedate}, 'iso'),$results->{hardduedatecompare})
|
||||
if defined($results) && $results->{hardduedate} ne 'NULL';
|
||||
|
||||
$sth->execute( "*", $itemtype, $branchcode );
|
||||
$results = $sth->fetchrow_hashref;
|
||||
return (C4::Dates->new($results->{hardduedate}, 'iso'),$results->{hardduedatecompare})
|
||||
if defined($results) && $results->{hardduedate} ne 'NULL';
|
||||
|
||||
$sth->execute( "*", "*", $branchcode );
|
||||
$results = $sth->fetchrow_hashref;
|
||||
return (C4::Dates->new($results->{hardduedate}, 'iso'),$results->{hardduedatecompare})
|
||||
if defined($results) && $results->{hardduedate} ne 'NULL';
|
||||
|
||||
$sth->execute( $borrowertype, $itemtype, "*" );
|
||||
$results = $sth->fetchrow_hashref;
|
||||
return (C4::Dates->new($results->{hardduedate}, 'iso'),$results->{hardduedatecompare})
|
||||
if defined($results) && $results->{hardduedate} ne 'NULL';
|
||||
|
||||
$sth->execute( $borrowertype, "*", "*" );
|
||||
$results = $sth->fetchrow_hashref;
|
||||
return (C4::Dates->new($results->{hardduedate}, 'iso'),$results->{hardduedatecompare})
|
||||
if defined($results) && $results->{hardduedate} ne 'NULL';
|
||||
|
||||
$sth->execute( "*", $itemtype, "*" );
|
||||
$results = $sth->fetchrow_hashref;
|
||||
return (C4::Dates->new($results->{hardduedate}, 'iso'),$results->{hardduedatecompare})
|
||||
if defined($results) && $results->{hardduedate} ne 'NULL';
|
||||
|
||||
$sth->execute( "*", "*", "*" );
|
||||
$results = $sth->fetchrow_hashref;
|
||||
return (C4::Dates->new($results->{hardduedate}, 'iso'),$results->{hardduedatecompare})
|
||||
if defined($results) && $results->{hardduedate} ne 'NULL';
|
||||
|
||||
# if no rule is set => return undefined
|
||||
return (undef, undef);
|
||||
}
|
||||
|
||||
=head2 GetIssuingRule
|
||||
|
||||
my $irule = &GetIssuingRule($borrowertype,$itemtype,branchcode)
|
||||
|
|
@ -2197,15 +2255,12 @@ sub AddRenewal {
|
|||
unless ($datedue) {
|
||||
|
||||
my $borrower = C4::Members::GetMemberDetails( $borrowernumber, 0 ) or return undef;
|
||||
my $loanlength = GetLoanLength(
|
||||
$borrower->{'categorycode'},
|
||||
(C4::Context->preference('item-level_itypes')) ? $biblio->{'itype'} : $biblio->{'itemtype'} ,
|
||||
$issuedata->{'branchcode'} ); # that's the circ control branch.
|
||||
my $itemtype = (C4::Context->preference('item-level_itypes')) ? $biblio->{'itype'} : $biblio->{'itemtype'} ,
|
||||
|
||||
$datedue = (C4::Context->preference('RenewalPeriodBase') eq 'date_due') ?
|
||||
C4::Dates->new($issuedata->{date_due}, 'iso') :
|
||||
C4::Dates->new();
|
||||
$datedue = CalcDateDue($datedue,$loanlength,$issuedata->{'branchcode'},$borrower);
|
||||
$datedue = CalcDateDue($datedue,$itemtype,$issuedata->{'branchcode'},$borrower);
|
||||
}
|
||||
|
||||
# Update the issues record to have the new due date, and a new count
|
||||
|
|
@ -2307,39 +2362,78 @@ sub GetIssuingCharges {
|
|||
my $item_type;
|
||||
|
||||
# Get the book's item type and rental charge (via its biblioitem).
|
||||
my $qcharge = "SELECT itemtypes.itemtype,rentalcharge FROM items
|
||||
LEFT JOIN biblioitems ON biblioitems.biblioitemnumber = items.biblioitemnumber";
|
||||
$qcharge .= (C4::Context->preference('item-level_itypes'))
|
||||
? " LEFT JOIN itemtypes ON items.itype = itemtypes.itemtype "
|
||||
: " LEFT JOIN itemtypes ON biblioitems.itemtype = itemtypes.itemtype ";
|
||||
|
||||
$qcharge .= "WHERE items.itemnumber =?";
|
||||
|
||||
my $sth1 = $dbh->prepare($qcharge);
|
||||
$sth1->execute($itemnumber);
|
||||
if ( my $data1 = $sth1->fetchrow_hashref ) {
|
||||
$item_type = $data1->{'itemtype'};
|
||||
$charge = $data1->{'rentalcharge'};
|
||||
my $q2 = "SELECT rentaldiscount FROM borrowers
|
||||
my $charge_query = 'SELECT itemtypes.itemtype,rentalcharge FROM items
|
||||
LEFT JOIN biblioitems ON biblioitems.biblioitemnumber = items.biblioitemnumber';
|
||||
$charge_query .= (C4::Context->preference('item-level_itypes'))
|
||||
? ' LEFT JOIN itemtypes ON items.itype = itemtypes.itemtype'
|
||||
: ' LEFT JOIN itemtypes ON biblioitems.itemtype = itemtypes.itemtype';
|
||||
|
||||
$charge_query .= ' WHERE items.itemnumber =?';
|
||||
|
||||
my $sth = $dbh->prepare($charge_query);
|
||||
$sth->execute($itemnumber);
|
||||
if ( my $item_data = $sth->fetchrow_hashref ) {
|
||||
$item_type = $item_data->{itemtype};
|
||||
$charge = $item_data->{rentalcharge};
|
||||
my $branch = C4::Branch::mybranch();
|
||||
my $discount_query = q|SELECT rentaldiscount,
|
||||
issuingrules.itemtype, issuingrules.branchcode
|
||||
FROM borrowers
|
||||
LEFT JOIN issuingrules ON borrowers.categorycode = issuingrules.categorycode
|
||||
WHERE borrowers.borrowernumber = ?
|
||||
AND (issuingrules.itemtype = ? OR issuingrules.itemtype = '*')";
|
||||
my $sth2 = $dbh->prepare($q2);
|
||||
$sth2->execute( $borrowernumber, $item_type );
|
||||
if ( my $data2 = $sth2->fetchrow_hashref ) {
|
||||
my $discount = $data2->{'rentaldiscount'};
|
||||
if ( $discount eq 'NULL' ) {
|
||||
$discount = 0;
|
||||
}
|
||||
AND (issuingrules.itemtype = ? OR issuingrules.itemtype = '*')
|
||||
AND (issuingrules.branchcode = ? OR issuingrules.branchcode = '*')|;
|
||||
my $discount_sth = $dbh->prepare($discount_query);
|
||||
$discount_sth->execute( $borrowernumber, $item_type, $branch );
|
||||
my $discount_rules = $discount_sth->fetchall_arrayref({});
|
||||
if (@{$discount_rules}) {
|
||||
# We may have multiple rules so get the most specific
|
||||
my $discount = _get_discount_from_rule($discount_rules, $branch, $item_type);
|
||||
$charge = ( $charge * ( 100 - $discount ) ) / 100;
|
||||
}
|
||||
$sth2->finish;
|
||||
}
|
||||
|
||||
$sth1->finish;
|
||||
$sth->finish; # we havent _explicitly_ fetched all rows
|
||||
return ( $charge, $item_type );
|
||||
}
|
||||
|
||||
# Select most appropriate discount rule from those returned
|
||||
sub _get_discount_from_rule {
|
||||
my ($rules_ref, $branch, $itemtype) = @_;
|
||||
my $discount;
|
||||
|
||||
if (@{$rules_ref} == 1) { # only 1 applicable rule use it
|
||||
$discount = $rules_ref->[0]->{rentaldiscount};
|
||||
return (defined $discount) ? $discount : 0;
|
||||
}
|
||||
# could have up to 4 does one match $branch and $itemtype
|
||||
my @d = grep { $_->{branchcode} eq $branch && $_->{itemtype} eq $itemtype } @{$rules_ref};
|
||||
if (@d) {
|
||||
$discount = $d[0]->{rentaldiscount};
|
||||
return (defined $discount) ? $discount : 0;
|
||||
}
|
||||
# do we have item type + all branches
|
||||
@d = grep { $_->{branchcode} eq q{*} && $_->{itemtype} eq $itemtype } @{$rules_ref};
|
||||
if (@d) {
|
||||
$discount = $d[0]->{rentaldiscount};
|
||||
return (defined $discount) ? $discount : 0;
|
||||
}
|
||||
# do we all item types + this branch
|
||||
@d = grep { $_->{branchcode} eq $branch && $_->{itemtype} eq q{*} } @{$rules_ref};
|
||||
if (@d) {
|
||||
$discount = $d[0]->{rentaldiscount};
|
||||
return (defined $discount) ? $discount : 0;
|
||||
}
|
||||
# so all and all (surely we wont get here)
|
||||
@d = grep { $_->{branchcode} eq q{*} && $_->{itemtype} eq q{*} } @{$rules_ref};
|
||||
if (@d) {
|
||||
$discount = $d[0]->{rentaldiscount};
|
||||
return (defined $discount) ? $discount : 0;
|
||||
}
|
||||
# none of the above
|
||||
return 0;
|
||||
}
|
||||
|
||||
=head2 AddIssuingCharge
|
||||
|
||||
&AddIssuingCharge( $itemno, $borrowernumber, $charge )
|
||||
|
|
@ -2589,17 +2683,20 @@ sub UpdateHoldingbranch {
|
|||
|
||||
=head2 CalcDateDue
|
||||
|
||||
$newdatedue = CalcDateDue($startdate,$loanlength,$branchcode);
|
||||
this function calculates the due date given the loan length ,
|
||||
$newdatedue = CalcDateDue($startdate,$itemtype,$branchcode,$borrower);
|
||||
|
||||
this function calculates the due date given the start date and configured circulation rules,
|
||||
checking against the holidays calendar as per the 'useDaysMode' syspref.
|
||||
C<$startdate> = C4::Dates object representing start date of loan period (assumed to be today)
|
||||
C<$itemtype> = itemtype code of item in question
|
||||
C<$branch> = location whose calendar to use
|
||||
C<$loanlength> = loan length prior to adjustment
|
||||
C<$borrower> = Borrower object
|
||||
=cut
|
||||
|
||||
sub CalcDateDue {
|
||||
my ($startdate,$loanlength,$branch,$borrower) = @_;
|
||||
my ($startdate,$itemtype,$branch,$borrower) = @_;
|
||||
my $datedue;
|
||||
my $loanlength = GetLoanLength($borrower->{'categorycode'},$itemtype, $branch);
|
||||
|
||||
if(C4::Context->preference('useDaysMode') eq 'Days') { # ignoring calendar
|
||||
my $timedue = time + ($loanlength) * 86400;
|
||||
|
|
@ -2611,19 +2708,27 @@ sub CalcDateDue {
|
|||
$datedue = $calendar->addDate($startdate, $loanlength);
|
||||
}
|
||||
|
||||
# if Hard Due Dates are used, retreive them and apply as necessary
|
||||
my ($hardduedate, $hardduedatecompare) = GetHardDueDate($borrower->{'categorycode'},$itemtype, $branch);
|
||||
if ( $hardduedate->output('iso') && $hardduedate->output('iso') ne '0000-00-00') {
|
||||
# if the calculated due date is after the 'before' Hard Due Date (ceiling), override
|
||||
if ( $datedue->output( 'iso' ) gt $hardduedate->output( 'iso' ) && $hardduedatecompare == -1) {
|
||||
$datedue = $hardduedate;
|
||||
# if the calculated date is before the 'after' Hard Due Date (floor), override
|
||||
} elsif ( $datedue->output( 'iso' ) lt $hardduedate->output( 'iso' ) && $hardduedatecompare == 1) {
|
||||
$datedue = $hardduedate;
|
||||
# if the hard due date is set to 'exactly', overrride
|
||||
} elsif ( $hardduedatecompare == 0) {
|
||||
$datedue = $hardduedate;
|
||||
}
|
||||
# in all other cases, keep the date due as it is
|
||||
}
|
||||
|
||||
# if ReturnBeforeExpiry ON the datedue can't be after borrower expirydate
|
||||
if ( C4::Context->preference('ReturnBeforeExpiry') && $datedue->output('iso') gt $borrower->{dateexpiry} ) {
|
||||
$datedue = C4::Dates->new( $borrower->{dateexpiry}, 'iso' );
|
||||
}
|
||||
|
||||
# if ceilingDueDate ON the datedue can't be after the ceiling date
|
||||
if ( C4::Context->preference('ceilingDueDate')
|
||||
&& ( C4::Context->preference('ceilingDueDate') =~ C4::Dates->regexp('syspref') ) ) {
|
||||
my $ceilingDate = C4::Dates->new( C4::Context->preference('ceilingDueDate') );
|
||||
if ( $datedue->output( 'iso' ) gt $ceilingDate->output( 'iso' ) ) {
|
||||
$datedue = $ceilingDate;
|
||||
}
|
||||
}
|
||||
|
||||
return $datedue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,6 +70,8 @@ BEGIN {
|
|||
&PutPatronImage
|
||||
&RmPatronImage
|
||||
|
||||
&GetHideLostItemsPreference
|
||||
|
||||
&IsMemberBlocked
|
||||
&GetMemberAccountRecords
|
||||
&GetBorNotifyAcctRecord
|
||||
|
|
@ -1807,6 +1809,25 @@ sub RmPatronImage {
|
|||
return $dberror;
|
||||
}
|
||||
|
||||
=head2 GetHideLostItemsPreference
|
||||
|
||||
$hidelostitemspref = &GetHideLostItemsPreference($borrowernumber);
|
||||
|
||||
Returns the HideLostItems preference for the patron category of the supplied borrowernumber
|
||||
C<&$hidelostitemspref>return value of function, 0 or 1
|
||||
|
||||
=cut
|
||||
|
||||
sub GetHideLostItemsPreference {
|
||||
my ($borrowernumber) = @_;
|
||||
my $dbh = C4::Context->dbh;
|
||||
my $query = "SELECT hidelostitems FROM borrowers,categories WHERE borrowers.categorycode = categories.categorycode AND borrowernumber = ?";
|
||||
my $sth = $dbh->prepare($query);
|
||||
$sth->execute($borrowernumber);
|
||||
my $hidelostitems = $sth->fetchrow;
|
||||
return $hidelostitems;
|
||||
}
|
||||
|
||||
=head2 GetRoadTypeDetails (OUEST-PROVENCE)
|
||||
|
||||
($roadtype) = &GetRoadTypeDetails($roadtypeid);
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ use Lingua::Stem;
|
|||
use C4::Search::PazPar2;
|
||||
use XML::Simple;
|
||||
use C4::Dates qw(format_date);
|
||||
use C4::Members qw(GetHideLostItemsPreference);
|
||||
use C4::XSLT;
|
||||
use C4::Branch;
|
||||
use C4::Reserves; # CheckReserves
|
||||
|
|
@ -391,7 +392,7 @@ sub getRecords {
|
|||
warn "Ignoring unrecognized sort '$sort' requested" if $sort_by;
|
||||
}
|
||||
}
|
||||
if ($sort_by) {
|
||||
if ($sort_by && !$scan) {
|
||||
if ( $results[$i]->sort( "yaz", $sort_by ) < 0 ) {
|
||||
warn "WARNING sort $sort_by failed";
|
||||
}
|
||||
|
|
@ -1482,7 +1483,7 @@ sub searchResults {
|
|||
# add imageurl to itemtype if there is one
|
||||
$oldbiblio->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $oldbiblio->{itemtype} }->{imageurl} );
|
||||
|
||||
$oldbiblio->{'authorised_value_images'} = C4::Items::get_authorised_value_images( C4::Biblio::get_biblio_authorised_values( $oldbiblio->{'biblionumber'}, $marcrecord ) );
|
||||
$oldbiblio->{'authorised_value_images'} = ($search_context eq 'opac' && C4::Context->preference('AuthorisedValueImages')) || ($search_context eq 'intranet' && C4::Context->preference('StaffAuthorisedValueImages')) ? C4::Items::get_authorised_value_images( C4::Biblio::get_biblio_authorised_values( $oldbiblio->{'biblionumber'}, $marcrecord ) ) : [];
|
||||
$oldbiblio->{normalized_upc} = GetNormalizedUPC( $marcrecord,$marcflavour);
|
||||
$oldbiblio->{normalized_ean} = GetNormalizedEAN( $marcrecord,$marcflavour);
|
||||
$oldbiblio->{normalized_oclc} = GetNormalizedOCLCNumber($marcrecord,$marcflavour);
|
||||
|
|
@ -1593,7 +1594,8 @@ sub searchResults {
|
|||
|
||||
my $prefix = $item->{$hbranch} . '--' . $item->{location} . $item->{itype} . $item->{itemcallnumber};
|
||||
# For each grouping of items (onloan, available, unavailable), we build a key to store relevant info about that item
|
||||
if ( $item->{onloan} ) {
|
||||
my $userenv = C4::Context->userenv;
|
||||
if ( $item->{onloan} && !(C4::Members::GetHideLostItemsPreference($userenv->{'number'}) && $item->{itemlost}) ) {
|
||||
$onloan_count++;
|
||||
my $key = $prefix . $item->{onloan} . $item->{barcode};
|
||||
$onloan_items->{$key}->{due_date} = format_date($item->{onloan});
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ if ($op eq 'add_form') {
|
|||
my $data;
|
||||
if ($categorycode) {
|
||||
my $dbh = C4::Context->dbh;
|
||||
my $sth=$dbh->prepare("select categorycode,description,enrolmentperiod,enrolmentperioddate,upperagelimit,dateofbirthrequired,enrolmentfee,issuelimit,reservefee,overduenoticerequired,category_type from categories where categorycode=?");
|
||||
my $sth=$dbh->prepare("select categorycode,description,enrolmentperiod,enrolmentperioddate,upperagelimit,dateofbirthrequired,enrolmentfee,issuelimit,reservefee,hidelostitems,overduenoticerequired,category_type from categories where categorycode=?");
|
||||
$sth->execute($categorycode);
|
||||
$data=$sth->fetchrow_hashref;
|
||||
$sth->finish;
|
||||
|
|
@ -109,6 +109,7 @@ if ($op eq 'add_form') {
|
|||
overduenoticerequired => $data->{'overduenoticerequired'},
|
||||
issuelimit => $data->{'issuelimit'},
|
||||
reservefee => sprintf("%.2f",$data->{'reservefee'}),
|
||||
hidelostitems => $data->{'hidelostitems'},
|
||||
category_type => $data->{'category_type'},
|
||||
DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
|
||||
"type_".$data->{'category_type'} => 1,
|
||||
|
|
@ -128,12 +129,12 @@ if ($op eq 'add_form') {
|
|||
}
|
||||
|
||||
if ($is_a_modif) {
|
||||
my $sth=$dbh->prepare("UPDATE categories SET description=?,enrolmentperiod=?, enrolmentperioddate=?,upperagelimit=?,dateofbirthrequired=?,enrolmentfee=?,reservefee=?,overduenoticerequired=?,category_type=? WHERE categorycode=?");
|
||||
$sth->execute(map { $input->param($_) } ('description','enrolmentperiod','enrolmentperioddate','upperagelimit','dateofbirthrequired','enrolmentfee','reservefee','overduenoticerequired','category_type','categorycode'));
|
||||
my $sth=$dbh->prepare("UPDATE categories SET description=?,enrolmentperiod=?, enrolmentperioddate=?,upperagelimit=?,dateofbirthrequired=?,enrolmentfee=?,reservefee=?,hidelostitems=?,overduenoticerequired=?,category_type=? WHERE categorycode=?");
|
||||
$sth->execute(map { $input->param($_) } ('description','enrolmentperiod','enrolmentperioddate','upperagelimit','dateofbirthrequired','enrolmentfee','reservefee','hidelostitems','overduenoticerequired','category_type','categorycode'));
|
||||
$sth->finish;
|
||||
} else {
|
||||
my $sth=$dbh->prepare("INSERT INTO categories (categorycode,description,enrolmentperiod,enrolmentperioddate,upperagelimit,dateofbirthrequired,enrolmentfee,reservefee,overduenoticerequired,category_type) values (?,?,?,?,?,?,?,?,?,?)");
|
||||
$sth->execute(map { $input->param($_) } ('categorycode','description','enrolmentperiod','enrolmentperioddate','upperagelimit','dateofbirthrequired','enrolmentfee','reservefee','overduenoticerequired','category_type'));
|
||||
my $sth=$dbh->prepare("INSERT INTO categories (categorycode,description,enrolmentperiod,enrolmentperioddate,upperagelimit,dateofbirthrequired,enrolmentfee,reservefee,hidelostitems,overduenoticerequired,category_type) values (?,?,?,?,?,?,?,?,?,?)");
|
||||
$sth->execute(map { $input->param($_) } ('categorycode','description','enrolmentperiod','enrolmentperioddate','upperagelimit','dateofbirthrequired','enrolmentfee','reservefee','hidelostitems','overduenoticerequired','category_type'));
|
||||
$sth->finish;
|
||||
}
|
||||
if (C4::Context->preference('EnhancedMessagingPreferences')) {
|
||||
|
|
@ -156,7 +157,7 @@ if ($op eq 'add_form') {
|
|||
$sth->finish;
|
||||
$template->param(total => $total->{'total'});
|
||||
|
||||
my $sth2=$dbh->prepare("select categorycode,description,enrolmentperiod,enrolmentperioddate,upperagelimit,dateofbirthrequired,enrolmentfee,issuelimit,reservefee,overduenoticerequired,category_type from categories where categorycode=?");
|
||||
my $sth2=$dbh->prepare("select categorycode,description,enrolmentperiod,enrolmentperioddate,upperagelimit,dateofbirthrequired,enrolmentfee,issuelimit,reservefee,hidelostitems,overduenoticerequired,category_type from categories where categorycode=?");
|
||||
$sth2->execute($categorycode);
|
||||
my $data=$sth2->fetchrow_hashref;
|
||||
$sth2->finish;
|
||||
|
|
@ -173,6 +174,7 @@ if ($op eq 'add_form') {
|
|||
overduenoticerequired => $data->{'overduenoticerequired'},
|
||||
issuelimit => $data->{'issuelimit'},
|
||||
reservefee => sprintf("%.2f",$data->{'reservefee'}),
|
||||
hidelostitems => $data->{'hidelostitems'},
|
||||
category_type => $data->{'category_type'},
|
||||
);
|
||||
# END $OP eq DELETE_CONFIRM
|
||||
|
|
@ -205,6 +207,7 @@ if ($op eq 'add_form') {
|
|||
overduenoticerequired => $results->[$i]{'overduenoticerequired'},
|
||||
issuelimit => $results->[$i]{'issuelimit'},
|
||||
reservefee => sprintf("%.2f",$results->[$i]{'reservefee'}),
|
||||
hidelostitems => $results->[$i]{'hidelostitems'},
|
||||
category_type => $results->[$i]{'category_type'},
|
||||
"type_".$results->[$i]{'category_type'} => 1);
|
||||
if (C4::Context->preference('EnhancedMessagingPreferences')) {
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ use C4::Auth;
|
|||
use C4::Koha;
|
||||
use C4::Debug;
|
||||
use C4::Branch; # GetBranches
|
||||
use C4::Dates qw/format_date format_date_in_iso/;
|
||||
|
||||
my $input = new CGI;
|
||||
my $dbh = C4::Context->dbh;
|
||||
|
|
@ -100,8 +101,8 @@ elsif ($op eq 'delete-branch-item') {
|
|||
# save the values entered
|
||||
elsif ($op eq 'add') {
|
||||
my $sth_search = $dbh->prepare("SELECT COUNT(*) AS total FROM issuingrules WHERE branchcode=? AND categorycode=? AND itemtype=?");
|
||||
my $sth_insert = $dbh->prepare("INSERT INTO issuingrules (branchcode, categorycode, itemtype, maxissueqty, renewalsallowed, reservesallowed, issuelength, fine, finedays, firstremind, chargeperiod,rentaldiscount) VALUES(?,?,?,?,?,?,?,?,?,?,?,?)");
|
||||
my $sth_update=$dbh->prepare("UPDATE issuingrules SET fine=?, finedays=?, firstremind=?, chargeperiod=?, maxissueqty=?, renewalsallowed=?, reservesallowed=?, issuelength=?, rentaldiscount=? WHERE branchcode=? AND categorycode=? AND itemtype=?");
|
||||
my $sth_insert = $dbh->prepare("INSERT INTO issuingrules (branchcode, categorycode, itemtype, maxissueqty, renewalsallowed, reservesallowed, issuelength, hardduedate, hardduedatecompare, fine, finedays, firstremind, chargeperiod,rentaldiscount) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
|
||||
my $sth_update=$dbh->prepare("UPDATE issuingrules SET fine=?, finedays=?, firstremind=?, chargeperiod=?, maxissueqty=?, renewalsallowed=?, reservesallowed=?, issuelength=?, hardduedate=?, hardduedatecompare=?, rentaldiscount=? WHERE branchcode=? AND categorycode=? AND itemtype=?");
|
||||
|
||||
my $br = $branch; # branch
|
||||
my $bor = $input->param('categorycode'); # borrower category
|
||||
|
|
@ -116,15 +117,18 @@ elsif ($op eq 'add') {
|
|||
$maxissueqty =~ s/\s//g;
|
||||
$maxissueqty = undef if $maxissueqty !~ /^\d+/;
|
||||
my $issuelength = $input->param('issuelength');
|
||||
my $hardduedate = $input->param('hardduedate');
|
||||
$hardduedate = format_date_in_iso($hardduedate);
|
||||
my $hardduedatecompare = $input->param('hardduedatecompare');
|
||||
my $rentaldiscount = $input->param('rentaldiscount');
|
||||
$debug and warn "Adding $br, $bor, $cat, $fine, $maxissueqty";
|
||||
|
||||
$sth_search->execute($br,$bor,$cat);
|
||||
my $res = $sth_search->fetchrow_hashref();
|
||||
if ($res->{total}) {
|
||||
$sth_update->execute($fine, $finedays,$firstremind, $chargeperiod, $maxissueqty, $renewalsallowed,$reservesallowed, $issuelength,$rentaldiscount, $br,$bor,$cat);
|
||||
$sth_update->execute($fine, $finedays,$firstremind, $chargeperiod, $maxissueqty, $renewalsallowed,$reservesallowed, $issuelength,$hardduedate,$hardduedatecompare,$rentaldiscount, $br,$bor,$cat);
|
||||
} else {
|
||||
$sth_insert->execute($br,$bor,$cat,$maxissueqty,$renewalsallowed,$reservesallowed,$issuelength,$fine,$finedays,$firstremind,$chargeperiod,$rentaldiscount);
|
||||
$sth_insert->execute($br,$bor,$cat,$maxissueqty,$renewalsallowed,$reservesallowed,$issuelength,$hardduedate,$hardduedatecompare,$fine,$finedays,$firstremind,$chargeperiod,$rentaldiscount);
|
||||
}
|
||||
}
|
||||
elsif ($op eq "set-branch-defaults") {
|
||||
|
|
@ -377,6 +381,14 @@ while (my $row = $sth2->fetchrow_hashref) {
|
|||
$row->{'humancategorycode'} ||= $row->{'categorycode'};
|
||||
$row->{'default_humancategorycode'} = 1 if $row->{'humancategorycode'} eq '*';
|
||||
$row->{'fine'} = sprintf('%.2f', $row->{'fine'});
|
||||
if ($row->{'hardduedate'} ne '0000-00-00') {
|
||||
$row->{'hardduedate'} = format_date( $row->{'hardduedate'});
|
||||
$row->{'hardduedatebefore'} = 1 if ($row->{'hardduedatecompare'} == -1);
|
||||
$row->{'hardduedateexact'} = 1 if ($row->{'hardduedatecompare'} == 0);
|
||||
$row->{'hardduedateafter'} = 1 if ($row->{'hardduedatecompare'} == 1);
|
||||
} else {
|
||||
$row->{'hardduedate'} = 0;
|
||||
}
|
||||
push @row_loop, $row;
|
||||
}
|
||||
$sth->finish;
|
||||
|
|
|
|||
|
|
@ -162,7 +162,6 @@ $tabsysprefs{IssuingInProcess} = "Circulation";
|
|||
$tabsysprefs{patronimages} = "Circulation";
|
||||
$tabsysprefs{printcirculationslips} = "Circulation";
|
||||
$tabsysprefs{ReturnBeforeExpiry} = "Circulation";
|
||||
$tabsysprefs{ceilingDueDate} = "Circulation";
|
||||
$tabsysprefs{SpecifyDueDate} = "Circulation";
|
||||
$tabsysprefs{AutomaticItemReturn} = "Circulation";
|
||||
$tabsysprefs{ReservesMaxPickUpDelay} = "Circulation";
|
||||
|
|
@ -175,7 +174,6 @@ $tabsysprefs{canreservefromotherbranches} = "Circulation";
|
|||
$tabsysprefs{finesMode} = "Circulation";
|
||||
$tabsysprefs{numReturnedItemsToShow} = "Circulation";
|
||||
$tabsysprefs{emailLibrarianWhenHoldIsPlaced} = "Circulation";
|
||||
$tabsysprefs{globalDueDate} = "Circulation";
|
||||
$tabsysprefs{itemBarcodeInputFilter} = "Circulation";
|
||||
$tabsysprefs{WebBasedSelfCheck} = "Circulation";
|
||||
$tabsysprefs{ShowPatronImageInWebBasedSelfCheck} = "Circulation";
|
||||
|
|
|
|||
|
|
@ -64,6 +64,8 @@ if($query->cookie("holdfor")){
|
|||
my $biblionumber = $query->param('biblionumber');
|
||||
my $fw = GetFrameworkCode($biblionumber);
|
||||
|
||||
my $showallitems = $query->param('showallitems');
|
||||
|
||||
## get notes and subjects from MARC record
|
||||
my $marcflavour = C4::Context->preference("marcflavour");
|
||||
my $record = GetMarcBiblio($biblionumber);
|
||||
|
|
@ -109,8 +111,12 @@ my $branches = GetBranches();
|
|||
my $itemtypes = GetItemTypes();
|
||||
my $dbh = C4::Context->dbh;
|
||||
|
||||
# change back when ive fixed request.pl
|
||||
my @items = &GetItemsInfo( $biblionumber, 'intra' );
|
||||
# 'intra' param included, even though it's not respected in GetItemsInfo currently
|
||||
my @all_items= GetItemsInfo($biblionumber, 'intra');
|
||||
my @items;
|
||||
for my $itm (@all_items) {
|
||||
push @items, $itm unless ( $itm->{itemlost} && GetHideLostItemsPreference($borrowernumber) && !$showallitems);
|
||||
}
|
||||
my $dat = &GetBiblioData($biblionumber);
|
||||
|
||||
# get count of holds
|
||||
|
|
@ -141,7 +147,11 @@ foreach my $subscription (@subscriptions) {
|
|||
if ( defined $dat->{'itemtype'} ) {
|
||||
$dat->{imageurl} = getitemtypeimagelocation( 'intranet', $itemtypes->{ $dat->{itemtype} }{imageurl} );
|
||||
}
|
||||
$dat->{'count'} = scalar @items;
|
||||
|
||||
$dat->{'count'} = scalar @all_items;
|
||||
$dat->{'showncount'} = scalar @items;
|
||||
$dat->{'hiddencount'} = scalar @all_items - scalar @items;
|
||||
|
||||
my $shelflocations = GetKohaAuthorisedValues('items.location', $fw);
|
||||
my $collections = GetKohaAuthorisedValues('items.ccode' , $fw);
|
||||
my (@itemloop, %itemfields);
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ use C4::Dates qw/format_date/;
|
|||
use C4::Circulation; # to use itemissues
|
||||
use C4::Members; # to use GetMember
|
||||
use C4::Search; # enabled_staff_search_views
|
||||
use C4::Members qw/GetHideLostItemsPreference/;
|
||||
|
||||
my $query=new CGI;
|
||||
|
||||
|
|
@ -66,8 +67,10 @@ my $biblionumber=$query->param('biblionumber');
|
|||
my $title=$query->param('title');
|
||||
my $bi=$query->param('bi');
|
||||
$bi = $biblionumber unless $bi;
|
||||
my $itemnumber = $query->param('itemnumber');
|
||||
my $data=GetBiblioData($biblionumber);
|
||||
my $dewey = $data->{'dewey'};
|
||||
my $showallitems = $query->param('showallitems');
|
||||
|
||||
#coping with subscriptions
|
||||
my $subscriptionsnumber = CountSubscriptionFromBiblionumber($biblionumber);
|
||||
|
|
@ -85,16 +88,27 @@ my $subscriptionsnumber = CountSubscriptionFromBiblionumber($biblionumber);
|
|||
|
||||
my @results;
|
||||
my $fw = GetFrameworkCode($biblionumber);
|
||||
my @items= GetItemsInfo($biblionumber);
|
||||
my $count=@items;
|
||||
$data->{'count'}=$count;
|
||||
my @all_items= GetItemsInfo($biblionumber);
|
||||
my @items;
|
||||
for my $itm (@all_items) {
|
||||
push @items, $itm unless ( $itm->{itemlost} &&
|
||||
GetHideLostItemsPreference($loggedinuser) &&
|
||||
!$showallitems &&
|
||||
($itemnumber != $itm->{itemnumber}));
|
||||
}
|
||||
|
||||
my $totalcount=@all_items;
|
||||
my $showncount=@items;
|
||||
my $hiddencount = $totalcount - $showncount;
|
||||
$data->{'count'}=$totalcount;
|
||||
$data->{'showncount'}=$showncount;
|
||||
$data->{'hiddencount'}=$hiddencount; # can be zero
|
||||
|
||||
my $ccodes= GetKohaAuthorisedValues('items.ccode',$fw);
|
||||
my $itemtypes = GetItemTypes;
|
||||
|
||||
$data->{'itemtypename'} = $itemtypes->{$data->{'itemtype'}}->{'description'};
|
||||
$results[0]=$data;
|
||||
my $itemnumber;
|
||||
($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);
|
||||
|
|
@ -144,7 +158,7 @@ $template->param(loggedinuser => $loggedinuser);
|
|||
$template->param(biblionumber => $biblionumber);
|
||||
$template->param(biblioitemnumber => $bi);
|
||||
$template->param(itemnumber => $itemnumber);
|
||||
$template->param(ONLY_ONE => 1) if ( $itemnumber && $count != @items );
|
||||
$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;
|
||||
|
|
|
|||
|
|
@ -383,7 +383,7 @@ my @indexes;
|
|||
@indexes = split("\0",$params->{'idx'});
|
||||
|
||||
# if a simple index (only one) display the index used in the top search box
|
||||
if ($indexes[0] && !$indexes[1]) {
|
||||
if ($indexes[0] && (!$indexes[1] || $params->{'scan'})) {
|
||||
$template->param("ms_".$indexes[0] => 1);}
|
||||
|
||||
|
||||
|
|
@ -396,7 +396,7 @@ my @limits;
|
|||
@limits = split("\0",$params->{'limit'}) if $params->{'limit'};
|
||||
|
||||
if($params->{'multibranchlimit'}) {
|
||||
push @limits, join(" or ", map { "branch: $_ "} @{GetBranchesInCategory($params->{'multibranchlimit'})}) ;
|
||||
push @limits, '('.join( " or ", map { "branch: $_ " } @{ GetBranchesInCategory( $params->{'multibranchlimit'} ) } ).')';
|
||||
}
|
||||
|
||||
my $available;
|
||||
|
|
|
|||
|
|
@ -136,11 +136,8 @@ if ( $barcode ) {
|
|||
}
|
||||
}
|
||||
|
||||
my ($datedue,$invalidduedate,$globalduedate);
|
||||
my ($datedue,$invalidduedate);
|
||||
|
||||
if(C4::Context->preference('globalDueDate') && (C4::Context->preference('globalDueDate') =~ C4::Dates->regexp('syspref'))){
|
||||
$globalduedate = C4::Dates->new(C4::Context->preference('globalDueDate'));
|
||||
}
|
||||
my $duedatespec_allow = C4::Context->preference('SpecifyDueDate');
|
||||
if($duedatespec_allow){
|
||||
if ($duedatespec) {
|
||||
|
|
@ -157,16 +154,7 @@ if($duedatespec_allow){
|
|||
$invalidduedate = 1;
|
||||
$template->param(IMPOSSIBLE=>1, INVALID_DATE=>$duedatespec);
|
||||
}
|
||||
} else {
|
||||
# pass global due date to tmpl if specifyduedate is true
|
||||
# and we have no barcode (loading circ page but not checking out)
|
||||
if($globalduedate && ! $barcode ){
|
||||
$duedatespec = $globalduedate->output();
|
||||
$stickyduedate = 1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$datedue = $globalduedate if ($globalduedate);
|
||||
}
|
||||
|
||||
my $todaysdate = C4::Dates->new->output('iso');
|
||||
|
|
@ -311,10 +299,6 @@ if ($barcode) {
|
|||
unless($confirm_required) {
|
||||
AddIssue( $borrower, $barcode, $datedue, $cancelreserve );
|
||||
$inprocess = 1;
|
||||
if($globalduedate && ! $stickyduedate && $duedatespec_allow ){
|
||||
$duedatespec = $globalduedate->output();
|
||||
$stickyduedate = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -150,8 +150,6 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('emailLibrarianWhenHoldIsPlaced',0,'If ON, emails the librarian whenever a hold is placed',NULL,'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('numReturnedItemsToShow','20','Number of returned items to show on the check-in page',NULL,'Integer');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('finesMode','test','Choose the fines mode, \'off\', \'test\' (emails admin report) or \'production\' (accrue overdue fines). Requires accruefines cronjob.','off|test|production','Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('globalDueDate','','If set, allows a global static due date for all checkouts','10','free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ceilingDueDate','','If set, date due will not be past this date. Enter date according to the dateformat System Preference',NULL,'free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('itemBarcodeInputFilter','','If set, allows specification of a item barcode input filter','whitespace|T-prefix|cuecat','Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('singleBranchMode',0,'Operate in Single-branch mode, hide branch selection in the OPAC',NULL,'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('URLLinkText','','Text to display as the link anchor in the OPAC',NULL,'free');
|
||||
|
|
@ -299,3 +297,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES (
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo');
|
||||
|
|
|
|||
|
|
@ -151,8 +151,6 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('emailLibrarianWhenHoldIsPlaced',0,'If ON, emails the librarian whenever a hold is placed',NULL,'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('numReturnedItemsToShow','20','Number of returned items to show on the check-in page',NULL,'Integer');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('finesMode','test','Choose the fines mode, \'off\', \'test\' (emails admin report) or \'production\' (accrue overdue fines). Requires accruefines cronjob.','off|test|production','Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('globalDueDate','','If set, allows a global static due date for all checkouts','10','free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ceilingDueDate','','If set, date due will not be past this date. Enter date according to the dateformat System Preference',NULL,'free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('itemBarcodeInputFilter','','If set, allows specification of a item barcode input filter','whitespace|T-prefix|cuecat|libsuite8','Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('singleBranchMode',0,'Operate in Single-branch mode, hide branch selection in the OPAC',NULL,'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('URLLinkText','','Text to display as the link anchor in the OPAC',NULL,'free');
|
||||
|
|
@ -299,3 +297,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES (
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo');
|
||||
|
|
|
|||
|
|
@ -151,8 +151,6 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('emailLibrarianWhenHoldIsPlaced',0,'Si activé, envoie un mail à la bibliothèque lorsqu''une réservation est posée',NULL,'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('numReturnedItemsToShow','20','Nombre d''exemplaires rendus à afficher sur la page de retour',NULL,'Integer');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('finesMode','test','Choisissez un mode pour le calcul des amendes : Test ou Production.','test|production','Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('globalDueDate','','Si défini, autorise une date de retour statique pour tous les prêts','10','free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ceilingDueDate','','Si présent, les dates de retour des prêts ne pourront être antérieures à cette date. Formatez cette date conformément à la préférence système dateformat.',NULL,'free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('itemBarcodeInputFilter','','Si activé, permet de définir le format des codes à barre','whitespace|T-prefix|cuecat','Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('singleBranchMode',0,'Activer s''il n''y a qu''une seule bibliothèque sur ce catalogue, cela cache le sélecteur de bibliothèque inutile',NULL,'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('URLLinkText','','Texte à afficher dans l''ancre du logo de l''OPAC',NULL,'free');
|
||||
|
|
@ -301,4 +299,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES (
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo');
|
||||
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo');
|
||||
|
|
|
|||
|
|
@ -61,7 +61,6 @@ insert into `systempreferences` (`variable`, `value`, `options`, `explanation`,
|
|||
-- insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('FrameworksLoaded','auth_val.sql|authority_framework.sql|class_sources.sql|message_transport_types.sql|notices.sql|parameters.sql|patron_categories.sql|sample_holidays.sql|sample_itemtypes.sql|sample_labels.sql|sample_news.sql|sample_notices_message_attributes.sql|sample_notices_message_transports.sql|stopwords.sql|subtag_registry.sql|sysprefs.sql|unimarc_framework.sql|userflags.sql|userpermissions.sql',NULL,'Frameworks loaded through webinstaller','choice');
|
||||
insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('FRBRizeEditions','1','','Se ON, Koha farà delle richieste a uno o più ISBN web services per trovare gli ISBN associabili e li visualizzarà in un tab \'Edizioni\' nella visualizzazione dettagliata','YesNo');
|
||||
insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('gist','0','','Valore predefinito per la Goods and Services tax (l\'IVA) calcolato non in %, ma in forma numerica (0.12 for 12%), impostare a 0 per disabilitarla.','Float');
|
||||
insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('globalDueDate','','10','Se impostata forza un’unica data di scadenza per tutti i prestiti','free');
|
||||
insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('GoogleJackets','1','','Se ON, visualizza le copertine usando Google Books','YesNo');
|
||||
insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('hidelostitems','0','','Se ON, viene disabilitata la visualizzazione nell\'OPAC delle copie perse.','YesNo');
|
||||
insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('hide_marc','0','','Se su ON, disabilita la visualizzazione dei campi del MARC, codici di sottocampi e indicatori (mostra ancora i dati)','YesNo');
|
||||
|
|
@ -224,7 +223,6 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('casAuthentication', '0', 'Enable or disable CAS authentication', '', 'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('casLogout', '0', 'Does a logout from Koha should also log the user out of CAS?', '', 'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('casServerUrl', 'https://localhost:8443/cas', 'URL of the cas server', '', 'Free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ceilingDueDate','','If set, date due will not be past this date. Enter date according to the dateformat System Preference',NULL,'free');
|
||||
INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES ('CurrencyFormat','FR','US|FR','Determines the display format of currencies. eg: \'36000\' is displayed as \'360 000,00\' in \'FR\' or \'360,000.00\' in \'US\'.','Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('DisplayMultiPlaceHold','1','Display the ability to place multiple holds or not','','YesNo');
|
||||
INSERT INTO systempreferences (variable,value,options,explanation,type)VALUES('DisplayOPACiconsXSLT', '1', '', 'If ON, displays the format, audience, type icons in XSLT MARC21 results and display pages.', 'YesNo');
|
||||
|
|
@ -285,4 +283,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
|
|||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('AllowPurchaseSuggestionBranchChoice', 0, 'Allow user to choose branch when making a purchase suggestion','1','YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo');
|
||||
|
|
|
|||
|
|
@ -420,6 +420,7 @@ CREATE TABLE `categories` (
|
|||
`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',
|
||||
PRIMARY KEY (`categorycode`),
|
||||
UNIQUE KEY `categorycode` (`categorycode`)
|
||||
|
|
@ -965,6 +966,8 @@ CREATE TABLE `issuingrules` (
|
|||
`chargename` varchar(100) default NULL,
|
||||
`maxissueqty` int(4) default NULL,
|
||||
`issuelength` int(4) default NULL,
|
||||
`hardduedate` date default NULL,
|
||||
`hardduedatecompare` tinyint NOT NULL default "0",
|
||||
`renewalsallowed` smallint(6) NOT NULL default "0",
|
||||
`reservesallowed` smallint(6) NOT NULL default "0",
|
||||
`branchcode` varchar(10) NOT NULL default '',
|
||||
|
|
|
|||
|
|
@ -149,8 +149,6 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('emailLibrarianWhenHoldIsPlaced',0,'If ON, emails the librarian whenever a hold is placed',NULL,'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('numReturnedItemsToShow','20','Number of returned items to show on the check-in page',NULL,'Integer');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('finesMode','test','Choose the fines mode, \'off\', \'test\' (emails admin report) or \'production\' (accrue overdue fines). Requires accruefines cronjob.','off|test|production','Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('globalDueDate','','If set, allows a global static due date for all checkouts','10','free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ceilingDueDate','','If set, date due will not be past this date. Enter date according to the dateformat System Preference',NULL,'free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('itemBarcodeInputFilter','','If set, allows specification of a item barcode input filter','whitespace|T-prefix|cuecat','Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('singleBranchMode',0,'Operate in Single-branch mode, hide branch selection in the OPAC',NULL,'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('URLLinkText','','Text to display as the link anchor in the OPAC',NULL,'free');
|
||||
|
|
@ -298,3 +296,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES (
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo');
|
||||
|
|
|
|||
|
|
@ -177,7 +177,6 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('noItemTypeImages',0,'If ON, disables item-type images',NULL,'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('emailLibrarianWhenHoldIsPlaced',0,'If ON, emails the librarian whenever a hold is placed',NULL,'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('finesMode','test','Choose the fines mode, \'off\', \'test\' (emails admin report) or \'production\' (accrue overdue fines). Requires accruefines cronjob.','off|test|production','Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('globalDueDate','','If set, allows a global static due date for all checkouts','10','free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('itemBarcodeInputFilter','','If set, allows specification of a item barcode input filter','whitespace|T-prefix|cuecat','Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('singleBranchMode',0,'Operate in Single-branch mode, hide branch selection in the OPAC',NULL,'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('URLLinkText','','Text to display as the link anchor in the OPAC',NULL,'free');
|
||||
|
|
@ -286,7 +285,6 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('intranetbookbag','1','If ON, enables display of Cart feature in the intranet','','YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacSerialDefaultTab', 'subscriptions', 'Define the default tab for serials in OPAC.', 'holdings|serialcollection|subscriptions', 'Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('numReturnedItemsToShow','20','Number of returned items to show on the check-in page',NULL,'Integer');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ceilingDueDate','','If set, date due will not be past this date. Enter date according to the dateformat System Preference',NULL,'free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OAI-PMH:ConfFile','','If empty, Koha OAI Server operates in normal mode, otherwise it operates in extended mode.',NULL,'File');
|
||||
('OPACXSLTDetailsDisplay','0','','Enable XSL stylesheet control over details page display on OPAC','YesNo'),
|
||||
('OPACXSLTResultsDisplay','0','','Enable XSL stylesheet control over results page display on OPAC','YesNo'),
|
||||
|
|
@ -353,3 +351,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES (
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo');
|
||||
|
|
|
|||
|
|
@ -176,7 +176,6 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('noItemTypeImages',0,'If ON, disables item-type images',NULL,'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('emailLibrarianWhenHoldIsPlaced',0,'If ON, emails the librarian whenever a hold is placed',NULL,'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('finesMode','test','Choose the fines mode, \'off\', \'test\' (emails admin report) or \'production\' (accrue overdue fines). Requires accruefines cronjob.','off|test|production','Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('globalDueDate','','If set, allows a global static due date for all checkouts','10','free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('itemBarcodeInputFilter','','If set, allows specification of a item barcode input filter','whitespace|T-prefix|cuecat','Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('singleBranchMode',0,'Operate in Single-branch mode, hide branch selection in the OPAC',NULL,'YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('URLLinkText','','Text to display as the link anchor in the OPAC',NULL,'free');
|
||||
|
|
@ -311,7 +310,6 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('intranetbookbag','1','If ON, enables display of Cart feature in the intranet','','YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacSerialDefaultTab', 'subscriptions', 'Define the default tab for serials in OPAC.', 'holdings|serialcollection|subscriptions', 'Choice');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('numReturnedItemsToShow','20','Number of returned items to show on the check-in page',NULL,'Integer');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ceilingDueDate','','If set, date due will not be past this date. Enter date according to the dateformat System Preference',NULL,'free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OAI-PMH:ConfFile','','If empty, Koha OAI Server operates in normal mode, otherwise it operates in extended mode.',NULL,'File');
|
||||
('OPACXSLTDetailsDisplay','0','','Enable XSL stylesheet control over details page display on OPAC','YesNo'),
|
||||
('OPACXSLTResultsDisplay','0','','Enable XSL stylesheet control over results page display on OPAC','YesNo'),
|
||||
|
|
@ -378,3 +376,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES (
|
|||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','','free');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetFavicon','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','','free');
|
||||
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', '0', 'Create searches on all subdivisions for subject tracings.','1','YesNo');
|
||||
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages','1','',NULL,'YesNo');
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ use Getopt::Long;
|
|||
# Koha modules
|
||||
use C4::Context;
|
||||
use C4::Installer;
|
||||
use C4::Dates;
|
||||
|
||||
use MARC::Record;
|
||||
use MARC::File::XML ( BinaryEncoding => 'utf8' );
|
||||
|
|
@ -4134,6 +4135,37 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
|||
SetVersion ($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = '3.03.00.033';
|
||||
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
||||
$dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('StaffAuthorisedValueImages', '1', '', NULL, 'YesNo')");
|
||||
print "Upgrade to $DBversion done (System pref StaffAuthorisedValueImages)\n";
|
||||
SetVersion ($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = '3.03.00.034';
|
||||
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
||||
$dbh->do("ALTER TABLE `categories` ADD `hidelostitems` tinyint(1) NOT NULL default '0' AFTER `reservefee`");
|
||||
print "Upgrade to $DBversion done (Add hidelostitems preference to borrower categories)\n";
|
||||
SetVersion ($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = '3.03.00.035';
|
||||
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
||||
$dbh->do("ALTER TABLE `issuingrules` ADD hardduedate date default NULL AFTER issuelength");
|
||||
$dbh->do("ALTER TABLE `issuingrules` ADD hardduedatecompare tinyint NOT NULL default 0 AFTER hardduedate");
|
||||
my $duedate;
|
||||
if (C4::Context->preference("globalDueDate")) {
|
||||
$duedate = C4::Dates::format_date_in_iso(C4::Context->preference("globalDueDate"));
|
||||
$dbh->do("UPDATE `issuingrules` SET hardduedate = '$duedate', hardduedatecompare = 0");
|
||||
} elsif (C4::Context->preference("ceilingDueDate")) {
|
||||
$duedate = C4::Dates::format_date_in_iso(C4::Context->preference("ceilingDueDate"));
|
||||
$dbh->do("UPDATE `issuingrules` SET hardduedate = '$duedate', hardduedatecompare = -1");
|
||||
}
|
||||
$dbh->do("DELETE FROM `systempreferences` WHERE variable = 'globalDueDate' OR variable = 'ceilingDueDate'");
|
||||
print "Upgrade to $DBversion done (Move global and ceiling due dates to Circ Rules level)\n";
|
||||
SetVersion ($DBversion);
|
||||
}
|
||||
|
||||
=head1 FUNCTIONS
|
||||
|
||||
=head2 DropAllForeignKeys($table)
|
||||
|
|
|
|||
|
|
@ -411,7 +411,9 @@
|
|||
<select name="filter_budgetbranch" id="filter_budgetbranch2" style="width:10em;">
|
||||
<option value=""></option>
|
||||
<!-- TMPL_LOOP name="branchloop" -->
|
||||
<option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="branchname" --></option>
|
||||
<!-- TMPL_UNLESS Name="selected"--><option value="<!-- TMPL_VAR name="value" -->">
|
||||
<!--TMPL_ELSE--><option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- /TMPL_UNLESS -->
|
||||
<!-- TMPL_VAR name="branchname" --></option>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</select>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -151,6 +151,15 @@
|
|||
<option value="1">Yes</option>
|
||||
<!-- /TMPL_IF -->
|
||||
</select></li>
|
||||
<li><label for="hidelostitems">Lost items in staff client</label> <select name="hidelostitems" id="hidelostitems">
|
||||
<!-- TMPL_IF NAME="hidelostitems" -->
|
||||
<option value="0">Shown</option>
|
||||
<option value="1" selected="selected">Hidden by default</option>
|
||||
<!-- TMPL_ELSE -->
|
||||
<option value="0" selected="selected">Shown</option>
|
||||
<option value="1">Hidden by default</option>
|
||||
<!-- /TMPL_IF -->
|
||||
</select></li>
|
||||
<li><label for="reservefee">Hold fee: </label><input type="text" name="reservefee" id="reservefee" size="6" value="<!-- TMPL_VAR NAME="reservefee" -->" /></li>
|
||||
<li><label for="category_type">Category type: </label> <select name="category_type" id="category_type">
|
||||
<!-- TMPL_IF NAME="type_n" --><option value="" selected="selected">Select a Category type</option><!-- TMPL_ELSE --><option value="">Select a Category type</option><!-- /TMPL_IF -->
|
||||
|
|
@ -208,6 +217,7 @@ Confirm Deletion of Category <!-- TMPL_VAR NAME="categorycode" escape="html" -->
|
|||
<tr><th scope="row">Upperage limit: </th><td><!-- TMPL_VAR NAME="upperagelimit" --> years</td></tr>
|
||||
<tr><th scope="row">Enrollment fee: </th><td><!-- TMPL_VAR NAME="enrolmentfee" --></td></tr>
|
||||
<tr><th scope="row">Receives overdue notices: </th><td><!-- TMPL_IF NAME="overduenoticerequired" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td></tr>
|
||||
<tr><th scope="row">Lost items in staff client</th><td><!-- TMPL_IF NAME="hidelostitems" -->Hidden by default<!-- TMPL_ELSE -->Shown<!-- /TMPL_IF --></td></tr>
|
||||
<tr><th scope="row">Hold fee: </th><td><!-- TMPL_VAR NAME="reservefee" --></td></tr>
|
||||
</table>
|
||||
<fieldset class="action"><!-- TMPL_IF NAME="totalgtzero" -->
|
||||
|
|
@ -282,6 +292,7 @@ Confirm Deletion of Category <!-- TMPL_VAR NAME="categorycode" escape="html" -->
|
|||
<th scope="col">Upper age limit</th>
|
||||
<th scope="col">Enrollment fee</th>
|
||||
<th scope="col">Overdue</th>
|
||||
<th scope="col">Lost Items</th>
|
||||
<th scope="col">Hold fee</th>
|
||||
<!-- TMPL_IF NAME="EnhancedMessagingPreferences" -->
|
||||
<th scope="col">Messaging</th>
|
||||
|
|
@ -318,6 +329,7 @@ Confirm Deletion of Category <!-- TMPL_VAR NAME="categorycode" escape="html" -->
|
|||
<td><!-- TMPL_VAR NAME="upperagelimit" --> years</td>
|
||||
<td><!-- TMPL_VAR NAME="enrolmentfee" --></td>
|
||||
<td><!-- TMPL_IF NAME="overduenoticerequired" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
|
||||
<td><!-- TMPL_IF NAME="hidelostitems" -->Hidden<!-- TMPL_ELSE -->Shown<!-- /TMPL_IF --></td>
|
||||
<td><!-- TMPL_VAR NAME="reservefee" --></td>
|
||||
<!-- TMPL_IF NAME="EnhancedMessagingPreferences" -->
|
||||
<td>
|
||||
|
|
|
|||
|
|
@ -147,16 +147,6 @@ Circulation:
|
|||
choices:
|
||||
homebranch: the library the item is from.
|
||||
holdingbranch: the library the item was checked out from.
|
||||
-
|
||||
- Make all checkouts have a due date of
|
||||
- pref: globalDueDate
|
||||
class: date
|
||||
- .
|
||||
-
|
||||
- Make all checkouts due on or before
|
||||
- pref: ceilingDueDate
|
||||
class: date
|
||||
- .
|
||||
-
|
||||
- Calculate the due date using
|
||||
- pref: useDaysMode
|
||||
|
|
|
|||
|
|
@ -68,6 +68,12 @@ Staff Client:
|
|||
choices:
|
||||
local: "included with Koha (faster, will work if internet goes down)."
|
||||
"http://yui.yahooapis.com/2.5.1/build": "from Yahoo's own servers (less demand on your servers)."
|
||||
-
|
||||
- pref: StaffAuthorisedValueImages
|
||||
choices:
|
||||
yes: Show
|
||||
no: "Don't show"
|
||||
- images for <a href="/cgi-bin/koha/admin/authorised_values.pl">authorized values</a> (such as lost statuses and locations) in search results.
|
||||
Options:
|
||||
-
|
||||
- pref: viewMARC
|
||||
|
|
|
|||
|
|
@ -12,7 +12,12 @@ $(document).ready(function() {
|
|||
});
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<!-- Enable Calendar system -->
|
||||
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
|
||||
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
|
||||
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
|
||||
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
|
||||
<!-- End Calendar system additions -->
|
||||
</head>
|
||||
<body>
|
||||
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
||||
|
|
@ -68,6 +73,7 @@ for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
|
|||
<th>Item Type</th>
|
||||
<th>Current Checkouts Allowed</th>
|
||||
<th>Loan Period (day)</th>
|
||||
<th>Hard Due Date</th>
|
||||
<th>Fine Amount</th>
|
||||
<th>Fine Charging Interval</th>
|
||||
<th>Fine Grace period (day)</th>
|
||||
|
|
@ -102,6 +108,13 @@ for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
|
|||
<!-- /TMPL_IF -->
|
||||
</td>
|
||||
<td><!-- TMPL_VAR NAME="issuelength" --></td>
|
||||
<td><!-- TMPL_IF NAME="hardduedate" -->
|
||||
<!-- TMPL_IF NAME="hardduedatebefore" -->before <!-- TMPL_VAR NAME="hardduedate" --></td>
|
||||
<!-- TMPL_ELSE --><!-- TMPL_IF NAME="hardduedateexact" -->on <!-- TMPL_VAR NAME="hardduedate" --></td>
|
||||
<!-- TMPL_ELSE --><!-- TMPL_IF NAME="hardduedateafter" -->after <!-- TMPL_VAR NAME="hardduedate" --></td><!-- /TMPL_IF -->
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_ELSE -->None defined<!-- /TMPL_IF -->
|
||||
<td><!-- TMPL_VAR NAME="fine" --></td>
|
||||
<td><!-- TMPL_VAR NAME="chargeperiod" --></td>
|
||||
<td><!-- TMPL_VAR NAME="firstremind" --></td>
|
||||
|
|
@ -133,6 +146,29 @@ for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
|
|||
</td>
|
||||
<td><input name="maxissueqty" size="3" /></td>
|
||||
<td><input name="issuelength" size="3" /> </td>
|
||||
<td><select name="hardduedatecompare">
|
||||
<option value="-1">Before</option>
|
||||
<option value="0">Exactly on</option>
|
||||
<option value="1">After</option>
|
||||
</select>
|
||||
<input type="text" size="10" id="hardduedate" name="hardduedate" value="<!-- TMPL_VAR NAME="hardduedate" -->" />
|
||||
<!-- TMPL_INCLUDE NAME="date-format.inc" -->
|
||||
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="CalendarDueDate" style="cursor: pointer;"/>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function refocus(calendar) {
|
||||
document.getElementById('hardduedate').focus();
|
||||
calendar.hide();
|
||||
};
|
||||
Calendar.setup(
|
||||
{
|
||||
inputField : "hardduedate",
|
||||
ifFormat : "%m/%d/%Y",
|
||||
button : "CalendarDueDate",
|
||||
onClose: refocus
|
||||
}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
<td><input name="fine" size="4" /></td>
|
||||
<td><input name="chargeperiod" size="2" /></td>
|
||||
<td><input name="firstremind" size="2" /> </td>
|
||||
|
|
|
|||
|
|
@ -217,6 +217,7 @@ function verify_images() {
|
|||
|
||||
<div id="holdings">
|
||||
<!-- TMPL_IF name="count" -->
|
||||
<!-- TMPL_IF name="showncount" -->
|
||||
<table>
|
||||
<tr>
|
||||
<!-- TMPL_IF NAME="item_level_itypes" --><th>Item type</th><!-- /TMPL_IF -->
|
||||
|
|
@ -364,6 +365,10 @@ function verify_images() {
|
|||
</tr>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</table>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="hiddencount" -->
|
||||
<p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&showallitems=1">Show all items (<!-- TMPL_VAR NAME="hiddencount" --> hidden)</a>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="debug_display" -->
|
||||
<br /><br />
|
||||
<table>
|
||||
|
|
@ -371,7 +376,7 @@ function verify_images() {
|
|||
<tr><td>itemdata_copynumber</td><td><!-- TMPL_VAR NAME="itemdata_copynumber" --></td></tr>
|
||||
<tr><td>serial</td><td><!-- TMPL_VAR NAME="serial" --></td></tr>
|
||||
</table>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_ELSE -->
|
||||
<p>No physical items for this record</p>
|
||||
<!-- /TMPL_IF -->
|
||||
|
|
|
|||
|
|
@ -32,7 +32,8 @@
|
|||
<!-- TMPL_IF NAME="volumeddesc" --><li><span class="label">Volume:</span> <!-- TMPL_VAR NAME="volumeddesc" --></li><!-- /TMPL_IF -->
|
||||
<li><span class="label">Physical Details:</span> <!-- TMPL_VAR NAME="pages" --> <!-- TMPL_VAR NAME="illus" --> <!-- TMPL_VAR NAME="size" --> </li>
|
||||
<!-- TMPL_IF NAME="bnotes" --><li><span class="label">Notes:</span> <!-- TMPL_VAR NAME="bnotes" --></li><!-- /TMPL_IF -->
|
||||
<li><span class="label">No. of Items:</span> <!-- TMPL_VAR NAME="count" --> </li>
|
||||
<li><span class="label">No. of Items:</span> <!-- TMPL_VAR NAME="count" --> <!-- TMPL_IF NAME="hiddencount" -->total (<!-- TMPL_VAR NAME="showncount" --> shown / <!-- TMPL_VAR NAME="hiddencount" --> hidden)
|
||||
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&showallitems=1">Show all items</a><!-- /TMPL_IF --></li>
|
||||
</ol>
|
||||
<!-- /TMPL_LOOP -->
|
||||
<br clear="all" />
|
||||
|
|
|
|||
|
|
@ -415,7 +415,7 @@ No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
|
|||
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform">
|
||||
<fieldset id="circ_circulation_issue">
|
||||
<!-- TMPL_IF NAME="DisplayClearScreenButton" -->
|
||||
<input type=button value="Clear Screen" onClick="window.location = '/cgi-bin/koha/circ/circulation.pl'">
|
||||
<input type="button" value="Clear Screen" onclick="window.location = '/cgi-bin/koha/circ/circulation.pl'" />
|
||||
<!-- /TMPL_IF -->
|
||||
|
||||
<label for="barcode">Checking out to <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->) </label>
|
||||
|
|
|
|||
|
|
@ -57,9 +57,9 @@
|
|||
<td class="hq-callnumber"><!-- TMPL_VAR NAME="location" --> <!-- TMPL_VAR NAME="itemcallnumber"--> <!-- TMPL_VAR NAME="enumchron" --></td>
|
||||
<td class="hq-barcode">
|
||||
<!-- TMPL_IF NAME="item_level_request" -->
|
||||
<em>Only Item: </em><!-- TMPL_VAR NAME="barcode" -->
|
||||
<em>Only Item:</em> <strong><!-- TMPL_VAR NAME="barcode" --></strong>
|
||||
<!-- TMPL_ELSE -->
|
||||
<strong><!-- TMPL_VAR NAME="barcode" --></strong></br><em>or Any available</em>
|
||||
<strong><!-- TMPL_VAR NAME="barcode" --></strong> <em>or any available</em>
|
||||
<!-- /TMPL_IF -->
|
||||
</td>
|
||||
<td class="hq-patron"><p><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=<!-- TMPL_VAR NAME="cardnumber" -->#reserves"><!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)</a></p> <p><!-- TMPL_VAR NAME="phone" --></p></td>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,19 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h1>Vendor Contracts</h1>
|
||||
|
||||
<p>You can define contracts (with a start and end date) and attach it to a vendor. This is used so that at the end of the year you can see how much you spent on a specific contract with a vendor. In some places, contracts are set up with a minimum and maximum yearly amount.</p>
|
||||
|
||||
<h2>Add a Contract</h2>
|
||||
|
||||
<p>At the top of a vendor search results page with only result or at the top of a vendor information page you will see a 'New Contract' button.</p>
|
||||
|
||||
<p>The contract form will ask for some very basic information about the contract.</p>
|
||||
|
||||
<p style="color: #ff0000">Important: You will not be able to enter a contract retrospectively, the end date must not be before today's date.</p>
|
||||
|
||||
<p>Once the contract is saved it will appear below the vendor information.</p>
|
||||
|
||||
<p>It will also be an option when creating a basket.</p>
|
||||
|
||||
<!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
|
||||
|
|
@ -1,17 +1,13 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h1>Acquisitions Help</h1>
|
||||
<h1>Acquisitions</h1>
|
||||
|
||||
<h2>What is Acquisitions?</h2>
|
||||
<p>The Koha Acquisitions module provides a way where the library can record orders placed with vendors and manage purchase budgets.</p>
|
||||
<p>You do not need to use Acquisitions to add items to your catalog. If you do not want to track orders and budget expenditure, then use the <strong>"Add MARC" </strong>feature in <strong>Cataloging </strong>to add new bibliographic and item records.</p>
|
||||
|
||||
<h2>How to place an order?</h2>
|
||||
<p>You do not need to use Acquisitions to add items to your catalog, Acquisitions is used only to track vendors and spending against your budgets.</p>
|
||||
|
||||
<p>To place an order, the first step is to locate your Vendor (supplier). If no Vendor exists, you will need to create one. Once you have a Vendor you can place an order.</p><h2>What needs to be setup to use Acquisitions?</h2>
|
||||
<p>To make the most of acquisitions the following needs to be setup under <strong>System Administration</strong></p>
|
||||
<ul>
|
||||
<li><strong>Budgets and Funds</strong> - "Funds" are used to group "Budgets". For example a Fund may be called "General Stack", and will have a "Budget" which records the amount availalbe to spend during the period of the budget. A budget must have a start and end date.</li>
|
||||
<li><strong>Exchange Rates (optional)- </strong>If making purchases in overseas currency, the exchange rate will need to be set realtive to your local currency. Remember that your local currency should be set to 1.00<br/><strong>NOTE: Exchanges Rates need to be updated manually.</strong></li>
|
||||
<li><strong>Vendor(s) - </strong>These are the entities where items are purchased, or donated from. Orders are placed with Vendors.</li>
|
||||
</ul><!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
|
||||
<p>Before using the Acquisitions Module you will want to make sure that you have completed all of the set up.</p>
|
||||
|
||||
<p>First, set your Acquisitions System Preferences and Acquisitions Administration to match your library's workflow.</p>
|
||||
|
||||
<!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
|
||||
|
|
@ -1,20 +1,95 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h1>Placing an Order Help</h1>
|
||||
<h2>Placing an Order</h2>
|
||||
|
||||
<h2>What is a Basket and Order?</h2>
|
||||
<p>A Basket is used to group a set of order lines. An order is placed for an individual item.</p>
|
||||
<p>An Order can have multiple copies/units placed against it. A Basket can have multiple Orders.</p>
|
||||
<p>Once your basket is created you are presented with several options for adding items to the order.</p>
|
||||
|
||||
<h2>How do I add Items to an Order?</h2>
|
||||
<ol>
|
||||
<li><strong>From an existing record -</strong> Use the search to locate the bibliographic record of the item that you wish to order more copies of.</li>
|
||||
<li><strong>From A Suggestion - </strong>view suggestions placed by Patrons and add to the item to the basket.</li>
|
||||
<li><strong>From a new (empty) record - </strong>If you know that the item is not in the library already, then create a new record from scratch.</li>
|
||||
</ol>
|
||||
|
||||
<h3>TIP: Always check your Catalog first </h3>
|
||||
<p>It is highly advisable that you get in the habit of checking the catalog first before placing an order for a new item. This saves unnecessary duplicate bibliographic records in your database and any need to merge/deduplicate records.</p>
|
||||
<ul>
|
||||
<li>If you are ordering another copy of an existing item, you can simply search for the record in your system
|
||||
<ul>
|
||||
<li>From the results, simply click 'Order' to be brought to the order form
|
||||
<ul>
|
||||
<li>All of the details associated with the item will already be listed under 'Catalog details'</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>If you allow patrons to make purchase suggestions (learn more in the Managing Suggestions section of this manual) then you can place orders from those suggestions
|
||||
<ul>
|
||||
<li>
|
||||
<ul>
|
||||
<li>From this form you can make changes to the Catalog Details if necessary</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>To order from a record that can't be found anywhere else, choose the 'From a new (empty) record'
|
||||
<ul>
|
||||
<li>You will be presented with an empty form to fill in all of the necessary details about the item you are ordering</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>If you want to search other libraries for an item to purchase you can use the 'From an external source' option which will allow you to order from a MARC record found via a Z39.50 search
|
||||
<ul>
|
||||
<li>From the results click the Order link next to the item you want to purchase</li>
|
||||
<li>If the item you're ordering from an external source looks like it might be a duplicate, Koha will warn you and give you options on how to proceed
|
||||
<ul>
|
||||
<li>From the warning you can choose to just order another copy on the existing bib record, create a new bib record, or cancel your order of this item.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>In the order form that pops up you will not be able to edit the catalog details</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>The final option for ordering is to order from a staged record (learn more about staging records)
|
||||
<ul>
|
||||
<li>From the list of files you are presented with, choose the 'Add orders' link
|
||||
<ul>
|
||||
<li>From the list of records, click 'Add order' next to the item you want to add to your order
|
||||
<ul>
|
||||
<li>From the order form you will not be able to edit the catalog details.</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h2>Do I have to "Close" a Basket?</h2>
|
||||
<p>No, this is not necessary, you will still be able to mark items received without closing a basket. Closing a basket is good practice for keeping track of late orders which is discussed in this manual.</p><!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
|
||||
<p>Once you have entered the info about the item you need to enter the Accounting information.</p>
|
||||
|
||||
<ul>
|
||||
<li>Quantity is populated by the number of items you've added to the order above</li>
|
||||
<li>The list of funds is populated by the funds you have assigned in the Acquisitions Administration area.</li>
|
||||
<li>The vendor price will be used to calculate the rest of the amount fields below</li>
|
||||
<li>If the price is uncertain, check the uncertain price box.
|
||||
<ul>
|
||||
<li>A basket with at least one uncertain price can't be closed</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>If you added Planning Values when creating the Fund those values will appear in the two planning value fields</li>
|
||||
</ul>
|
||||
|
||||
<p>Once an item is added to the basket you will be presented with a basket summary.</p>
|
||||
|
||||
<p>From here you can edit or remove the items you have added.</p>
|
||||
|
||||
<p>Also on the summary page you have the option to edit the information you entered about the basket by clicking the 'Edit basket header information' button, deleting the basket altogether by clicking the 'Delete this basket' button, or exporting your basket as a CSV file by clicking the 'Export this basket as CSV' button.</p>
|
||||
|
||||
<p>Once you're sure your basket is complete you can click 'Close this basket' button to indicate that this basket is complete and has been sent to the vendor.</p>
|
||||
|
||||
<p style="color: #ff0000">Important: A basket with at least one items marked as 'uncertain price' will not be able to be closed</p>
|
||||
|
||||
<p>Clicking the 'Uncertain Prices' button will up a list of items with uncertain prices to quick editing.</p>
|
||||
|
||||
<p style="color: #ff0000">Important: The Uncertain Prices page is independent of the basket, it is linked to the vendor, so you will see all items on order for this vendor with uncertain prices.</p>
|
||||
|
||||
<h2>Printing Baskets</h2>
|
||||
|
||||
<p>When you are finished adding items to your basket you want to click 'Close this Basket'</p>
|
||||
|
||||
<p>You will be asked if you want to create a purchase order at this time.</p>
|
||||
|
||||
<p>Your completed order will be listed on the Basket Grouping page for the printing or further modification.</p>
|
||||
|
||||
<p>Clicking 'Print' below your order will generate a PDF for printing. The PDF will have all of your library information followed by the items in your order.</p>
|
||||
|
||||
<!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h1>Basket Groups</h1>
|
||||
|
||||
<p>A basket group is a group of closed baskets that you can perform actions on.</p>
|
||||
|
||||
<h2>Create a basket group</h2>
|
||||
|
||||
<p>A basket group is simply a group of baskets. In some libraries, you have several staff members that create baskets, and, at the end of a period of time, someone then groups them together to send to the vendor in bulk. That said, it is possible to have one basket in a basket group if that's the workflow used in your library.</p>
|
||||
|
||||
<!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
|
||||
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h2>Adding a Basket</h2>
|
||||
|
||||
<p>When adding a basket you want to give it a name that will help you identify it later. The notes fields are optional and can contain any type of information.</p>
|
||||
|
||||
<p>If you have added contracts to the vendor you're ordering from, you will also have an option to choose which contract you're ordering these items under.</p>
|
||||
|
||||
<p>When finished, click 'Save'</p>
|
||||
|
||||
<h2>Editing Basket Headers</h2>
|
||||
|
||||
<p>After creating your basket you can edit the name of the basket, the notes associated with it and the contract you're ordering against.</p>
|
||||
|
||||
<!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
|
||||
|
||||
|
|
@ -1,58 +1,9 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h1>Ordering</h1>
|
||||
<ul>
|
||||
<li>Click 'New order'</li>
|
||||
<li>You can add a new order from a book you already have in your catalog, a suggestion from a patron or an empty form.
|
||||
<ul>
|
||||
<li>
|
||||
<span style="background-color: #ffe599">
|
||||
TIP: For instructions on ordering from a suggestion see 'Managing Suggestions' in this manual</span></li>
|
||||
</ul></li>
|
||||
<li>To order from an existing record, search for the record in your system</li>
|
||||
<li>To order a new book, click 'From a new (empty) record'</li>
|
||||
<li>Fill in the fields for your order.
|
||||
<ul>
|
||||
<li>
|
||||
<span style="background-color: #ffe599">
|
||||
TIP: After entering a quantity and vendor price, the other fields will be calculated automatically.</span></li>
|
||||
<li>
|
||||
Actual Cost will be used to subtract from your budgets (whereas the other fees will be used when calculating replacement costs)</li>
|
||||
</ul></li>
|
||||
<li>After clicking 'Save' you will be brought to an order summary</li>
|
||||
<li>If you are done adding to that order, click the 'Close this basket' link
|
||||
<ul>
|
||||
<li>
|
||||
<span style="background-color: #ffe599">
|
||||
TIP: This is not necessary, you will still be able to mark items received without closing a basket. Closing a basket is good practice for keeping track of late orders which is discussed in this manual.</span></li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
<p>
|
||||
<font size="4" id="bfed"><strong>Receiving Orders</strong></font>After your orders have been entered into the system and sent off to the vendors, you will need to mark them received.
|
||||
<span style="background-color: #ffe599">
|
||||
TIP: To receive serials see the 'Receiving Serials' part of this manual.</span></p>
|
||||
<ul>
|
||||
<li>To receive an order click 'Receive Shipment'</li>
|
||||
<li>Enter the invoice number is 'Vendor invoice' and the shipment date in 'Shipment date'</li>
|
||||
<li>Click 'Save'</li>
|
||||
<li>You'll need to choose which items arrived in this shipment</li>
|
||||
<li>Either search by title or ISBN or click 'Receive order' next to the item you'd like to mark as received</li>
|
||||
<li>Be sure to update the 'Quantity received' as well as any other information you need for your records
|
||||
<ul>
|
||||
<li>
|
||||
<span style="background-color: #ffe599">
|
||||
TIP: To add another received item, click the '+' (plus) icon at the bottom left. If you add too many click the '-' (minus) to the right of the '+' (plus)</span></li>
|
||||
</ul></li>
|
||||
<li>Click 'Save'</li>
|
||||
<li>You will now see the received items in the summary of 'Items in this shipment'</li>
|
||||
<li>When you've added all of the items to your shipment you can browse away from the page.
|
||||
<ul>
|
||||
<li>To make edits to your shipment return to Acquisitions and search for the vendor in question.
|
||||
<ul>
|
||||
<li>Click the 'Receive Parcel' button</li>
|
||||
<li>Your previous orders will be searchable and editable from here</li>
|
||||
</ul></li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
<h1>Vendor Search</h1>
|
||||
|
||||
<p>At the top of the various Acquisition pages there is a quick search box where you can perform either a Vendor Search or an Order Search.</p>
|
||||
|
||||
<p>In the Vendor Search you can enter any part of the vendor name to get results.</p>
|
||||
|
||||
<!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
|
||||
|
|
@ -1,13 +1,15 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h1>Late Orders</h1>
|
||||
<p>
|
||||
Late orders is a report that checks for orders that were placed X days ago and still haven't been marked as received.
|
||||
</p>
|
||||
<ul>
|
||||
<li>Click on 'Late Orders' on the menu on the left</li>
|
||||
<li>You will be presented with a list of orders with baskets that have been closed for 30+ days</li>
|
||||
</ul>
|
||||
<h1>Claims & Late Orders</h1>
|
||||
|
||||
<p>If you have entered in an email address for the vendors in your system you can send them claim emails when an order is late. Before you can send claims you will need to set up an acquisitions claim notice.</p>
|
||||
|
||||
<p>Upon clicking on the link to 'Late Orders' from the Acquisitions page you will be presented with a series of filter options on the left hand side.</p>
|
||||
|
||||
<p>Once you filter your orders to show you the things you consider to be late you will be presented with a list of these items.</p>
|
||||
|
||||
<p>To the right of each late title you will be see a checkbox. Check off the ones you want a claim letter sent to and click 'Claim Order.' This will automatically send an email to the vendor at the email address you have on file.</p>
|
||||
|
||||
<p>If you would rather use a different acquisition claim letter (other than the default) you can create that in the notices module and choose it from the menu above the list of late items.</p>
|
||||
|
||||
<!-- TMPL_INCLUDE name="help-bottom.inc" -->
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h1>Order from an Existing Record</h1>
|
||||
|
||||
<p>If you are ordering another copy of an existing item, you can simply search for the record in your system</p>
|
||||
|
||||
<ul>
|
||||
<li>From the results, simply click 'Order' to be brought to the order form
|
||||
<ul>
|
||||
<li>All of the details associated with the item will already be listed under 'Catalog details'</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- TMPL_INCLUDE name="help-bottom.inc" -->
|
||||
|
|
@ -1,18 +1,11 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h1>Order Details Help</h1>
|
||||
<h1>Order from a New Empty Record</h1>
|
||||
|
||||
<h2>What is the "Vendor Price"?</h2>
|
||||
<p>The vendor price is the price given to you by the vendor, sometimes called the "List Price". Depending on how the Vendor is setup this may or maynot include any discount given to you by the vendor and/or any sales tax. See Vendors for more information.</p>
|
||||
<p>To order from a record that can't be found anywhere else, choose the 'From a new (empty) record'</p>
|
||||
|
||||
<h2>What is the "Replacement Price"?</h2>
|
||||
<p>The replacement price is the total cost of what it would cost to replace the item if you had to purchase the item retail at recommended retail. This is the amount that a patron could be charged if item is lost or damaged beyond repair.</p>
|
||||
|
||||
<h2>What is the "Budgeted Price"?</h2>
|
||||
<p>This is the price you expect to pay for the item, including any discount and any relevant sales tax (depending on the vendor setup) and is the amount that will be charged to your <strong>Committed budget</strong>.</p>
|
||||
|
||||
<h2>What is the "Actual Price"?</h2>
|
||||
<p>This is the price that shows on the invoice or packing slip when you receive the item. When placing an order, Koha will automatically calculate this for you. When an item is received, this can be over keyed with the actual value. This is to take into account any slight differences in rounding or price fluctuations between ordering the item and actually recieving it.</p>
|
||||
<p>The Actual price is what is committed to your <strong>Spent budget</strong>.</p>
|
||||
<ul>
|
||||
<li>You will be presented with an empty form to fill in all of the necessary details about the item you are ordering</li>
|
||||
</ul>
|
||||
|
||||
<!-- TMPL_INCLUDE name="help-bottom.inc" -->
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h1>Order from Purchase Suggestion</h1>
|
||||
|
||||
<p>If you allow patrons to make purchase suggestions then you can place orders from those suggestions</p>
|
||||
|
||||
<ul>
|
||||
<li>From this form you can make changes to the Catalog Details if necessary</li>
|
||||
</ul>
|
||||
|
||||
<!-- TMPL_INCLUDE name="help-bottom.inc" -->
|
||||
|
|
@ -1,21 +1,17 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h1>Receiving Orders Help</h1>
|
||||
<h1>Receiving Orders</h1>
|
||||
|
||||
<h2>How do I receive items that have arrived?</h2>
|
||||
<p>Firstly, check the catalog details that you are recieiving the right item. If these are correct, you can add the item details.</p>
|
||||
<p>For each item you will need to check the following:</p>
|
||||
<ul>
|
||||
<li><strong>Volume/Copy </strong>for Serials</li>
|
||||
<li><strong>Item Barcode</strong> scan or enter the barcode that has been assigned to the item</li>
|
||||
<li><strong>Home Library </strong>choose the home library for the item from the drop down list</li>
|
||||
<li><strong>Item Type </strong>choose the item type from the drop down.</li>
|
||||
</ul>
|
||||
|
||||
<h2>How do I receive multiple identical items?</h2>
|
||||
<p>If you have ordered multiple copies of the same item, then use the "+" to bring up another <strong>Item Details</strong> input fieldset.</p>
|
||||
<p>For each copy you will need to set that Item Barcode, Home Library and Item Type.</p>
|
||||
<p>Each time you add a new item, the <strong>Quantity Received</strong> under <strong>Accounting Details</strong> should be updated.</p>
|
||||
<p>If you press the "+" by mistake, use the "-" button to remove the unwanted Item Details <strong>input fieldset </strong></p>
|
||||
<p>Orders can be received from the vendor information page or the vendor search results page.</p>
|
||||
|
||||
<p>After clicking 'Receive shipment' you will be asked to enter a vendor invoice number and a shipment received date.</p>
|
||||
|
||||
<p>The receive page will list all items still on order with the vendor regardless of the basket the item is from.</p>
|
||||
|
||||
<p>To receive a specific item, click the 'Receive' link to the right of the item.</p>
|
||||
|
||||
<p>From this form you can alter the cost information. You can also choose to only receive 1 of multiple items if only 1 arrived. Once you have made any changes necessary, click 'Save' to mark the item as received.</p>
|
||||
|
||||
<p>You will also see that the item is received if you view the basket.</p>
|
||||
|
||||
<!-- TMPL_INCLUDE name="help-bottom.inc" -->
|
||||
|
|
@ -1,30 +1,17 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h1>Receiving Orders</h1>
|
||||
<p>After your orders have been entered into the system and sent off to the vendors, you will need to mark them received. <span style="background-color: #ffe599">
|
||||
TIP: To receive serials see the 'Receiving Serials' part of this manual.</span></p>
|
||||
<ul>
|
||||
<li>To receive an order click 'Receive Shipment'</li>
|
||||
<li>Enter the invoice number is 'Vendor invoice' and the shipment date in 'Shipment date'</li>
|
||||
<li>Click 'Save'</li>
|
||||
<li>You'll need to choose which items arrived in this shipment</li>
|
||||
<li>Either search by title or ISBN or click 'Receive order' next to the item you'd like to mark as received</li>
|
||||
<li>Be sure to update the 'Quantity received' as well as any other information you need for your records
|
||||
<ul>
|
||||
<li>
|
||||
<span style="background-color: #ffe599">
|
||||
TIP: To add another received item, click the '+' (plus) icon at the bottom left. If you add too many click the '-' (minus) to the right of the '+' (plus)</span></li>
|
||||
</ul></li>
|
||||
<li>Click 'Save'</li>
|
||||
<li>You will now see the received items in the summary of 'Items in this shipment'</li>
|
||||
<li>When you've added all of the items to your shipment you can browse away from the page.
|
||||
<ul>
|
||||
<li>To make edits to your shipment return to Acquisitions and search for the vendor in question.<br/>
|
||||
<ul>
|
||||
<li>Click the 'Receive Parcel' button</li>
|
||||
<li>Your previous orders will be searchable and editable from here</li>
|
||||
</ul></li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
|
||||
<p>Orders can be received from the vendor information page or the vendor search results page.</p>
|
||||
|
||||
<p>After clicking 'Receive shipment' you will be asked to enter a vendor invoice number and a shipment received date.</p>
|
||||
|
||||
<p>The receive page will list all items still on order with the vendor regardless of the basket the item is from.</p>
|
||||
|
||||
<p>To receive a specific item, click the 'Receive' link to the right of the item.</p>
|
||||
|
||||
<p>From this form you can alter the cost information. You can also choose to only receive 1 of multiple items if only 1 arrived. Once you have made any changes necessary, click 'Save' to mark the item as received.</p>
|
||||
|
||||
<p>You will also see that the item is received if you view the basket.</p>
|
||||
|
||||
<!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
|
||||
|
|
@ -2,29 +2,16 @@
|
|||
|
||||
<h1>Receiving Orders</h1>
|
||||
|
||||
<p>After your orders have been entered into the system and sent off to the vendors, you will need to mark them received.</p>
|
||||
<p>Orders can be received from the vendor information page or the vendor search results page.</p>
|
||||
|
||||
<ul>
|
||||
<li>You must first pick a vendor</li>
|
||||
<li>After searching for a vendor you will see all open orders on a summary page</li>
|
||||
<li>To receive an order click 'Receive order' (link) or 'Receive Parcel' (button)</li>
|
||||
<li>Enter the invoice number is 'Vendor invoice' and the shipment date in 'Shipment date'</li>
|
||||
<li>Click 'Save'</li>
|
||||
<li>You'll need to choose which items arrived in this shipment</li>
|
||||
<li>Either search by title or ISBN or click 'Receive order' next to the item you'd like to mark as received</li>
|
||||
<li>Be sure to update the 'Quantity received' as well as any other information you need for your records
|
||||
<ul>
|
||||
<li>
|
||||
<span style="background-color: #ffe599">
|
||||
TIP: To add another received item, click the '+' (plus) icon at the bottom left. If you add too many click the '-' (minus) to the right of the '+' (plus)</span></li>
|
||||
</ul></li>
|
||||
<li>Click 'Save'</li>
|
||||
<li>You will now see the received items in the summary of 'Items in this shipment'</li>
|
||||
<li>When you've added all of the items to your shipment you can browse away from the page.
|
||||
<ul>
|
||||
<li>To make edits to your shipment return to Acquisitions and search for the vendor in question.</li>
|
||||
<li>Click the 'Receive Parcel' button</li>
|
||||
<li>Your previous orders will be searchable and editable from here</li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
</div> <!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
|
||||
<p>After clicking 'Receive shipment' you will be asked to enter a vendor invoice number and a shipment received date.</p>
|
||||
|
||||
<p>The receive page will list all items still on order with the vendor regardless of the basket the item is from.</p>
|
||||
|
||||
<p>To receive a specific item, click the 'Receive' link to the right of the item.</p>
|
||||
|
||||
<p>From this form you can alter the cost information. You can also choose to only receive 1 of multiple items if only 1 arrived. Once you have made any changes necessary, click 'Save' to mark the item as received.</p>
|
||||
|
||||
<p>You will also see that the item is received if you view the basket.</p>
|
||||
|
||||
<!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
|
||||
|
|
@ -1,43 +1,51 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h1>Creating a vendor</h1>
|
||||
<h1>Vendors</h1>
|
||||
|
||||
<ul>
|
||||
<li>Search for the vendor you want by using the 'Vendor Search' at the top.</li>
|
||||
<li>If 'no results found', click on 'New Vendor'.</li>
|
||||
<li>Enter the contact information for your vendor
|
||||
<ul>
|
||||
<li>
|
||||
<span style="background-color: #ffff99">
|
||||
TIP: Only the 'Company Name' is required but the more contact information you provide, the easier it will be to contact vendors when necessary</span></li>
|
||||
</ul></li>
|
||||
<li>Enter additional infomration for your vendor
|
||||
<ul>
|
||||
<li>Active/Inactive<br/>
|
||||
<ul>
|
||||
<li>Orders can only be placed against Active vendors.</li>
|
||||
<li>
|
||||
<span style="background-color: #ffe599">
|
||||
TIP: Mark vendors inactive if you no longer order from them or if they merged with another vendor, but you want to keep the data of your orders with them</span></li>
|
||||
</ul></li>
|
||||
<li>Preferred publishers<br/>
|
||||
<ul>
|
||||
<li>This is for information only and is a space where you can record what the vendor sells</li>
|
||||
</ul></li>
|
||||
<li>List Prices/Invoice Prices<br/>
|
||||
<ul>
|
||||
<li>If using multiple currencies you will need to pick which currency the totals are in when listed by the vendor and on the invoice.</li>
|
||||
<li>
|
||||
<span style="background-color: #ffe599">
|
||||
TIP: Some vendors will list the prices in their own currency, but bill in your currency</span></li>
|
||||
</ul></li>
|
||||
<li>Discount<br/>
|
||||
<ul>
|
||||
<li>Some vendors will offer a blanket discount to all orders placed with them, this will be calculated from their list price.</li>
|
||||
</ul></li>
|
||||
<li>Notes
|
||||
<ul>
|
||||
<li>Include any notes that you may want to record for internal purposes.</li>
|
||||
</ul></li>
|
||||
</ul></li>
|
||||
</ul><!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
|
||||
<p>Before any orders can be places you must first enter at least one vendor.</p>
|
||||
|
||||
<h2>Add a Vendor</h2>
|
||||
|
||||
<p>To add a vendor click the 'New Vendor' button on the Acquisitions page.</p>
|
||||
|
||||
<p>The vendor add form is broken into three pieces.</p>
|
||||
|
||||
<ul>
|
||||
<li>The first section is for basic information about the Vendor
|
||||
<ul>
|
||||
<li>Of these fields, only the Vendor name is required, the rest of the information should be added to help with generating claim letters and invoices</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>The second section is for information regarding your contact at the Vendor's office
|
||||
<ul>
|
||||
<li>None of these fields are required, they should only be entered if you want to keep track of your contact's information within Koha</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>The final section is for billing information
|
||||
<ul>
|
||||
<li>To be able to order from a vendor you must make them 'Active'</li>
|
||||
<li>For List Prices and Invoice Prices choose the currency
|
||||
<ul>
|
||||
<li>Currencies are assigned in the Currencies & Exchange Rates admin area</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>If the vendor offers a consistent blank discount, enter that in the 'Discount' field
|
||||
<ul>
|
||||
<li>You can enter item specific discounts when placing an order</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>GST rate is for any tax the vendor may charge</li>
|
||||
<li>Notes are for internal use</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h2>View/Edit a Vendor</h2>
|
||||
|
||||
<p>To view a vendor's information page you must search for the vendor from the Acquisitions home page. Your search can be for any part of the Vendor's name.</p>
|
||||
|
||||
<p>From the results, click on the name of the vendor you want to view or edit.</p>
|
||||
|
||||
<p>To make changes to the vendor, simply click the 'Edit' button.</p>
|
||||
|
||||
<!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h1>Order from an External Source</h1>
|
||||
|
||||
<p>If you want to search other libraries for an item to purchase you can use the 'From an external source' option which will allow you to order from a MARC record found via a Z39.50 search</p>
|
||||
|
||||
<ul>
|
||||
<li>From the results click the Order link next to the item you want to purchase</li>
|
||||
<li>If the item you're ordering from an external source looks like it might be a duplicate, Koha will warn you and give you options on how to proceed
|
||||
<ul>
|
||||
<li>From the warning you can choose to just order another copy on the existing bib record, create a new bib record, or cancel your order of this item.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>In the order form that pops up you will not be able to edit the catalog details</li>
|
||||
</ul>
|
||||
|
||||
<!-- TMPL_INCLUDE name="help-bottom.inc" -->
|
||||
|
|
@ -1,65 +1,24 @@
|
|||
<!-- TMPL_INCLUDE NAME="help-top.inc" -->
|
||||
|
||||
<h1>Suggestions Management</h1>
|
||||
<h2>What are Purchase Suggestions?</h2>
|
||||
<p>
|
||||
Purchase suggestions give the users of the OPAC a way to lodge requests for the library to purchase for items.
|
||||
</p>
|
||||
<p>
|
||||
<span style="color: #990000">IMPORTANT: To use this feature, purchase suggestions need to be turned on in
|
||||
system preferences.</span> <br />
|
||||
<h1>Purchase Suggestions</h1>
|
||||
|
||||
</p>
|
||||
<ul>
|
||||
<li><em>Get there:</em> More > Administration > Global System Preferences > OPAC > suggestion</li>
|
||||
</ul>
|
||||
<span style="color: #990000">IMPORTANT: Suggestions are only managed here if the emailPurchaseSuggestions preference is turned off.<br /></span>
|
||||
<p>Depending on your settings in the suggestion system preference, patrons may be able to make purchase suggestions via the OPAC. When a suggestion is waiting for library review, it will appear on the Acquisitions home page in the list of links on the left of the page.</p>
|
||||
|
||||
<ul>
|
||||
<li><em>Get there:</em> More > Administration > Global System Preferences > Acquisitions > emailPurchaseSuggestions</li>
|
||||
</ul>
|
||||
<h2>Manage Suggestions<br />
|
||||
</h2>
|
||||
<p>
|
||||
To manage suggestions, go to More > Acquisitions
|
||||
</p>
|
||||
<ul>
|
||||
<li>Click 'Manage suggestions'</li>
|
||||
<li>If you have suggestions to manage they will appear here
|
||||
</li>
|
||||
<li style="color: #990000">IMPORTANT: You need to have authorized values for 'Reason' already set before working with suggestions</li>
|
||||
<ul>
|
||||
<li style="background-color: #ffe599">TIP: Reasons are the librarian's reason for accepting/rejecting request</li>
|
||||
<li>If reasons are not set the Suggestions page will look like this:<br />
|
||||
</li>
|
||||
<li>If you get this error, click 'authorized values'
|
||||
<ul>
|
||||
<li style="background-color: #ffe599">TIP: You can also edit these values by going to More > Administration > Authorized Values</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Choose SUGGEST from the pull down
|
||||
<br />
|
||||
</li>
|
||||
<li>Enter a short 'Authorized value' and a longer 'Description' (this second field is optional)<br />
|
||||
</li>
|
||||
<li>This will result in a list of values that can be added to or edited at any time
|
||||
<br />
|
||||
</li>
|
||||
<li>It will also add these values to the pull down on the manage suggestions page
|
||||
<br />
|
||||
</li>
|
||||
</ul>
|
||||
<li>If there are no errors, continue to approving or rejecting the request and submitting a reason
|
||||
<br />
|
||||
</li>
|
||||
<li style="background-color: #ffe599">TIP: By choosing 'Others...' from the reason pull down you will be able to enter a free text reason.<br />
|
||||
</li>
|
||||
<li>After choosing your reason, click 'Change Status'</li>
|
||||
<li style="background-color: #ffe599">TIP: Statuses can be updated in bulk by choosing from the pull down at the bottom and clicking 'Mark all with this reason'<br />
|
||||
</li>
|
||||
<li>The item will be moved to the 'Accepted' or 'Rejected' menu</li>
|
||||
<li>If you accidentally pick the wrong option (accept or reject) you can always edit your selection by visiting the appropriate tab</li>
|
||||
</ul>
|
||||
<p>Clicking 'Manage suggestions' will take you to the suggestion management tool. If there are no pending suggestions you can access the suggestion management tool by clicking the 'Manage suggestions' link on the menu on the left of the Acquisitions page.</p>
|
||||
|
||||
<p>Your suggestions will be sorted into three categories: Accepted, Pending, and Rejected. Each accepted or rejected suggestion will show the name of the librarian who managed the suggestion and the reason they gave for accepting or rejecting it (found under 'Status').</p>
|
||||
|
||||
<p>For libraries with lots of suggestions, there are filters on the left hand side of the Manage Suggestions page to assist in limiting the number of titles displayed on the screen.</p>
|
||||
|
||||
<p>Clicking on the blue headings will expand the filtering options and clicking '[clear]' will clear all filters and show all suggestions.</p>
|
||||
|
||||
<p>When reviewing 'Pending' suggestions you can choose to check the box next to the item(s) you want to approve/reject and then choose the status and reason for your selection. You can also choose to completely delete the suggestion by checking the 'Delete selected' box.</p>
|
||||
|
||||
<p>Reasons for accepting and rejecting suggestions are defined by the SUGGEST authorized value.</p>
|
||||
|
||||
<p>If you choose 'Others...' as your reason you will be prompted to enter your reason in a text box. Clicking 'Cancel' to the right of the box will bring back the pull down menu with authorized reasons.</p>
|
||||
|
||||
<p>Once you have clicked 'Submit' the suggestion will be moved to the matching tab. The status will also be updated on the patron's account in the OPAC and an email notice will be sent to the patron using the template that matches the status you have chosen.</p>
|
||||
|
||||
<!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
|
||||
|
||||
|
|
|
|||
|
|
@ -391,6 +391,7 @@ function checkMultiHold() {
|
|||
<th>Information</th>
|
||||
</tr>
|
||||
<!-- TMPL_LOOP Name="itemloop" -->
|
||||
<!-- TMPL_UNLESS NAME="hide"-->
|
||||
<tr class="<!-- TMPL_VAR NAME="backgroundcolor" -->">
|
||||
<td>
|
||||
<!-- TMPL_IF NAME="available" -->
|
||||
|
|
@ -458,9 +459,14 @@ function checkMultiHold() {
|
|||
<!-- /TMPL_IF -->
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /TMPL_UNLESS --> <!--UNLESS item hide-->
|
||||
<!-- /TMPL_LOOP --> <!-- itemloop -->
|
||||
</table>
|
||||
|
||||
<!-- TMPL_IF NAME=hiddencount -->
|
||||
<form>
|
||||
<p class="hiddencount"><a href="request.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->&cardnumber=<!-- TMPL_VAR NAME="cardnumber" -->&showallitems=1">Show all items (<!--TMPL_VAR NAME="hiddencount" --> hidden)</a></p>
|
||||
</form>
|
||||
<!-- /TMPL_IF --> <!-- hiddencount -->
|
||||
<!-- /TMPL_LOOP --> <!-- bibitemloop -->
|
||||
|
||||
<!-- TMPL_ELSE --><!-- UNLESS multi_hold -->
|
||||
|
|
|
|||
|
|
@ -247,7 +247,15 @@
|
|||
<!--/TMPL_IF-->
|
||||
<!-- /TMPL_LOOP -->
|
||||
</select>
|
||||
|
||||
<!-- TMPL_IF NAME="searchdomainloop" -->
|
||||
<p>OR</p> <!-- should addjs to grey out group pulldown if a library is selected. -->
|
||||
<label for="categoryloop">Groups of Libraries</label><select name="multibranchlimit" id="categoryloop">
|
||||
<option value=""> -- none -- </option>
|
||||
<!-- TMPL_LOOP NAME="searchdomainloop" -->
|
||||
<option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="categoryname" --></option>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</select>
|
||||
<!-- /TMPL_IF -->
|
||||
<div style="margin-top:.4em"><label for="available-items"><input type="checkbox" id="available-items" name="limit" value="available" /> Only items currently available for loan or reference</label></div>
|
||||
</fieldset></div>
|
||||
<!-- /TMPL_UNLESS -->
|
||||
|
|
|
|||
|
|
@ -582,7 +582,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
|
|||
<!-- TMPL_IF name="branchname" --><h3>At library: <!-- TMPL_VAR NAME="branchname" --></h3><!-- TMPL_ELSE -->
|
||||
<!-- TMPL_IF name="branchcode" --><h3>At branch: <!-- TMPL_VAR NAME="branchcode" --></h3><!-- /TMPL_IF --><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="subscriptionnotes" --><p><!--TMPL_VAR NAME="subscriptionnotes"--> </p><!-- /TMPL_IF -->
|
||||
<p>Issues between: <!--TMPL_VAR NAME="histstartdate"--> and:<!-- TMPL_IF NAME="histenddate" --> <!--TMPL_VAR NAME="histenddate"--> <!-- TMPL_ELSE --> now (current)<!-- /TMPL_IF --></p>
|
||||
<p>Subscription from: <!--TMPL_VAR NAME="histstartdate"--> to:<!-- TMPL_IF NAME="histenddate" --> <!--TMPL_VAR NAME="histenddate"--> <!-- TMPL_ELSE --> now (current)<!-- /TMPL_IF --></p>
|
||||
<!-- TMPL_IF NAME="missinglist" --><p>Missing issues: <!--TMPL_VAR NAME="missinglist"--> </p><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF name="opacnote" --><p>(<!-- TMPL_VAR NAME="opacnote" -->)</p><!-- /TMPL_IF -->
|
||||
<!--TMPL_IF NAME="latestserials"-->
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts :
|
|||
use strict;
|
||||
|
||||
sub kohaversion {
|
||||
our $VERSION = '3.03.00.032';
|
||||
our $VERSION = '3.03.00.035';
|
||||
# version needs to be set this way
|
||||
# so that it can be picked up by Makefile.PL
|
||||
# during install
|
||||
|
|
|
|||
|
|
@ -317,7 +317,7 @@ my @limits;
|
|||
@limits = split("\0",$params->{'limit'}) if $params->{'limit'};
|
||||
|
||||
if($params->{'multibranchlimit'}) {
|
||||
push @limits, join(" or ", map { "branch: $_ "} @{GetBranchesInCategory($params->{'multibranchlimit'})}) ;
|
||||
push @limits, '('.join( " or ", map { "branch: $_ " } @{ GetBranchesInCategory( $params->{'multibranchlimit'} ) } ).')';
|
||||
}
|
||||
|
||||
my $available;
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
|
|||
|
||||
my $multihold = $input->param('multi_hold');
|
||||
$template->param(multi_hold => $multihold);
|
||||
my $showallitems = $input->param('showallitems');
|
||||
|
||||
# get Branches and Itemtypes
|
||||
my $branches = GetBranches();
|
||||
|
|
@ -319,6 +320,7 @@ foreach my $biblionumber (@biblionumbers) {
|
|||
my $biblioitem = $biblioiteminfos_of->{$biblioitemnumber};
|
||||
my $num_available = 0;
|
||||
my $num_override = 0;
|
||||
my $hiddencount = 0;
|
||||
|
||||
$biblioitem->{description} =
|
||||
$itemtypes->{ $biblioitem->{itemtype} }{description};
|
||||
|
|
@ -376,7 +378,7 @@ foreach my $biblionumber (@biblionumbers) {
|
|||
$item->{notforloanvalue} =
|
||||
$notforloan_label_of->{ $item->{notforloan} };
|
||||
}
|
||||
|
||||
|
||||
# Management of lost or long overdue items
|
||||
if ( $item->{itemlost} ) {
|
||||
|
||||
|
|
@ -386,6 +388,10 @@ foreach my $biblionumber (@biblionumbers) {
|
|||
: $item->{itemlost} == 2 ? "(long overdue)"
|
||||
: "";
|
||||
$item->{backgroundcolor} = 'other';
|
||||
if (GetHideLostItemsPreference($borrowernumber) && !$showallitems) {
|
||||
$item->{hide} = 1;
|
||||
$hiddencount++;
|
||||
}
|
||||
}
|
||||
|
||||
# Check the transit status
|
||||
|
|
@ -458,6 +464,7 @@ foreach my $biblionumber (@biblionumbers) {
|
|||
$biblioloopiter{warn} = 1;
|
||||
$biblioloopiter{none_avail} = 1;
|
||||
}
|
||||
$template->param( hiddencount => $hiddencount);
|
||||
|
||||
push @bibitemloop, $biblioitem;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue