Lines 108-126
while ( my $h = $holds_rs->next() ) {
Link Here
|
108 |
waiting_here => $h->branch()->branchcode() eq $branch, |
108 |
waiting_here => $h->branch()->branchcode() eq $branch, |
109 |
priority => $h->priority(), |
109 |
priority => $h->priority(), |
110 |
itemtype_limit => $itemtype_limit, |
110 |
itemtype_limit => $itemtype_limit, |
111 |
reservedate_formatted => $h->reservedate() ? output_pref( |
111 |
subtitle => GetRecordValue( |
112 |
{ dt => dt_from_string( $h->reservedate() ), dateonly => 1 } |
112 |
'subtitle', |
113 |
) |
113 |
GetMarcBiblio({ biblionumber => $biblionumber }), |
114 |
: q{}, |
114 |
GetFrameworkCode($biblionumber) |
|
|
115 |
), |
115 |
suspend_until_formatted => $h->suspend_until() ? output_pref( |
116 |
suspend_until_formatted => $h->suspend_until() ? output_pref( |
116 |
{ dt => dt_from_string( $h->suspend_until() ), dateonly => 1 } |
117 |
{ dt => dt_from_string( $h->suspend_until() ), dateonly => 1 } |
117 |
) |
118 |
) |
118 |
: q{}, |
119 |
: q{}, |
119 |
expirationdate_formatted => $h->expirationdate() ? output_pref( |
120 |
}; |
|
|
121 |
|
122 |
if ( C4::Context->preference('HourBasedHolds') ){ |
123 |
$hold->{reservedate_formatted} = $h->reservedate() ? output_pref( |
124 |
{ dt => dt_from_string( $h->reservedate() ) } |
125 |
) |
126 |
: q{}, |
127 |
$hold->{expirationdate_formatted} = $h->expirationdate() ? output_pref( |
128 |
{ dt => dt_from_string( $h->expirationdate() ) } |
129 |
) |
130 |
: q{}, |
131 |
} else { |
132 |
$hold->{reservedate_formatted} = $h->reservedate() ? output_pref( |
133 |
{ dt => dt_from_string( $h->reservedate() ), dateonly => 1 } |
134 |
) |
135 |
: q{}, |
136 |
$hold->{expirationdate_formatted} = $h->expirationdate() ? output_pref( |
120 |
{ dt => dt_from_string( $h->expirationdate() ), dateonly => 1 } |
137 |
{ dt => dt_from_string( $h->expirationdate() ), dateonly => 1 } |
121 |
) |
138 |
) |
122 |
: q{}, |
139 |
: q{}, |
123 |
}; |
140 |
} |
124 |
|
141 |
|
125 |
$hold->{transfered} = 0; |
142 |
$hold->{transfered} = 0; |
126 |
$hold->{not_transfered} = 0; |
143 |
$hold->{not_transfered} = 0; |
127 |
- |
|
|