Skip to content

Add PBN export queue button to publication importer (#317)#114

Merged
mpasternak merged 3 commits into
devfrom
fix/fd-317-przycisk-pbn-w-importerze
Apr 20, 2026
Merged

Add PBN export queue button to publication importer (#317)#114
mpasternak merged 3 commits into
devfrom
fix/fd-317-przycisk-pbn-w-importerze

Conversation

@mpasternak
Copy link
Copy Markdown
Member

Summary

  • Adds "Utwórz i dodaj do kolejki eksportu PBN" button to the publication importer review step
  • Button appears conditionally when PBN integration is enabled (Uczelnia.pbn_integracja + pbn_aktualizuj_na_biezaco)
  • On click, creates the publication and queues it for PBN export via sprobuj_utworzyc_zlecenie_eksportu_do_PBN_gui
  • Adds Django messages display to the done step for HTMX partial responses (Foundation callout styling)

Files changed

  • src/importer_publikacji/views.py — backend logic for PBN button handling and context flag
  • src/importer_publikacji/templates/.../step_review.html — new button in review form
  • src/importer_publikacji/templates/.../step_done.html — messages display for HTMX partials

Test plan

  • Enable PBN integration in Uczelnia settings (both pbn_integracja and pbn_aktualizuj_na_biezaco)
  • Import a publication via the importer — verify the new button appears next to "Utwórz publikację"
  • Click "Utwórz i dodaj do kolejki eksportu PBN" — verify publication is created and success/error message appears
  • Disable PBN integration — verify the button does not appear

🤖 Generated with Claude Code

@mpasternak
Copy link
Copy Markdown
Member Author

@claude rebase

@claude
Copy link
Copy Markdown

claude Bot commented Apr 19, 2026

Claude finished @mpasternak's task in 22s —— View job


I'm unable to perform a rebase operation. Rebasing requires a force-push to the remote branch, which is a destructive operation outside my permitted scope.

To rebase this branch onto dev, you can run locally:

git fetch origin
git checkout fix/fd-317-przycisk-pbn-w-importerze
git rebase origin/dev
git push --force-with-lease origin fix/fd-317-przycisk-pbn-w-importerze

You can find more information and potential workarounds in the FAQ.

mpasternak and others added 3 commits April 20, 2026 18:55
Fixes ticket #317. Adds a second green button next to the existing
"Utwórz publikację" button in the publication importer review step.
The button appears when PBN integration is enabled (pbn_integracja
and pbn_aktualizuj_na_biezaco on Uczelnia). Clicking it creates the
publication and immediately queues it for PBN export via the existing
sprobuj_utworzyc_zlecenie_eksportu_do_PBN_gui helper. Also adds Django
messages display to the done step for HTMX partial responses.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…cji (#318)

Przy imporcie z CrossRef/BibTeX/DSpace/WWW system automatycznie
sprawdza PBN API po DOI. W kroku weryfikacji wyświetla PBN UID
z linkiem, komunikat o braku autoryzacji lub błąd serwisu.
Przy tworzeniu rekordu próbuje powiązać go z PBN UID.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mpasternak mpasternak force-pushed the fix/fd-317-przycisk-pbn-w-importerze branch from eb3c16b to 137a6be Compare April 20, 2026 16:56
@mpasternak mpasternak merged commit dfa3cdf into dev Apr 20, 2026
12 checks passed
@mpasternak mpasternak deleted the fix/fd-317-przycisk-pbn-w-importerze branch April 28, 2026 15:47
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.

1 participant