{% extends "base.html" %} {% from "_help.html" import info %} {% from "_icon_btn.html" import icon_button %} {% block title %}Library — Paperful{% endblock %} {% block content %} {% macro collection_line(node) %} {{ node.name }} {{ node.item_count }} {{ node.missing_pdf }}
{{ icon_button('Set scope', 'scope', type='submit') }}
{% endmacro %} {% macro collection_nodes(nodes) %} {% for node in nodes %} {% if node.children %}
{{ collection_line(node) }}
{{ collection_nodes(node.children) }}
{% else %}
{{ collection_line(node) }}
{% endif %} {% endfor %} {% endmacro %}

Library

Zotero collections in this library. The target icon sets the collection chip in the header — Wanted, Discover, Ask, Index, and Briefs all follow that chip. Missing PDF is how many items in that collection still have no stored file.

{% if error %}
{{ error }}
{% endif %}

Collections

Click a name to expand nested collections. Item counts include subcollections. Set scope on the collection you actually want to work on, not only the parent folder.

{% if collection_tree %}
{{ collection_nodes(collection_tree) }}
{% else %}

No collections loaded.

{% endif %}
{% if prefs.collection and library_pagination.total %}

Items in {{ prefs.collection }}

{{ library_pagination.range_start }}–{{ library_pagination.range_end }} of {{ library_pagination.total }} {% if library_pagination.prev_url %} Previous {% endif %} Page {{ library_pagination.page }} / {{ library_pagination.page_count }} {% if library_pagination.next_url %} Next {% endif %}

Items currently in the collection chip. PDF yes means Zotero already has a stored file. Open Detail for the summary, if one exists.

{% for row in items %} {% endfor %}
TitleYearPDFSummary
{{ row.title }} {{ row.year or '' }} {% if row.has_pdf %}yes{% else %}no{% endif %} {% if row.has_summary %}yes{% else %}—{% endif %} {{ icon_button('Detail', 'detail', onclick="openDrawer('lib-" ~ row.key ~ "')") }}

{{ row.title }} · {{ row.key }}

{% if row.has_summary %} {% endif %} {% if prefs.advanced and briefs.llm_on and row.has_pdf %}
{% endif %}
{% elif prefs.collection %}

No items loaded for this collection.

{% else %}

Set a collection chip to list items here.

{% endif %} {% endblock %}