File tree Expand file tree Collapse file tree
themes/bootstrap5/templates/record/get-this Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22$ item ['item_id ' ] ??= null ;
33$ location = $ this ->getThis ->getLocation ($ item ['item_id ' ]);
4- $ copyNumber = $ this ->getThis ->getCopyNumber ($ item ['item_id ' ]);
4+ $ copyNumber = $ this ->getThis ->getCopyNumber ($ item ['item_id ' ]) ?? '' ;
55$ callNumberData = $ this ->getThis ->getCallNumber ($ item ['item_id ' ]);
6- if (!empty ($ location ) && (! empty ( $ callNumberData) || ! empty ( $ copyNumber) )) {
6+ if (!empty ($ location ) && ($ callNumberData || '' !== $ copyNumber )) {
77 $ location .= ': ' ;
88}
9- if (! empty ( $ copyNumber) ) {
9+ if ('' !== $ copyNumber ) {
1010 $ copyNumber = $ this ->transEscAttr ('copy_number ' , ['%%number%% ' => $ copyNumber ]) . ' ' ;
11- } else {
12- $ copyNumber = '' ;
1311}
14- if (! empty ( $ callNumberData) ) {
12+ if ($ callNumberData ) {
1513 $ rawCallNumber = $ callNumberData ['text ' ] ?? '' ;
1614 $ callNumber = ($ callNumberData ['translate ' ] ?? false ) ? $ this ->translate ($ rawCallNumber ) : $ this ->escapeHtml ($ rawCallNumber );
1715 $ callNumber = '( ' . $ callNumber . ') ' ;
You can’t perform that action at this time.
0 commit comments