Bug 15443 - Re-code RESERVESLIP as HOLD_SLIP
It's a bit confusing to have RESERVESLIP named "Hold Slip", we should finish the job and recode the slip. Test Plan: 1) Apply this patch 2) Run updatedatabase.pl 3) Try printing a hold slip, you should note no difference from pre-patch behavior Followed test plan. The slip is triggered if you want to check out an item that is reserved / on hold for another patron. Works as expected. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
61186c9e77
commit
eed2c0d437
12 changed files with 13 additions and 12 deletions
|
@ -2338,7 +2338,7 @@ sub GetReserveId {
|
||||||
|
|
||||||
Returns letter hash ( see C4::Letters::GetPreparedLetter ) or undef
|
Returns letter hash ( see C4::Letters::GetPreparedLetter ) or undef
|
||||||
|
|
||||||
The letter code will be RESERVESLIP, and the following tables are
|
The letter code will be HOLD_SLIP, and the following tables are
|
||||||
available within the slip:
|
available within the slip:
|
||||||
|
|
||||||
reserves
|
reserves
|
||||||
|
@ -2363,7 +2363,7 @@ sub ReserveSlip {
|
||||||
|
|
||||||
return C4::Letters::GetPreparedLetter (
|
return C4::Letters::GetPreparedLetter (
|
||||||
module => 'circulation',
|
module => 'circulation',
|
||||||
letter_code => 'RESERVESLIP',
|
letter_code => 'HOLD_SLIP',
|
||||||
branchcode => $branch,
|
branchcode => $branch,
|
||||||
tables => {
|
tables => {
|
||||||
'reserves' => $reserve,
|
'reserves' => $reserve,
|
||||||
|
|
1
installer/data/mysql/atomicupdate/bug_15443.sql
Normal file
1
installer/data/mysql/atomicupdate/bug_15443.sql
Normal file
|
@ -0,0 +1 @@
|
||||||
|
UPDATE letter SET code = "HOLD_SLIP" WHERE code = "RESERVESLIP";
|
|
@ -71,7 +71,7 @@ Signatur: <<items.itemcallnumber>><br/>
|
||||||
Fällig am: <<issues.date_due>><br />
|
Fällig am: <<issues.date_due>><br />
|
||||||
</p>
|
</p>
|
||||||
</checkedout>', 1),
|
</checkedout>', 1),
|
||||||
('circulation','RESERVESLIP','Vormerkquittung','Vormerkquittung', '<h2>Vormerkung</h2>
|
('circulation','HOLD_SLIP','Vormerkquittung','Vormerkquittung', '<h2>Vormerkung</h2>
|
||||||
<h4>Abholbereit seit: <<today>></h4>
|
<h4>Abholbereit seit: <<today>></h4>
|
||||||
<br/>
|
<br/>
|
||||||
Bibliothek: <<branches.branchname>> <br/>
|
Bibliothek: <<branches.branchname>> <br/>
|
||||||
|
|
|
@ -77,7 +77,7 @@ Barcode: <<items.barcode>><br />
|
||||||
Date due: <<issues.date_due>><br />
|
Date due: <<issues.date_due>><br />
|
||||||
</p>
|
</p>
|
||||||
</checkedout>', 1),
|
</checkedout>', 1),
|
||||||
('circulation','RESERVESLIP','Hold Slip','Hold Slip', '<h5>Date: <<today>></h5>
|
('circulation','HOLD_SLIP','Hold Slip','Hold Slip', '<h5>Date: <<today>></h5>
|
||||||
|
|
||||||
<h3> Transfer to/Hold in <<branches.branchname>></h3>
|
<h3> Transfer to/Hold in <<branches.branchname>></h3>
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ Barcode: <<items.barcode>><br />
|
||||||
Date due: <<issues.date_due>><br />
|
Date due: <<issues.date_due>><br />
|
||||||
</p>
|
</p>
|
||||||
</checkedout>', 1),
|
</checkedout>', 1),
|
||||||
('circulation','RESERVESLIP','Hold Slip','Hold Slip', '<h5>Date: <<today>></h5>
|
('circulation','HOLD_SLIP','Hold Slip','Hold Slip', '<h5>Date: <<today>></h5>
|
||||||
|
|
||||||
<h3> Transfer to/Hold in <<branches.branchname>></h3>
|
<h3> Transfer to/Hold in <<branches.branchname>></h3>
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ Code à barres : <<items.barcode>><br />
|
||||||
Retour le : <<issues.date_due>><br />
|
Retour le : <<issues.date_due>><br />
|
||||||
</p>
|
</p>
|
||||||
</checkedout>', 1),
|
</checkedout>', 1),
|
||||||
('circulation','RESERVESLIP','Ticket de réservation','Ticket de réservation', '<h5>Date : <<today>></h5>
|
('circulation','HOLD_SLIP','Ticket de réservation','Ticket de réservation', '<h5>Date : <<today>></h5>
|
||||||
|
|
||||||
<h3> Transfert vers/Réservé à <<branches.branchname>></h3>
|
<h3> Transfert vers/Réservé à <<branches.branchname>></h3>
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ Codice a barre: <<items.barcode>><br />
|
||||||
Data di scadenza: <<issues.date_due>><br />
|
Data di scadenza: <<issues.date_due>><br />
|
||||||
</p>
|
</p>
|
||||||
</checkedout>', 1),
|
</checkedout>', 1),
|
||||||
('circulation','RESERVESLIP','Hold Slip','Ricevuta (prenotazione)', '<h5>Data: <<today>></h5>
|
('circulation','HOLD_SLIP','Hold Slip','Ricevuta (prenotazione)', '<h5>Data: <<today>></h5>
|
||||||
|
|
||||||
<h3> Trasferita a/Prenotata in <<branches.branchname>></h3>
|
<h3> Trasferita a/Prenotata in <<branches.branchname>></h3>
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ Strekkode: <<items.barcode>><br />
|
||||||
Innleveringsfrist: <<issues.date_due>><br />
|
Innleveringsfrist: <<issues.date_due>><br />
|
||||||
</p>
|
</p>
|
||||||
</checkedout>', 1),
|
</checkedout>', 1),
|
||||||
('circulation','RESERVESLIP','Reservasjon','Reservasjon', '<h5>Dato: <<today>></h5>
|
('circulation','HOLD_SLIP','Reservasjon','Reservasjon', '<h5>Dato: <<today>></h5>
|
||||||
|
|
||||||
<h3> Overfør til/Reservasjon hos <<branches.branchname>></h3>
|
<h3> Overfør til/Reservasjon hos <<branches.branchname>></h3>
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ Barcode: <<items.barcode>><br />
|
||||||
Date due: <<issues.date_due>><br />
|
Date due: <<issues.date_due>><br />
|
||||||
</p>
|
</p>
|
||||||
</checkedout>', 1),
|
</checkedout>', 1),
|
||||||
('circulation','RESERVESLIP','Hold Slip','Hold Slip', '<h5>Date: <<today>></h5>
|
('circulation','HOLD_SLIP','Hold Slip','Hold Slip', '<h5>Date: <<today>></h5>
|
||||||
|
|
||||||
<h3> Transfer to/Hold in <<branches.branchname>></h3>
|
<h3> Transfer to/Hold in <<branches.branchname>></h3>
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ Barcode: <<items.barcode>><br />
|
||||||
Date due: <<issues.date_due>><br />
|
Date due: <<issues.date_due>><br />
|
||||||
</p>
|
</p>
|
||||||
</checkedout>', 1),
|
</checkedout>', 1),
|
||||||
('circulation','RESERVESLIP','Hold Slip','Hold Slip', '<h5>Date: <<today>></h5>
|
('circulation','HOLD_SLIP','Hold Slip','Hold Slip', '<h5>Date: <<today>></h5>
|
||||||
|
|
||||||
<h3> Transfer to/Hold in <<branches.branchname>></h3>
|
<h3> Transfer to/Hold in <<branches.branchname>></h3>
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ Barcode: <<items.barcode>><br />
|
||||||
Date due: <<issues.date_due>><br />
|
Date due: <<issues.date_due>><br />
|
||||||
</p>
|
</p>
|
||||||
</checkedout>', 1),
|
</checkedout>', 1),
|
||||||
('circulation','RESERVESLIP','Hold Slip','Hold Slip', '<h5>Date: <<today>></h5>
|
('circulation','HOLD_SLIP','Hold Slip','Hold Slip', '<h5>Date: <<today>></h5>
|
||||||
|
|
||||||
<h3> Transfer to/Hold in <<branches.branchname>></h3>
|
<h3> Transfer to/Hold in <<branches.branchname>></h3>
|
||||||
|
|
||||||
|
|
|
@ -278,7 +278,7 @@ Barcode: <<items.barcode>> , Checkout date:
|
||||||
<li>The slip or receipt will show items checked out today as well as items that are still checked out</li>
|
<li>The slip or receipt will show items checked out today as well as items that are still checked out</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>RESERVESLIP
|
<li>HOLD_SLIP
|
||||||
<ul>
|
<ul>
|
||||||
<li>Used to print a holds slip</li>
|
<li>Used to print a holds slip</li>
|
||||||
<li>The holds slip is generated when a hold is confirmed</li>
|
<li>The holds slip is generated when a hold is confirmed</li>
|
||||||
|
|
Loading…
Reference in a new issue