@@ -, +, @@ Collections - Add a toolbar include for displaying new, edit, transfer, and delete buttons. - Improve title and breadcrumbs with collection titles and better specificity. - Correct page structure which was inconsistent with the markup of similarly-structured pages. - Correct styling of error and informational messages. - Added detailed error messages for a couple of conditions which were not defined in the template. - Add link to the detail page of titles which are in a collection using the view defined in the IntranetBiblioDefaultView preference. - Add a link to remove an item from a collection directly without having to scan the barcode. - Add client-side validation to collection creation form. - In RotatingCollections.pm, add biblionumber to the list of columns returned by GetItemsInCollection. - In rotating_collections/*.pl, remove obsolete declaration of system preference variables. - Add a new collection - Edit an existing collection - Add items to a collection - Remove items from a collection (via barcode and link) - Test the behavior of all new toolbar buttons - Verify that titles and breadcrumbs look correct and links work correctly. --- C4/RotatingCollections.pm | 1 + .../intranet-tmpl/prog/en/css/staff-global.css | 1 + .../en/includes/rotating-collections-toolbar.inc | 17 +++ .../en/modules/rotating_collections/addItems.tt | 147 +++++++++++---------- .../rotating_collections/editCollections.tt | 138 ++++++++++--------- .../rotating_collections/rotatingCollections.tt | 34 +++-- .../rotating_collections/transferCollection.tt | 68 +++++----- .../prog/en/modules/tools/tools-home.tt | 2 +- rotating_collections/addItems.pl | 5 - rotating_collections/editCollections.pl | 7 - rotating_collections/rotatingCollections.pl | 5 - rotating_collections/transferCollection.pl | 5 - 12 files changed, 222 insertions(+), 208 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/rotating-collections-toolbar.inc --- a/C4/RotatingCollections.pm +++ a/C4/RotatingCollections.pm @@ -247,6 +247,7 @@ sub GetItemsInCollection { my $sth = $dbh->prepare( "SELECT biblio.title, + biblio.biblionumber, items.itemcallnumber, items.barcode FROM collections, collections_tracking, items, biblio --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -732,6 +732,7 @@ fieldset.rows fieldset.action { padding : 1em; } +fieldset.brief label.inline, fieldset.rows label.inline { display : inline; float : none; --- a/koha-tmpl/intranet-tmpl/prog/en/includes/rotating-collections-toolbar.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/rotating-collections-toolbar.inc @@ -0,0 +1,17 @@ +
+
+ New collection +
+ + [% IF ( colId ) %] +
+ Transfer +
+
+ Edit +
+
+ Delete +
+ [% END %] +
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt @@ -1,5 +1,5 @@ [% INCLUDE 'doc-head-open.inc' %] -Koha › Tools › Rotating collections › Add/Remove items +Koha › Tools › Rotating collections › Collection [% colTitle %] ’ Add or remove items [% INCLUDE 'doc-head-close.inc' %]