Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix taxonomy names #9

Closed
clemens-tolboom opened this issue Feb 5, 2015 · 1 comment
Closed

Fix taxonomy names #9

clemens-tolboom opened this issue Feb 5, 2015 · 1 comment

Comments

@clemens-tolboom
Copy link
Owner

Each node has _links with for articles field_tag containing href to terms.

"http://drupal.d8/rest/relation/node/article/field_tags": [
      {
        "href": "http://drupal.d8/taxonomy/term/5",
        "lang": "en"
      }
    ]

These values are mapped to

_internals.field_tags[{"target_id":"16"},{"target_id":"18"}]

We need to find a way to filter out from the the full list from /taxonomy/list

[
{"name":"Aap","tid":"18","vid":"tags"}
{"name":"Noot","tid":"17","vid":"tags"}
{"name":"Mies","tid":"16","vid":"tags"}
]

We have $scope.tags for lookup values of $scope.node._internals.field_tags.

<li ng-repeat="tag in node._internals.field_tags | filter:filterByTag">

Filtering should be the other way around.

@clemens-tolboom
Copy link
Owner Author

This needs a transformResponse making the list a hash of tid

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

No branches or pull requests

1 participant