https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17387

Martin Renvoize (ashimema) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Text to go in the|                            |When a bibliographic record
      release notes|                            |or item is deleted in Koha,
                   |                            |the data is moved to the
                   |                            |`deletedbiblio`,
                   |                            |`deletedbiblioitems`, and
                   |                            |`deleteditems` tables
                   |                            |rather than being
                   |                            |permanently removed. This
                   |                            |new feature exposes those
                   |                            |tables through a dedicated
                   |                            |staff
                   |                            |interface and REST API,
                   |                            |enabling authorised users
                   |                            |to restore that data back
                   |                            |into the
                   |                            |active catalogue.
                   |                            |### New Features
                   |                            |- A **Restore Deleted
                   |                            |Records** page is
                   |                            |accessible from the
                   |                            |Cataloguing module home
                   |                            |page,
                   |                            |  presenting two tables:
                   |                            |one for deleted
                   |                            |bibliographic records and
                   |                            |one for deleted items.
                   |                            |- Each table displays key
                   |                            |identifying information
                   |                            |such as biblio ID, title,
                   |                            |barcode, and
                   |                            |  the date the record was
                   |                            |deleted.
                   |                            |- A **date range filter**
                   |                            |in the sidebar allows staff
                   |                            |to narrow results by
                   |                            |deletion date.
                   |                            |- Restoring a **deleted
                   |                            |item** whose parent
                   |                            |bibliographic record is
                   |                            |also deleted will
                   |                            |  present a warning modal,
                   |                            |prompting the user to
                   |                            |restore the bibliographic
                   |                            |record first.
                   |                            |- Restoring a **deleted
                   |                            |bibliographic record**
                   |                            |opens a modal listing any
                   |                            |associated deleted
                   |                            |  items, with checkboxes
                   |                            |allowing the user to select
                   |                            |which items (if any) to
                   |                            |restore
                   |                            |  alongside the
                   |                            |bibliographic record.
                   |                            |- Restored records are
                   |                            |automatically
                   |                            |**re-indexed** in the
                   |                            |search engine (Zebra /
                   |                            |  Elasticsearch) upon
                   |                            |restoration.
                   |                            |- Restore actions are
                   |                            |written to the **action
                   |                            |log** (`RESTORE` action for
                   |                            |both biblios
                   |                            |  and items), providing an
                   |                            |audit trail.
                   |                            |- Library group membership
                   |                            |is taken into account
                   |                            |during permission checks,
                   |                            |so staff are
                   |                            |  only able to restore
                   |                            |records within their
                   |                            |permitted scope.
                   |                            |### New REST API Endpoints
                   |                            |New endpoints have been
                   |                            |added to the Koha REST API
                   |                            |to support programmatic
                   |                            |restoration
                   |                            |of deleted records:
                   |                            |- `POST
                   |                            |/api/v1/deleteditems/{item_
                   |                            |id}/restore` — restore a
                   |                            |single deleted item
                   |                            |- `POST
                   |                            |/api/v1/deletedbiblios/{bib
                   |                            |lio_id}/restore` — restore
                   |                            |a single deleted
                   |                            |  bibliographic record
                   |                            |- `GET
                   |                            |/api/v1/deleteditems` —
                   |                            |list deleted items
                   |                            |(supports embedding
                   |                            |associated biblio
                   |                            |  data and pagination
                   |                            |headers)
                   |                            |- `GET
                   |                            |/api/v1/deletedbiblios` —
                   |                            |list deleted bibliographic
                   |                            |records (supports embedding
                   |                            |  associated deleted items)
                   |                            |### New Permission
                   |                            |A new
                   |                            |**`restore_deleted_records`
                   |                            |** permission has been
                   |                            |added as a child of the
                   |                            |**Cataloguing** permissions
                   |                            |group. Users must be
                   |                            |granted this permission to
                   |                            |access the
                   |                            |Restore Deleted Records
                   |                            |page and to use the restore
                   |                            |API endpoints.
                   |                            |### Important Notes
                   |                            |- Restoration is only
                   |                            |possible for records still
                   |                            |present in the deleted
                   |                            |records tables.
                   |                            |  Data in related tables
                   |                            |(e.g. link tracker, holds
                   |                            |history) that was
                   |                            |cascade-deleted when
                   |                            |  the record was removed
                   |                            |**cannot** be recovered by
                   |                            |this tool.
                   |                            |- A restored record will be
                   |                            |re-inserted with its
                   |                            |original biblio/item ID
                   |                            |where possible.
                   |                            |- This feature does not
                   |                            |constitute a full "soft
                   |                            |delete" or undo system — it
                   |                            |is a targeted
                   |                            |  recovery tool for data
                   |                            |held in Koha's existing
                   |                            |deleted-record tables.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to