Commit 02cc2025 authored by Arthur Suzuki's avatar Arthur Suzuki
Browse files

dev#86039 : fix graphical improvements (needless / char when no record has no author)

parent 653757e7
Pipeline #8405 passed with stage
in 43 minutes and 11 seconds
......@@ -799,7 +799,7 @@ class RechercheController extends ZendAfi_Controller_Action {
}}
);');
return '<div id="holds_view"></div>' . $this->view->tag('ul',$html);
return '<div id="holds_view"></div><div>' . $this->view ->tag('ul',$html) . '</div>';
}
......@@ -835,6 +835,9 @@ class RechercheController extends ZendAfi_Controller_Action {
|| !($notice = $item->getNotice()))
return '';
if(!$notice->getAuteurPrincipal())
return sprintf(" '%s'",$notice->getTitrePrincipal());
return sprintf(" '%s / %s'",
$notice->getTitrePrincipal(),
$notice->getAuteurPrincipal());
......
......@@ -3785,7 +3785,11 @@ a[href*="bookmarked-searches/notify"] img {
margin: 0 auto;
}
#holds_view + ul {
#holds_view + div {
justify-content: center;
display: flex;
}
#holds_view + div ul {
text-align: left;
}
\ No newline at end of file
......@@ -512,6 +512,21 @@ class RechercheControllerReservationWithWebServiceKohaTest
}
/** @test */
public function withMatchingHoldAndRecordWithoutAuthorMessageShouldContainsPickupLocationAndRecordTitleOnly() {
$exemplaire = $this->fixture('Class_Exemplaire',
['id' => 456,
'code_barres' => 123,
'id_int_bib' => 1,
'notice' => $this->fixture('Class_Notice',
['id' => 8890,
'titre_principal' => 'Arcadia'])]);
$this->_dispatchWithEmprunteurAndAssertContentEquals(
$this->_prepareEmprunteurHolding($exemplaire, 'Valensole'),
'Votre réservation est enregistrée.<br>Nous vous informerons quand le document \'Arcadia\' sera disponible pour être retiré à : Valensole');
}
/** @test */
public function withoutMatchingHoldMessageShouldContainsDocumentNotFound() {
$this->_dispatchWithEmprunteurAndAssertContentEquals(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment