renaming reserves & branchreserves to pendingreserves and waitingreserves
This commit is contained in:
parent
9f42b8ad49
commit
0c020dd8bf
10 changed files with 254 additions and 296 deletions
|
@ -1,143 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# $Id$
|
||||
|
||||
# Copyright 2000-2002 Katipo Communications
|
||||
#
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Koha is free software; you can redistribute it and/or modify it under the
|
||||
# terms of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
#
|
||||
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along with
|
||||
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
|
||||
# Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
use strict;
|
||||
use CGI;
|
||||
use C4::Context;
|
||||
use C4::Output;
|
||||
use C4::Branch;
|
||||
use C4::Auth;
|
||||
use C4::Date;
|
||||
use C4::Biblio;
|
||||
use C4::Circulation;
|
||||
use C4::Members;
|
||||
use C4::Interface::CGI::Output;
|
||||
use Date::Calc qw(
|
||||
Today
|
||||
Add_Delta_Days
|
||||
Date_to_Days
|
||||
);
|
||||
|
||||
use C4::Koha;
|
||||
use C4::Reserves;
|
||||
|
||||
my $input = new CGI;
|
||||
|
||||
my $theme = $input->param('theme'); # only used if allowthemeoverride is set
|
||||
my $itemnumber = $input->param('itemnumber');
|
||||
my $todaysdate = join "-", &Today;
|
||||
|
||||
# if we have a resturn of the form to delete the transfer, we launch the subrroutine
|
||||
if ($itemnumber) {
|
||||
C4::Circulation::Circ2::DeleteTransfer($itemnumber);
|
||||
}
|
||||
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => "circ/currenttransfers.tmpl",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
flagsrequired => { circulate => 1 },
|
||||
debug => 1,
|
||||
}
|
||||
);
|
||||
|
||||
# set the userenv branch
|
||||
my $default = C4::Context->userenv->{'branch'};
|
||||
|
||||
# get the all the branches for reference
|
||||
my $branches = GetBranches();
|
||||
my @branchesloop;
|
||||
foreach my $br ( keys %$branches ) {
|
||||
my @transferloop;
|
||||
my %branchloop;
|
||||
$branchloop{'branchname'} = $branches->{$br}->{'branchname'};
|
||||
$branchloop{'branchcode'} = $branches->{$br}->{'branchcode'};
|
||||
my @gettransfers =
|
||||
GetTransfersFromTo( $branches->{$br}->{'branchcode'}, $default );
|
||||
|
||||
if (@gettransfers) {
|
||||
foreach my $num (@gettransfers) {
|
||||
my %getransf;
|
||||
|
||||
my ( $sent_year, $sent_month, $sent_day ) = split "-",
|
||||
$num->{'datesent'};
|
||||
$sent_day = ( split " ", $sent_day )[0];
|
||||
( $sent_year, $sent_month, $sent_day ) =
|
||||
Add_Delta_Days( $sent_year, $sent_month, $sent_day,
|
||||
C4::Context->preference('TransfersMaxDaysWarning'));
|
||||
my $calcDate = Date_to_Days( $sent_year, $sent_month, $sent_day );
|
||||
my $today = Date_to_Days(&Today);
|
||||
my $warning = ( $today > $calcDate );
|
||||
|
||||
if ( $warning > 0 ) {
|
||||
$getransf{'messcompa'} = 1;
|
||||
}
|
||||
my $gettitle = GetBiblioFromItemNumber( $num->{'itemnumber'} );
|
||||
my $itemtypeinfo = getitemtypeinfo( $gettitle->{'itemtype'} );
|
||||
|
||||
$getransf{'title'} = $gettitle->{'title'};
|
||||
$getransf{'datetransfer'} = format_date( $num->{'datesent'} );
|
||||
$getransf{'biblionumber'} = $gettitle->{'biblionumber'};
|
||||
$getransf{'itemnumber'} = $gettitle->{'itemnumber'};
|
||||
$getransf{'barcode'} = $gettitle->{'barcode'};
|
||||
$getransf{'itemtype'} = $itemtypeinfo->{'description'};
|
||||
$getransf{'homebranch'} = $gettitle->{'homebranch'};
|
||||
$getransf{'holdingbranch'} = $gettitle->{'holdingbranch'};
|
||||
$getransf{'itemcallnumber'} = $gettitle->{'itemcallnumber'};
|
||||
|
||||
# we check if we have a reserv for this transfer
|
||||
my @checkreserv = GetReservations( $num->{'itemnumber'} );
|
||||
if ( $checkreserv[0] ) {
|
||||
my $getborrower =
|
||||
GetMemberDetails( $checkreserv[1] );
|
||||
$getransf{'borrowernum'} = $getborrower->{'borrowernumber'};
|
||||
$getransf{'borrowername'} = $getborrower->{'surname'};
|
||||
$getransf{'borrowerfirstname'} = $getborrower->{'firstname'};
|
||||
if ( $getborrower->{'emailaddress'} ) {
|
||||
$getransf{'borrowermail'} = $getborrower->{'emailaddress'};
|
||||
}
|
||||
$getransf{'borrowerphone'} = $getborrower->{'phone'};
|
||||
|
||||
}
|
||||
push( @transferloop, \%getransf );
|
||||
}
|
||||
|
||||
# If we have a return of reservloop we put it in the branchloop sequence
|
||||
$branchloop{'reserv'} = \@transferloop;
|
||||
}
|
||||
else {
|
||||
|
||||
# if we don't have a retrun from reservestobranch we unset branchname and branchcode
|
||||
$branchloop{'branchname'} = 0;
|
||||
$branchloop{'branchcode'} = 0;
|
||||
}
|
||||
push( @branchesloop, \%branchloop );
|
||||
}
|
||||
|
||||
$template->param(
|
||||
branchesloop => \@branchesloop,
|
||||
show_date => format_date($todaysdate),
|
||||
);
|
||||
|
||||
output_html_with_http_headers $input, $cookie, $template->output;
|
||||
|
162
circ/pendingreserves.pl
Executable file
162
circ/pendingreserves.pl
Executable file
|
@ -0,0 +1,162 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# $Id$
|
||||
|
||||
# Copyright 2000-2002 Katipo Communications
|
||||
#
|
||||
# This file is part of Koha.
|
||||
#
|
||||
# Koha is free software; you can redistribute it and/or modify it under the
|
||||
# terms of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
#
|
||||
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along with
|
||||
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
|
||||
# Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
use strict;
|
||||
use C4::Context;
|
||||
use C4::Output;
|
||||
use CGI;
|
||||
use C4::Auth;
|
||||
use C4::Date;
|
||||
use C4::Interface::CGI::Output;
|
||||
|
||||
my $input = new CGI;
|
||||
my $order = $input->param('order');
|
||||
my $startdate=$input->param('from');
|
||||
my $enddate=$input->param('to');
|
||||
|
||||
my $theme = $input->param('theme'); # only used if allowthemeoverride is set
|
||||
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => "circ/pendingreserves.tmpl",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
||||
flagsrequired => { circulate => 1 },
|
||||
debug => 1,
|
||||
}
|
||||
);
|
||||
|
||||
my $duedate;
|
||||
my $borrowernumber;
|
||||
my $itemnum;
|
||||
my $data1;
|
||||
my $data2;
|
||||
my $data3;
|
||||
my $name;
|
||||
my $phone;
|
||||
my $email;
|
||||
my $biblionumber;
|
||||
my $title;
|
||||
my $author;
|
||||
|
||||
my @datearr = localtime( time() );
|
||||
my $todaysdate =
|
||||
( 1900 + $datearr[5] ) . '-'
|
||||
. sprintf( "%0.2d", ( $datearr[4] + 1 ) ) . '-'
|
||||
. sprintf( "%0.2d", $datearr[3] );
|
||||
|
||||
my $dbh = C4::Context->dbh;
|
||||
my ($sqlorderby, $sqldatewhere) = ("","");
|
||||
|
||||
$sqldatewhere .= " && reservedate >= " . $dbh->quote($startdate) if ($startdate) ;
|
||||
$sqldatewhere .= " && reservedate <= " . $dbh->quote($enddate) if ($enddate) ;
|
||||
|
||||
if ($order eq "borrower") {
|
||||
$sqlorderby = " order by borrower, reservedate";
|
||||
} elsif ($order eq "biblio") {
|
||||
$sqlorderby = " order by biblio.title, priority,reservedate";
|
||||
} elsif ($order eq "priority") {
|
||||
$sqlorderby = "order by priority DESC";
|
||||
} else {
|
||||
$sqlorderby = " order by reservedate, borrower";
|
||||
}
|
||||
my $strsth =
|
||||
"SELECT reservedate,
|
||||
reserves.borrowernumber as borrowernumber,
|
||||
concat(firstname,' ',surname) as borrower,
|
||||
borrowers.phone,
|
||||
borrowers.email,
|
||||
reserves.biblionumber,
|
||||
reserves.branchcode as branch,
|
||||
items.holdingbranch,
|
||||
items.itemcallnumber,
|
||||
items.itemnumber,
|
||||
notes,
|
||||
notificationdate,
|
||||
reminderdate,
|
||||
priority,
|
||||
reserves.found,
|
||||
biblio.title,
|
||||
biblio.author
|
||||
FROM reserves
|
||||
LEFT JOIN items ON items.biblionumber=reserves.biblionumber,
|
||||
borrowers,biblio
|
||||
WHERE isnull(cancellationdate)
|
||||
&& reserves.borrowernumber=borrowers.borrowernumber
|
||||
&& reserves.biblionumber=biblio.biblionumber
|
||||
&& reserves.found is NULL
|
||||
&& items.holdingbranch=?
|
||||
";
|
||||
|
||||
$strsth .= $sqlorderby;
|
||||
|
||||
my $sth = $dbh->prepare($strsth);
|
||||
|
||||
$sth->execute(C4::Context->userenv->{'branch'});
|
||||
|
||||
my @reservedata;
|
||||
my $previous;
|
||||
my $this;
|
||||
while ( my $data = $sth->fetchrow_hashref ) {
|
||||
$this=$data->{biblionumber}.":".$data->{borrowernumber};
|
||||
my @itemlist;
|
||||
push(
|
||||
@reservedata,
|
||||
{
|
||||
reservedate => $previous eq $this?"":format_date( $data->{reservedate} ),
|
||||
priority => $previous eq $this?"":$data->{priority},
|
||||
name => $previous eq $this?"":$data->{borrower},
|
||||
title => $previous eq $this?"":$data->{title},
|
||||
author => $previous eq $this?"":$data->{author},
|
||||
borrowernumber => $previous eq $this?"":$data->{borrowernumber},
|
||||
itemnum => $previous eq $this?"":$data->{itemnumber},
|
||||
phone => $previous eq $this?"":$data->{phone},
|
||||
email => $previous eq $this?"":$data->{email},
|
||||
biblionumber => $previous eq $this?"":$data->{biblionumber},
|
||||
statusw => ( $data->{found} eq "w" ),
|
||||
statusf => ( $data->{found} eq "f" ),
|
||||
holdingbranch => $data->{holdingbranch},
|
||||
branch => $previous eq $this?"":$data->{branch},
|
||||
itemcallnumber => $data->{itemcallnumber},
|
||||
notes => $previous eq $this?"":$data->{notes},
|
||||
notificationdate => $previous eq $this?"":$data->{notificationdate},
|
||||
reminderdate => $previous eq $this?"":$data->{reminderdate}
|
||||
}
|
||||
);
|
||||
$previous=$this;
|
||||
}
|
||||
|
||||
$sth->finish;
|
||||
|
||||
$template->param(
|
||||
todaysdate => format_date($todaysdate),
|
||||
from => $startdate,
|
||||
to => $enddate,
|
||||
reserveloop => \@reservedata,
|
||||
intranetcolorstylesheet =>
|
||||
C4::Context->preference("intranetcolorstylesheet"),
|
||||
intranetstylesheet => C4::Context->preference("intranetstylesheet"),
|
||||
IntranetNav => C4::Context->preference("IntranetNav"),
|
||||
"BiblioDefaultView".C4::Context->preference("BiblioDefaultView") => 1,
|
||||
);
|
||||
|
||||
output_html_with_http_headers $input, $cookie, $template->output;
|
|
@ -41,7 +41,7 @@ my $input = new CGI;
|
|||
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => "circ/waitingreservestransfers.tmpl",
|
||||
template_name => "circ/transferstodo.tmpl",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
|
@ -52,7 +52,7 @@ my $theme = $input->param('theme'); # only used if allowthemeoverride is set
|
|||
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => "circ/branchreserves.tmpl",
|
||||
template_name => "circ/waitingreserves.tmpl",
|
||||
query => $input,
|
||||
type => "intranet",
|
||||
authnotrequired => 0,
|
|
@ -1,85 +0,0 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
||||
<title>Koha › Circulation</title>
|
||||
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
<!-- TMPL_INCLUDE NAME="menus.inc" -->
|
||||
<!-- TMPL_INCLUDE NAME="menu-circ.inc" -->
|
||||
|
||||
<h1>Circulation: Branch Reserves</h1>
|
||||
|
||||
<div id="mainbloc">
|
||||
<h1 class="circulation">Reserves of your library the : <!-- TMPL_VAR NAME="show_date" --></h1>
|
||||
<!-- TMPL_IF NAME="messagetransfert" -->
|
||||
<div>
|
||||
<h2>Reserve find for the document(<!-- TMPL_VAR NAME="nextreservtitle" -->)must transfered</h2>
|
||||
<p>This documen is reserved by : <b> <!-- TMPL_VAR NAME="nextreservsurname" --> <!-- TMPL_VAR NAME="nextreservfirstname" --></b> at the library : <b> <!-- TMPL_VAR NAME="branchname" --> </b>, Please put this document in transfer .
|
||||
</p>
|
||||
<form name="cancelReservewithtransfert" action="branchreserves.pl" method="post">
|
||||
<input type="submit" class="button circulation">
|
||||
</form>
|
||||
</div>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="waiting" -->
|
||||
<div id="bloc25">
|
||||
<h2 class="circulation">This document is in Waiting status</h2>
|
||||
<p>This document (<!-- TMPL_VAR NAME="nextreservtitle" -->) is reserved by <b> : <!-- TMPL_VAR NAME="nextreservsurname" --> <!-- TMPL_VAR NAME="nextreservfirstname" --></b>,
|
||||
Please keep this document for the next reserve .
|
||||
</p>
|
||||
<form name="cancelReservewithwaiting" action="branchreserves.pl" method="post">
|
||||
<input type="submit">
|
||||
</form>
|
||||
</div>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_UNLESS NAME="message" -->
|
||||
<div id="resultlist">
|
||||
<!-- TMPL_IF NAME="reserveloop" -->
|
||||
<table>
|
||||
<tr>
|
||||
<th class="circulation" colspan="5">Reserves of your library</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="circulation">Available since</th>
|
||||
<th class="circulation">Title</th>
|
||||
<th class="circulation">Borrower</th>
|
||||
<th class="circulation">Localisation</th>
|
||||
<th class="circulation">Action</th>
|
||||
</tr>
|
||||
<!-- TMPL_LOOP NAME="reserveloop" -->
|
||||
<tr <!-- TMPL_IF NAME="messcompa" --> class="problem" <!-- /TMPL_IF -->>
|
||||
<td><p><!-- TMPL_VAR NAME="waitingdate" --></p> <!-- TMPL_IF NAME="messcompa" --> Reserve Over <!-- /TMPL_IF --></td>
|
||||
<td>
|
||||
<p>
|
||||
<a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a>
|
||||
(<b><!-- TMPL_VAR NAME="itemtype" --></b>)
|
||||
<br />Barcode : <!-- TMPL_VAR NAME="barcode" -->
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!--TMPL_VAR Name="borrowernum"-->"><!-- TMPL_VAR NAME="borrowername" --> <!-- TMPL_VAR NAME="borrowerfirstname" --></a><br /><!-- TMPL_VAR NAME="borrowerphone" --><br />
|
||||
<!-- TMPL_IF NAME="borrowermail" --><a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Reservation: <!-- TMPL_VAR NAME="title" -->">
|
||||
<!-- TMPL_VAR NAME="borrowermail" --></a><!--/TMPL_IF-->
|
||||
</p>
|
||||
</td>
|
||||
<td><p><!-- TMPL_VAR NAME="homebranch" --> <!-- TMPL_VAR NAME="itemcallnumber" --></p></td>
|
||||
<td>
|
||||
<form name="cancelReserve -->" action="branchreserves.pl" method="post">
|
||||
<input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernum" -->">
|
||||
<input type="hidden" name="itemnumber" value="<!-- TMPL_VAR NAME="itemnumber" -->">
|
||||
<input type="hidden" name="fbr" value="<!-- TMPL_VAR NAME="holdingbranch" -->">
|
||||
<input type="hidden" name="tbr" value="<!-- TMPL_VAR NAME="homebranch" -->">
|
||||
<!-- TMPL_IF NAME="dotransfer" -->
|
||||
<input type="submit" value="Cancel reserve and return to : <!-- TMPL_VAR NAME="homebranch" -->">
|
||||
<!-- TMPL_ELSE -->
|
||||
<input type="submit" value="Cancel reserve" >
|
||||
<!-- /TMPL_IF -->
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</table>
|
||||
<!-- TMPL_ELSE -->
|
||||
<b>No reserve found.</b>
|
||||
<!-- /TMPL_IF -->
|
||||
</div>
|
||||
<!-- /TMPL_UNLESS -->
|
||||
</div>
|
||||
<!-- TMPL_INCLUDE name="intranet-bottom.inc" -->
|
|
@ -1,61 +0,0 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
||||
<title>Koha › Circulation</title>
|
||||
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
<!-- TMPL_INCLUDE NAME="menus.inc" -->
|
||||
<!-- TMPL_INCLUDE NAME="menu-circ.inc" -->
|
||||
|
||||
<div id="mainbloc">
|
||||
<h1 class="circulation">Transfers made TO your library the : <!-- TMPL_VAR NAME="show_date" --></h1>
|
||||
<p>You are the destination of this transfer</p>
|
||||
<div id="resultlist">
|
||||
<!-- TMPL_LOOP NAME="branchesloop" -->
|
||||
<!-- TMPL_IF NAME="branchcode" -->
|
||||
<table>
|
||||
<tr>
|
||||
<th class="circulation" colspan="5">Coming from <!-- TMPL_VAR NAME="branchname" --> </th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="circulation">Date of transfer</th>
|
||||
<th class="circulation">Title</th>
|
||||
<th class="circulation">Reserved by </th>
|
||||
<th class="circulation">Localisation</th>
|
||||
<th class="circulation">Action</th>
|
||||
</tr>
|
||||
<!-- TMPL_LOOP NAME="reserv" -->
|
||||
<tr <!-- TMPL_IF NAME="messcompa" --> class="problem" <!-- /TMPL_IF -->>
|
||||
<td><p><!-- TMPL_VAR NAME="datetransfer" --></p> <!-- TMPL_IF NAME="messcompa" --> check this transfer<!-- /TMPL_IF --></td>
|
||||
<td>
|
||||
<p>
|
||||
<a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a>
|
||||
(<b><!-- TMPL_VAR NAME="itemtype" --> </b>)
|
||||
<br />Barcode : <!-- TMPL_VAR NAME="barcode" -->
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<!-- TMPL_IF NAME="borrowername" -->
|
||||
<p><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!--TMPL_VAR Name="borrowernum"-->"><!-- TMPL_VAR NAME="borrowername" --> <!-- TMPL_VAR NAME="borrowerfirstname" --></a><br /><!-- TMPL_VAR NAME="borrowerphone" --><br />
|
||||
<!-- TMPL_IF NAME="borrowermail" --><a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Reservation: <!-- TMPL_VAR NAME="title" -->">
|
||||
<!-- TMPL_VAR NAME="borrowermail" --></a><!--/TMPL_IF-->
|
||||
</p>
|
||||
<!-- TMPL_ELSE -->
|
||||
<p>
|
||||
None
|
||||
</p>
|
||||
<!-- /TMPL_IF -->
|
||||
</td>
|
||||
<td><p><!-- TMPL_VAR NAME="homebranch" --> <!-- TMPL_VAR NAME="itemcallnumber" --></p></td>
|
||||
<td>
|
||||
<!--<form name="dotransfer" action="currenttransfers.pl" method="post">
|
||||
<input type="hidden" name="itemnumber" value="<!-- TMPL_VAR NAME="itemnumber" -->">
|
||||
<input type="submit" value="Cancel this transfer">
|
||||
</form>-->
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</table>
|
||||
<br><br>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- /TMPL_LOOP -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- TMPL_INCLUDE name="intranet-bottom.inc" -->
|
85
koha-tmpl/intranet-tmpl/prog/en/circ/waitingreserves.tmpl
Normal file
85
koha-tmpl/intranet-tmpl/prog/en/circ/waitingreserves.tmpl
Normal file
|
@ -0,0 +1,85 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
||||
<title>Koha › Circulation</title>
|
||||
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
<!-- TMPL_INCLUDE NAME="menus.inc" -->
|
||||
<!-- TMPL_INCLUDE NAME="menu-circ.inc" -->
|
||||
|
||||
<h1>Circulation: Branch Reserves</h1>
|
||||
|
||||
<div id="mainbloc">
|
||||
<h1 class="circulation">Reserves of your library the : <!-- TMPL_VAR NAME="show_date" --></h1>
|
||||
<!-- TMPL_IF NAME="messagetransfert" -->
|
||||
<div>
|
||||
<h2>Reserve find for the document(<!-- TMPL_VAR NAME="nextreservtitle" -->)must transfered</h2>
|
||||
<p>This documen is reserved by : <b> <!-- TMPL_VAR NAME="nextreservsurname" --> <!-- TMPL_VAR NAME="nextreservfirstname" --></b> at the library : <b> <!-- TMPL_VAR NAME="branchname" --> </b>, Please put this document in transfer .
|
||||
</p>
|
||||
<form name="cancelReservewithtransfert" action="waitingreserves.pl" method="post">
|
||||
<input type="submit" class="button circulation">
|
||||
</form>
|
||||
</div>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="waiting" -->
|
||||
<div id="bloc25">
|
||||
<h2 class="circulation">This document is in Waiting status</h2>
|
||||
<p>This document (<!-- TMPL_VAR NAME="nextreservtitle" -->) is reserved by <b> : <!-- TMPL_VAR NAME="nextreservsurname" --> <!-- TMPL_VAR NAME="nextreservfirstname" --></b>,
|
||||
Please keep this document for the next reserve .
|
||||
</p>
|
||||
<form name="cancelReservewithwaiting" action="waitingreserves.pl" method="post">
|
||||
<input type="submit">
|
||||
</form>
|
||||
</div>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_UNLESS NAME="message" -->
|
||||
<div id="resultlist">
|
||||
<!-- TMPL_IF NAME="reserveloop" -->
|
||||
<table>
|
||||
<tr>
|
||||
<th class="circulation" colspan="5">Reserves of your library</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="circulation">Available since</th>
|
||||
<th class="circulation">Title</th>
|
||||
<th class="circulation">Borrower</th>
|
||||
<th class="circulation">Localisation</th>
|
||||
<th class="circulation">Action</th>
|
||||
</tr>
|
||||
<!-- TMPL_LOOP NAME="reserveloop" -->
|
||||
<tr <!-- TMPL_IF NAME="messcompa" --> class="problem" <!-- /TMPL_IF -->>
|
||||
<td><p><!-- TMPL_VAR NAME="waitingdate" --></p> <!-- TMPL_IF NAME="messcompa" --> Reserve Over <!-- /TMPL_IF --></td>
|
||||
<td>
|
||||
<p>
|
||||
<a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a>
|
||||
(<b><!-- TMPL_VAR NAME="itemtype" --></b>)
|
||||
<br />Barcode : <!-- TMPL_VAR NAME="barcode" -->
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!--TMPL_VAR Name="borrowernum"-->"><!-- TMPL_VAR NAME="borrowername" --> <!-- TMPL_VAR NAME="borrowerfirstname" --></a><br /><!-- TMPL_VAR NAME="borrowerphone" --><br />
|
||||
<!-- TMPL_IF NAME="borrowermail" --><a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Reservation: <!-- TMPL_VAR NAME="title" -->">
|
||||
<!-- TMPL_VAR NAME="borrowermail" --></a><!--/TMPL_IF-->
|
||||
</p>
|
||||
</td>
|
||||
<td><p><!-- TMPL_VAR NAME="homebranch" --> <!-- TMPL_VAR NAME="itemcallnumber" --></p></td>
|
||||
<td>
|
||||
<form name="cancelReserve -->" action="waitingreserves.pl" method="post">
|
||||
<input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernum" -->">
|
||||
<input type="hidden" name="itemnumber" value="<!-- TMPL_VAR NAME="itemnumber" -->">
|
||||
<input type="hidden" name="fbr" value="<!-- TMPL_VAR NAME="holdingbranch" -->">
|
||||
<input type="hidden" name="tbr" value="<!-- TMPL_VAR NAME="homebranch" -->">
|
||||
<!-- TMPL_IF NAME="dotransfer" -->
|
||||
<input type="submit" value="Cancel reserve and return to : <!-- TMPL_VAR NAME="homebranch" -->">
|
||||
<!-- TMPL_ELSE -->
|
||||
<input type="submit" value="Cancel reserve" >
|
||||
<!-- /TMPL_IF -->
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /TMPL_LOOP -->
|
||||
</table>
|
||||
<!-- TMPL_ELSE -->
|
||||
<b>No reserve found.</b>
|
||||
<!-- /TMPL_IF -->
|
||||
</div>
|
||||
<!-- /TMPL_UNLESS -->
|
||||
</div>
|
||||
<!-- TMPL_INCLUDE name="intranet-bottom.inc" -->
|
|
@ -3,11 +3,11 @@
|
|||
<a href="/cgi-bin/koha/circ/returns.pl">Returns</a>
|
||||
<a href="/cgi-bin/koha/circ/branchtransfers.pl">Transfers</a>
|
||||
<a href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set branch</a>
|
||||
<a href="/cgi-bin/koha/circ/reserve.pl">Pending</a>
|
||||
<a href="/cgi-bin/koha/circ/branchreserves.pl">Waiting</a>
|
||||
<a href="/cgi-bin/koha/circ/waitingreservestransfers.pl">Transfers to do</a>
|
||||
<a href="/cgi-bin/koha/circ/currenttransfers.pl">Transfersto receive</a>
|
||||
<a href="/cgi-bin/koha/circ/branchoverdues.pl">Overdues by branch/department</a>
|
||||
<a href="/cgi-bin/koha/circ/pendingreserves.pl" title="reserves waiting to have an item affected">Pending reserves</a>
|
||||
<a href="/cgi-bin/koha/circ/waitingreserves.pl" title="reserves waiting for member pickup">Waiting reserves</a>
|
||||
<a href="/cgi-bin/koha/circ/transferstodo.pl" title="transfers to do from your library">Transfers to do</a>
|
||||
<a href="/cgi-bin/koha/circ/transferstoreceive.pl" title="transfers to receive at your library">Transfers to receive</a>
|
||||
<a href="/cgi-bin/koha/circ/branchoverdues.pl">Overdues</a>
|
||||
<a href="/cgi-bin/koha/circ/stats.pl?time=yesterday">Daily reconciliation</a>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue