{"action":"created","issue":{"url":"https://api.github.com/repos/plk/biblatex/issues/482","repository_url":"https://api.github.com/repos/plk/biblatex","labels_url":"https://api.github.com/repos/plk/biblatex/issues/482/labels{/name}","comments_url":"https://api.github.com/repos/plk/biblatex/issues/482/comments","events_url":"https://api.github.com/repos/plk/biblatex/issues/482/events","html_url":"https://github.com/plk/biblatex/issues/482","id":178669955,"number":482,"title":"A variant of `\\DeclareSortExclusion`","user":{"login":"maieul","id":636640,"avatar_url":"https://avatars.githubusercontent.com/u/636640?v=3","gravatar_id":"","url":"https://api.github.com/users/maieul","html_url":"https://github.com/maieul","followers_url":"https://api.github.com/users/maieul/followers","following_url":"https://api.github.com/users/maieul/following{/other_user}","gists_url":"https://api.github.com/users/maieul/gists{/gist_id}","starred_url":"https://api.github.com/users/maieul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maieul/subscriptions","organizations_url":"https://api.github.com/users/maieul/orgs","repos_url":"https://api.github.com/users/maieul/repos","events_url":"https://api.github.com/users/maieul/events{/privacy}","received_events_url":"https://api.github.com/users/maieul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-22T17:19:50Z","updated_at":"2016-09-23T09:39:36Z","closed_at":null,"body":"`DeclareSortExclusion` allow to exclude some field from sorting for specific entry-type. Should it be possible to have a variant, which will exclude field from entry-type which are not passed as argument.\r\n\r\nHere a MWE to understand my need.\r\n\r\n```\r\n\\documentclass{book}\r\n\\usepackage{filecontents}\r\n\\usepackage[citereset=chapter,citestyle=verbose-trad2,bibstyle=verbose]{biblatex}\r\n\\begin{filecontents}{\\jobname.bib}\r\n@book{A,\r\n  Author={A},\r\n  Title={Toto},\r\n  Maintitle={Ratp}\r\n}\r\n\r\n@book{A2,\r\n  Author={A},\r\n  Title={Sncf},\r\n}\r\n\r\n@bookinbook{A3,\r\n  Author={A},\r\n  Title={Sncf},\r\n  Booktitle={Ratp},\r\n  Maintitle={Chemin de fer}\r\n}\r\n\r\n\r\n\\end{filecontents}\r\n\\bibliography{\\jobname.bib}\r\n\\DeclareSortExclusion{bookinbook}{maintitle}\r\n\\DeclareSortingScheme{nty}{\r\n  \\sort{\r\n    \\field{presort}\r\n  }\r\n  \\sort[final]{\r\n    \\field{sortkey}\r\n  }\r\n  \\sort{\r\n    \\field{sortname}\r\n    \\field{author}\r\n    \\field{editor}\r\n    \\field{translator}\r\n    \\field{sorttitle}\r\n    \\field{title}\r\n  }\r\n  \\sort{\r\n    \\field{sorttitle}\r\n    \\field{maintitle}\r\n    \\field{title}\r\n  }\r\n  \\sort{\r\n    \\field{sortyear}\r\n    \\field{year}\r\n  }\r\n  \\sort{\r\n    \\field{volume}\r\n    \\literal{0}\r\n  }\r\n}\r\n\r\n\\begin{document}\r\n\r\n\\nocite{*}\r\n\\printbibliography\r\n\r\n\r\n\\end{document}\r\n```\r\n\r\nMy changes on the `nty` field is required if I want to have a good position for the entry `A`. However, if I don't do add `\\DeclareSortExclusion{bookinbook}{maintitle}`, there is a problem for the sorting of `A3` entry. However, I think it will be better to tell to biber \"take account of `maintitle` only for  @book entries\", than to tell it \"take account of `maintitle` for all entries except these one`."},"comment":{"url":"https://api.github.com/repos/plk/biblatex/issues/comments/249147734","html_url":"https://github.com/plk/biblatex/issues/482#issuecomment-249147734","issue_url":"https://api.github.com/repos/plk/biblatex/issues/482","id":249147734,"user":{"login":"plk","id":1220851,"avatar_url":"https://avatars.githubusercontent.com/u/1220851?v=3","gravatar_id":"","url":"https://api.github.com/users/plk","html_url":"https://github.com/plk","followers_url":"https://api.github.com/users/plk/followers","following_url":"https://api.github.com/users/plk/following{/other_user}","gists_url":"https://api.github.com/users/plk/gists{/gist_id}","starred_url":"https://api.github.com/users/plk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plk/subscriptions","organizations_url":"https://api.github.com/users/plk/orgs","repos_url":"https://api.github.com/users/plk/repos","events_url":"https://api.github.com/users/plk/events{/privacy}","received_events_url":"https://api.github.com/users/plk/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T09:39:36Z","updated_at":"2016-09-23T09:39:36Z","body":"Please try biblatex 3.7 and biber 2.7 from SF. You can do what you want with:\r\n\r\n```\r\n\\DeclareSortExclusion{*}{maintitle}\r\n\\DeclareSortInclusion{bookinbook}{maintitle}\r\n```\r\n\r\nSee the docs for `\\DeclareSortExclusion` and `\\DeclareSortInclusion`\r\n\r\n"}}
{"actor":{"display_login":"plk"}}