[Koha-bugs] [Bug 23292] Use TransferSlip when transfering item which is on hold

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 27 11:58:46 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23292

--- Comment #5 from Sally <sally.healey at cheshiresharedservices.gov.uk> ---
Changing from HoldSlip to TransferSlip would be a step back for us, as we
differentiate between holds and ordinary transfers - which enables us to
prioritise how we unpack our stock.

I think the problem described can be resolved with Template Toolkit - you can
create an IF this THEN this ELSE this condition in the HoldSlip syntax.

Here's an example of the syntax (which you can then modify with HTML to lay it
out correctly):  

[% USE Branches %]
[% loggedinbranchname = Branches.GetName( Branches.GetLoggedInBranchcode() ) %]
[% IF loggedinbranchname == branch.branchname%]
[% hold.expirationdate | $KohaDates %]
[% borrower.surname %] 
[% USE String %]
[% patronsname = borrower.firstname %] 
[% patronsname.substr (0, 1) %]
[% USE String %]
[% patronscard = borrower.cardnumber %] 
*******[% patronscard.substr (7, 3) %]
[% branch.branchname %] 
[% biblio.title %]
[% biblio.author %]
[% item.barcode %]
[% branch.branchname %]
[% today | $KohaDates %]

[% ELSE %]

[% branch.branchcode %]*
[% branch.branchname %]
[% biblio.title %]
[% biblio.author %]
[% item.barcode %]
[% today | $KohaDates %]
[% END %]

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list