Skip to content

DBC-1342 - Consider v3 of FBS service and load number of reservations.#5

Merged
bozeak merged 1 commit intodevelopfrom
DBC-1342
Jun 28, 2017
Merged

DBC-1342 - Consider v3 of FBS service and load number of reservations.#5
bozeak merged 1 commit intodevelopfrom
DBC-1342

Conversation

@NicolaeGrigoriu
Copy link
Copy Markdown
Contributor

No description provided.

@bozeak bozeak merged commit 2701d94 into develop Jun 28, 2017
// And FBS can't tell us this.
'reserved_count' => 0,
'is_periodical' => FALSE,
'reservation_count' => $item->reservations
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the difference between this and L81? reserved_count

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well then I think you should remove reserved_count - makes no sense to keep both variables.

$ grep -r 'reserved_count' *
ding2/includes/fbs.availability.inc:      'reserved_count' => 0,
ding2/tests/AvailibilityProviderTest.php:   *   reserved_count: # int
ding2/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
ding2/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
ding2/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
ding2/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
ding2/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
ding2/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
ding2/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
ding2/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
ding2/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
ding2/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
fbs/includes/fbs.availability.inc:      'reserved_count' => 0,
fbs/tests/AvailibilityProviderTest.php:   *   reserved_count: # int
fbs/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
fbs/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
fbs/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
fbs/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
fbs/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
fbs/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
fbs/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
fbs/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
fbs/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
fbs/tests/AvailibilityProviderTest.php:        'reserved_count' => 0,
openruth/openruth.availability.inc:        $h['reserved_count'] += $itemHolding->ordersCount;
openruth/openruth.availability.inc:    'reserved_count' => isset($holding->ordersCount) ? (int) $holding->ordersCount : 0,
openruth/openruth.availability.inc:    $row['data']['Copies'] = array('data' => $h['reserved_count'], 'colspan' => 3);

$ grep -r 'reservation_count' *
ding_user_frontend/ding_user_frontend.module:      'variables' => array('loan_count' => NULL, 'reservation_count' => NULL, 'debt_count' => NULL),
ding_user_frontend/templates/ding_user_frontend_user_status.tpl.php:  <span class="amount">(<?php print $reservation_count; ?>)</span>
fbs/includes/fbs.availability.inc:  $reservation_count = (int) $res['reservation_count'];
fbs/includes/fbs.availability.inc:  $result = _fbs_set_table_html($res['holdings'], $reservation_count);
fbs/includes/fbs.availability.inc:  $reservation_count = 0;
fbs/includes/fbs.availability.inc:    $reservation_count += (int) $records['reservation_count'];
fbs/includes/fbs.availability.inc:  $result = _fbs_set_table_html($holdings, $reservation_count);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the comment on L80 is now not valid anymore.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed in the PR: #6

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants