Bugzilla – Attachment 45485 Details for
Bug 15327
Minor tweaks to Bootstrap modal handling on Staged MARC management page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15327: Minor tweaks to Bootstrap modal handling on Staged MARC management page
Bug-15327-Minor-tweaks-to-Bootstrap-modal-handling.patch (text/plain), 2.57 KB, created by
Jonathan Druart
on 2015-12-08 10:27:57 UTC
(
hide
)
Description:
Bug 15327: Minor tweaks to Bootstrap modal handling on Staged MARC management page
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-12-08 10:27:57 UTC
Size:
2.57 KB
patch
obsolete
>From 4f607d9ab5323d1133942b3671a6de2d0061992a Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 4 Dec 2015 20:37:47 -0500 >Subject: [PATCH] Bug 15327: Minor tweaks to Bootstrap modal handling on Staged > MARC management page > >This patch makes a couple of minor corrections to the template for >staged MARC management. The MARC preview is now formatted using the >"html" option, and some obsolete Greybox-related code has been removed. > >To test: > >1. Apply the patch and go to Tools -> Staged MARC management. >2. Click any staged MARC file containing multiple records. >3. Click the title in the "Citation" column and confirm that a Bootstrap > modal is triggered showing the correct data. > >Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> >Modal looks much better. Works as advertised > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt >index f00929f..84dd2db 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt >@@ -90,7 +90,7 @@ $(document).ready(function(){ > [% END %] > > $('td:eq(1)', nRow).html( >- '<a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=' + aData['import_record_id'] + '" class="previewMARC">' + aData['citation'] + '</a>' >+ '<a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=' + aData['import_record_id'] + '&viewas=html" class="previewMARC">' + aData['citation'] + '</a>' > ); > > $('td:eq(2)', nRow).html( >@@ -123,7 +123,7 @@ $(document).ready(function(){ > } > if (aData['diff_url']){ > $('td:eq(5)', nRow).html( >- '<a rel="gb_page_center[960,600]" href="'+aData['diff_url']+'">View</a>' >+ '<a href="'+aData['diff_url']+'">View</a>' > ); > } > $('td:eq(6)', nRow).html( >@@ -138,7 +138,7 @@ $(document).ready(function(){ > var ltitle = $(this).text(); > var page = $(this).attr("href"); > $("#marcPreviewLabel").text(ltitle); >- $("#marcPreview .modal-body").load(page + " pre"); >+ $("#marcPreview .modal-body").load(page + " table"); > $('#marcPreview').modal({show:true}); > }); > $("#marcPreview").on("hidden", function(){ >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15327
:
45467
|
45472
| 45485