From ba4b2921846e66a4fc22ca2ccd7a21a818299ef2 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 9 Sep 2015 10:17:05 -0400 Subject: [PATCH] webstaff: Conjoined items management Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- .../src/templates/staff/cat/catalog/index.tt2 | 4 + .../templates/staff/cat/catalog/t_catalog.tt2 | 8 + .../staff/cat/catalog/t_conjoined_items.tt2 | 35 +++++ .../cat/catalog/t_conjoined_selector.tt2 | 3 +- .../js/ui/default/staff/cat/catalog/app.js | 144 +++++++++++++++++- 5 files changed, 190 insertions(+), 4 deletions(-) create mode 100644 Open-ILS/src/templates/staff/cat/catalog/t_conjoined_items.tt2 diff --git a/Open-ILS/src/templates/staff/cat/catalog/index.tt2 b/Open-ILS/src/templates/staff/cat/catalog/index.tt2 index 9635c5d994..f5db2fe8b8 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/index.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/index.tt2 @@ -22,6 +22,10 @@ "[% l('Permanently delete selected copies and/or volumes from catalog?') %]"; s.CONFIRM_DELETE_COPIES_VOLUMES_MESSAGE = "[% l('Will delete {{copies}} copies and {{volumes}} volumes') %]"; + s.CONFIRM_DELETE_PEERS = + "[% l('Unlink selected conjoined copies?') %]"; + s.CONFIRM_DELETE_PEERS_MESSAGE = + "[% l('Will unlink {{peers}} copies') %]"; }]) diff --git a/Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2 b/Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2 index 9b5eabae02..62db3ca76c 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_catalog.tt2 @@ -59,6 +59,11 @@ [% l('Holdings View') %] +
  • + + [% l('Conjoined Items') %] + +
  • @@ -86,5 +91,8 @@
    [% INCLUDE 'staff/cat/catalog/t_holdings.tt2' %]
    +
    + [% INCLUDE 'staff/cat/catalog/t_conjoined_items.tt2' %] +
    diff --git a/Open-ILS/src/templates/staff/cat/catalog/t_conjoined_items.tt2 b/Open-ILS/src/templates/staff/cat/catalog/t_conjoined_items.tt2 new file mode 100644 index 0000000000..a4ad8c9a53 --- /dev/null +++ b/Open-ILS/src/templates/staff/cat/catalog/t_conjoined_items.tt2 @@ -0,0 +1,35 @@ + +
    + + + + + + + + + + + {{item.target_copy().barcode()}} + + + + + {{item.target_copy().call_number().record().simple_record().title()}} + + + + + + +
    + diff --git a/Open-ILS/src/templates/staff/cat/catalog/t_conjoined_selector.tt2 b/Open-ILS/src/templates/staff/cat/catalog/t_conjoined_selector.tt2 index 377c42684b..aac05ae9bf 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_conjoined_selector.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_conjoined_selector.tt2 @@ -2,7 +2,8 @@