File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1166,10 +1166,19 @@ function getVariations() {
1166
1166
/** @var File_MARC_Control_Field $oclcNumber */
1167
1167
$ oclcNumber = $ relatedRecordDriver ->getOCLCNumber ();
1168
1168
1169
+ $ actionButtons = [];
1170
+ $ actions = $ relatedVariation ->getActions ();
1171
+ foreach ($ actions as $ key => $ action ) {
1172
+ $ actionButtons [$ key ]['id ' ] = $ action ['id ' ] . '_ ' . $ key ;
1173
+ $ actionButtons [$ key ]['type ' ] = $ action ['type ' ];
1174
+ $ actionButtons [$ key ]['title ' ] = $ action ['title ' ];
1175
+ $ actionButtons [$ key ]['requireLogin ' ] = $ action ['requireLogin ' ];
1176
+ }
1177
+
1169
1178
$ variations [$ relatedVariation ->label ]['id ' ] = $ relatedRecord ->id ;
1170
1179
$ variations [$ relatedVariation ->label ]['source ' ] = $ relatedRecord ->source ;
1171
1180
$ variations [$ relatedVariation ->label ]['closedCaptioned ' ] = (int ) $ relatedRecord ->closedCaptioned ;
1172
- $ variations [$ relatedVariation ->label ]['actions ' ] = $ relatedVariation -> getActions () ;
1181
+ $ variations [$ relatedVariation ->label ]['actions ' ] = $ actionButtons ;
1173
1182
$ variations [$ relatedVariation ->label ]['variationId ' ] = $ relatedVariation ->databaseId ;
1174
1183
$ variations [$ relatedVariation ->label ]['holdType ' ] = $ holdType ;
1175
1184
$ variations [$ relatedVariation ->label ]['statusIndicator ' ] = [
You can’t perform that action at this time.
0 commit comments