Skip to content

Commit

Permalink
documents briew view: Fix for eboook
Browse files Browse the repository at this point in the history
Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr authored and Aly Badr committed Sep 2, 2019
1 parent 3d0774d commit 7b29621
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{# -*- coding: utf-8 -*-

RERO ILS
Copyright (C) 2019 RERO
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
RERO ILS
Copyright (C) 2019 RERO

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, version 3 of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

#}
{% from 'rero_ils/macros/macro.html' import dl %}
{%- extends 'rero_ils/page.html' %}
Expand Down
3 changes: 2 additions & 1 deletion tests/ui/holdings/test_holdings_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.


"""Holding Record tests."""

Expand Down
3 changes: 2 additions & 1 deletion tests/ui/holdings/test_holdings_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.


"""Holding Record tests."""

Expand Down
3 changes: 2 additions & 1 deletion tests/ui/holdings/test_holdings_jsonresolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.


"""Holding JSON Resolver tests."""

Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test_holdings_jsonschema.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.


"""Holdings JSON schema tests."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,12 @@ export class DocumentsBriefViewComponent implements BriefView {

groupItems() {
const items = [];
for (const holding of this.record.metadata.holdings) {
if ('items' in holding) {
for (const item of holding.items) {
items.push(item);
if ('holdings' in this.record.metadata) {
for (const holding of this.record.metadata.holdings) {
if ('items' in holding) {
for (const item of holding.items) {
items.push(item);
}
}
}
}
Expand Down

0 comments on commit 7b29621

Please sign in to comment.