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